diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2012-06-10 16:19:52 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-03-14 18:07:30 +0100 |
commit | a63cc778d1d09f49046f1e205557b08534fdc030 (patch) | |
tree | 522b5ae5a338d72e815c5f967855233963d6bebc /basic/source | |
parent | 96ef305d322ebf82e37ca8555a0b2573318a4fde (diff) |
i119933 - make Basic FORMAT function work with non-ASCII text
Conflicts:
basic/source/sbx/sbxscan.cxx
Change-Id: I5b77231d1b09cbf32fa914f3d7b60d6e631e5870
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/sbx/sbxscan.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxscan.cxx b/basic/source/sbx/sbxscan.cxx index 19784f4ec900..69c8c568b16a 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; } |