Kaydet (Commit) a63cc778 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile Kaydeden (comit) Eike Rathke

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

Conflicts:
	basic/source/sbx/sbxscan.cxx

Change-Id: I5b77231d1b09cbf32fa914f3d7b60d6e631e5870
üst 96ef305d
......@@ -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;
}
......
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