incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arie...@apache.org
Subject svn commit: r1348628 - /incubator/ooo/trunk/main/basic/source/sbx/sbxscan.cxx
Date Sun, 10 Jun 2012 17:19:53 GMT
Author: arielch
Date: Sun Jun 10 17:19:52 2012
New Revision: 1348628

URL: http://svn.apache.org/viewvc?rev=1348628&view=rev
Log:
i119933 - make Basic FORMAT function work with non-ASCII text

Modified:
    incubator/ooo/trunk/main/basic/source/sbx/sbxscan.cxx

Modified: incubator/ooo/trunk/main/basic/source/sbx/sbxscan.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/basic/source/sbx/sbxscan.cxx?rev=1348628&r1=1348627&r2=1348628&view=diff
==============================================================================
--- incubator/ooo/trunk/main/basic/source/sbx/sbxscan.cxx (original)
+++ incubator/ooo/trunk/main/basic/source/sbx/sbxscan.cxx Sun Jun 10 17:19:52 2012
@@ -727,14 +727,19 @@ void SbxValue::Format( XubString& rRes, 
 	{
 		String aStr = GetString();
 
+        SvtSysLocale aSysLocale;
+        const CharClass& rCharClass = aSysLocale.GetCharClass();
+
 		if( pFmt->EqualsIgnoreCaseAscii( VBAFORMAT_LOWERCASE ) )
 		{
-			rRes = aStr.ToLowerAscii();
+            rCharClass.toLower( aStr );
+            rRes = aStr;
 			return;
 		}
 		if( pFmt->EqualsIgnoreCaseAscii( VBAFORMAT_UPPERCASE ) )
 		{
-			rRes = aStr.ToUpperAscii();
+            rCharClass.toUpper( aStr );
+            rRes = aStr;
 			return;
 		}
 



Mime
View raw message