diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-12-23 01:13:05 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2017-01-20 02:25:59 +0000 |
commit | cef8ebe925bde6fc1889085e3ccb1be236791e99 (patch) | |
tree | f2c5387e5012d5520bbdefd7571a7b7016190170 /starmath/inc | |
parent | e15fd1371567fd4b78dab37d843562ff676c52b8 (diff) |
starmath: Avoid ad hoc LanguageTag and CharClass at tokenization
Instead, keep them as SmParser's members.
Change-Id: I8a2aad7ba8baaad9a761f42f62d51fc67cadec07
Reviewed-on: https://gerrit.libreoffice.org/32348
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/parse.hxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx index d22a426519fe..76d602f1a3ed 100644 --- a/starmath/inc/parse.hxx +++ b/starmath/inc/parse.hxx @@ -19,7 +19,7 @@ #ifndef INCLUDED_STARMATH_INC_PARSE_HXX #define INCLUDED_STARMATH_INC_PARSE_HXX -#include <com/sun/star/lang/Locale.hpp> +#include <unotools/charclass.hxx> #include <memory> #include <set> #include <vector> @@ -46,8 +46,10 @@ class SmParser // map of used symbols (used to reduce file size by exporting only actually used symbols) std::set< OUString > m_aUsedSymbols; - //! locale where '.' is decimal separator! - css::lang::Locale m_aDotLoc; + // CharClass representing a locale for parsing numbers + CharClass m_aNumCC; + // pointer to System locale's CharClass, which is alive inside SM_MOD() + const CharClass* m_pSysCC; SmParser(const SmParser&) = delete; SmParser& operator=(const SmParser&) = delete; |