diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-01-21 18:11:12 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-01-25 15:54:14 +0000 |
commit | 6e193148df69eff428fec23560e9d3ad4f503597 (patch) | |
tree | 0de7eb36b0b70d09ea03e242e648bc881d10f3f8 /i18npool/inc | |
parent | cb989a58ec456a340a8a1f26683847f9b2a87caa (diff) |
i18npool: handle non-BMP Unicode in cclass_Unicode::parseText()
The UTF-16 code unit limitation was mangling starmath import.
Change-Id: I087e5c5b7954799fdb73e7ee1a8d3d02669f8831
(cherry picked from commit fefd1221be844a033e409a18e05e8c6e98f6d1a7)
Reviewed-on: https://gerrit.libreoffice.org/21784
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/cclass_unicode.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/i18npool/inc/cclass_unicode.hxx b/i18npool/inc/cclass_unicode.hxx index eb449e45db38..e88530a92e41 100644 --- a/i18npool/inc/cclass_unicode.hxx +++ b/i18npool/inc/cclass_unicode.hxx @@ -135,13 +135,13 @@ private: sal_Unicode cDecimalSep; /// Get corresponding KParseTokens flag for a character - static sal_Int32 getParseTokensType( const sal_Unicode* aStr, sal_Int32 nPos ); + static sal_Int32 getParseTokensType(sal_uInt32 c, bool isFirst); /// Access parser table flags. - UPT_FLAG_TYPE getFlags( const sal_Unicode* aStr, sal_Int32 nPos ); + UPT_FLAG_TYPE getFlags(sal_uInt32 c); /// Access parser flags via International and special definitions. - UPT_FLAG_TYPE getFlagsExtended( const sal_Unicode* aStr, sal_Int32 nPos ); + UPT_FLAG_TYPE getFlagsExtended(sal_uInt32 c); /// Access parser table flags for user defined start characters. UPT_FLAG_TYPE getStartCharsFlags( sal_Unicode c ); |