[Libreoffice-commits] core.git: basic/source

Ariel Constenla-Haile arielch at apache.org
Thu Mar 14 10:10:40 PDT 2013


 basic/source/sbx/sbxscan.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit a63cc778d1d09f49046f1e205557b08534fdc030
Author: Ariel Constenla-Haile <arielch at apache.org>
Date:   Sun Jun 10 16:19:52 2012 +0000

    i119933 - make Basic FORMAT function work with non-ASCII text
    
    Conflicts:
    	basic/source/sbx/sbxscan.cxx
    
    Change-Id: I5b77231d1b09cbf32fa914f3d7b60d6e631e5870

diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx
index 19784f4..69c8c56 100644
--- a/basic/source/sbx/sbxscan.cxx
+++ b/basic/source/sbx/sbxscan.cxx
@@ -702,14 +702,17 @@ void SbxValue::Format( OUString& rRes, const OUString* pFmt ) const
     {
         OUString aStr = GetOUString();
 
+        SvtSysLocale aSysLocale;
+        const CharClass& rCharClass = aSysLocale.GetCharClass();
+
         if( pFmt->equalsIgnoreAsciiCase( VBAFORMAT_LOWERCASE ) )
         {
-            rRes = aStr.toAsciiLowerCase();
+            rRes = rCharClass.lowercase( aStr );
             return;
         }
         if( pFmt->equalsIgnoreAsciiCase( VBAFORMAT_UPPERCASE ) )
         {
-            rRes = aStr.toAsciiUpperCase();
+            rRes = rCharClass.uppercase( aStr );
             return;
         }
 


More information about the Libreoffice-commits mailing list