diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 14:13:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-16 14:13:07 +0000 |
commit | 3f41fea91bae205d38a92521f317411614d03116 (patch) | |
tree | caa03173a6819892eb22e6ec2b4a0d8dde768940 /i18nutil | |
parent | 822cfe5e6d2aa07353dba44fdf3bec6f802a22f7 (diff) |
equalsAsciiL faster than equalsAscii & comparetoAscii(const sal_Char*)
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/casefolding.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i18nutil/source/utility/casefolding.cxx b/i18nutil/source/utility/casefolding.cxx index 5f1a2a0df1df..01d1e3488c76 100644 --- a/i18nutil/source/utility/casefolding.cxx +++ b/i18nutil/source/utility/casefolding.cxx @@ -46,7 +46,7 @@ static Mapping mapping_0049[] = {{0, 2, {0x0069, 0x0307, 0}},{0, 1, {0x0131, 0, static Mapping mapping_0069[] = {{0, 1, {0x0130, 0, 0}},{0, 1, {0x0049, 0, 0}}}; static Mapping mapping_0130[] = {{0, 1, {0x0069, 0, 0}},{0, 1, {0x0130, 0, 0}}}; -#define langIs(lang) (aLocale.Language.compareToAscii(lang) == 0) +#define langIs(lang) (aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(lang))) // only check simple case, there is more complicated case need to be checked. #define type_i(ch) ((ch) == 0x0069 || (ch) == 0x006a) |