summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-11-23 23:06:10 +0100
committerEike Rathke <erack@redhat.com>2012-11-23 23:09:16 +0100
commitaf60316514f3ae3d4c475819bf86f2af837171e3 (patch)
treeccfbd673bd4a53047a04dad6457d09c7eea1566c /starmath
parent37f5b864014e9ad17a561b77ea9f6141650e92ad (diff)
some i18n wrappers with LanguageTag
Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index e8aecc11a07a..fa7f9f186d43 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -416,7 +416,7 @@ void SmParser::NextToken()
xub_StrLen nRealStart;
bool bCont;
bool bNumStart = false;
- CharClass aCC(SM_MOD()->GetSysLocale().GetCharClass().getLocale());
+ CharClass aCC(SM_MOD()->GetSysLocale().GetLanguageTag());
do
{
// skip white spaces
@@ -437,14 +437,14 @@ void SmParser::NextToken()
if ((aRes.TokenType & KParseType::IDENTNAME) && IsDigit( cFirstChar ))
{
ParseResult aTmpRes;
- lang::Locale aOldLoc( aCC.getLocale() );
- aCC.setLocale( m_aDotLoc );
+ LanguageTag aOldLoc( aCC.getLanguageTag() );
+ aCC.setLanguageTag( LanguageTag( m_aDotLoc ));
aTmpRes = aCC.parsePredefinedToken(
KParseType::ASC_NUMBER,
m_aBufferString, m_nBufferIndex,
KParseTokens::ASC_DIGIT, aEmptyStr,
KParseTokens::ASC_DIGIT | KParseTokens::ASC_DOT, aEmptyStr );
- aCC.setLocale( aOldLoc );
+ aCC.setLanguageTag( aOldLoc );
if (aTmpRes.TokenType & KParseType::ASC_NUMBER)
aRes.TokenType = aTmpRes.TokenType;
}