Kaydet (Commit) 7868e574 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile

i119933 - make Basic FORMAT function work with non-ASCII text

üst 23ad78fe
...@@ -727,14 +727,19 @@ void SbxValue::Format( XubString& rRes, const XubString* pFmt ) const ...@@ -727,14 +727,19 @@ void SbxValue::Format( XubString& rRes, const XubString* pFmt ) const
{ {
String aStr = GetString(); String aStr = GetString();
SvtSysLocale aSysLocale;
const CharClass& rCharClass = aSysLocale.GetCharClass();
if( pFmt->EqualsIgnoreCaseAscii( VBAFORMAT_LOWERCASE ) ) if( pFmt->EqualsIgnoreCaseAscii( VBAFORMAT_LOWERCASE ) )
{ {
rRes = aStr.ToLowerAscii(); rCharClass.toLower( aStr );
rRes = aStr;
return; return;
} }
if( pFmt->EqualsIgnoreCaseAscii( VBAFORMAT_UPPERCASE ) ) if( pFmt->EqualsIgnoreCaseAscii( VBAFORMAT_UPPERCASE ) )
{ {
rRes = aStr.ToUpperAscii(); rCharClass.toUpper( aStr );
rRes = aStr;
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment