You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2012/03/15 18:19:23 UTC

svn commit: r1301101 - /incubator/ooo/trunk/main/i18npool/source/transliteration/ignoreWidth.cxx

Author: hdu
Date: Thu Mar 15 17:19:23 2012
New Revision: 1301101

URL: http://svn.apache.org/viewvc?rev=1301101&view=rev
Log:
#i119031# default to preserve ASCII in ignore-width transliteration

Modified:
    incubator/ooo/trunk/main/i18npool/source/transliteration/ignoreWidth.cxx

Modified: incubator/ooo/trunk/main/i18npool/source/transliteration/ignoreWidth.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/i18npool/source/transliteration/ignoreWidth.cxx?rev=1301101&r1=1301100&r2=1301101&view=diff
==============================================================================
--- incubator/ooo/trunk/main/i18npool/source/transliteration/ignoreWidth.cxx (original)
+++ incubator/ooo/trunk/main/i18npool/source/transliteration/ignoreWidth.cxx Thu Mar 15 17:19:23 2012
@@ -43,17 +43,16 @@ OUString SAL_CALL
 ignoreWidth::folding( const OUString& inStr, sal_Int32 startPos, sal_Int32 nCount, Sequence< sal_Int32 >& offset )
   throw(RuntimeException)
 {
-    halfwidthToFullwidth t1;
+    fullwidthToHalfwidth t1;
     return t1.transliterate(inStr, startPos, nCount, offset);
 }
 
-
 Sequence< OUString > SAL_CALL
 ignoreWidth::transliterateRange( const OUString& str1, const OUString& str2 )
   throw(RuntimeException)
 {
-    halfwidthToFullwidth t1;
-    fullwidthToHalfwidth t2;
+    fullwidthToHalfwidth t1;
+    halfwidthToFullwidth t2;
 
     return transliteration_Ignore::transliterateRange(str1, str2, t1, t2);
 }
@@ -61,7 +60,7 @@ ignoreWidth::transliterateRange( const O
 sal_Unicode SAL_CALL
 ignoreWidth::transliterateChar2Char( sal_Unicode inChar) throw(RuntimeException, MultipleCharsOutputException)
 {
-    halfwidthToFullwidth t1;
+    fullwidthToHalfwidth t1;
     return t1.transliterateChar2Char(inChar);
 }