From af60316514f3ae3d4c475819bf86f2af837171e3 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Fri, 23 Nov 2012 23:06:10 +0100 Subject: some i18n wrappers with LanguageTag Change-Id: I2ceaa3159e8669c2c569fa8559c1e061dcad399d --- starmath/source/parse.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'starmath/source/parse.cxx') 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; } -- cgit