summaryrefslogtreecommitdiff
path: root/i18npool/source/collator/collator_unicode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/collator/collator_unicode.cxx')
-rw-r--r--i18npool/source/collator/collator_unicode.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/collator/collator_unicode.cxx b/i18npool/source/collator/collator_unicode.cxx
index 48f30a182345..8da25cb34c98 100644
--- a/i18npool/source/collator/collator_unicode.cxx
+++ b/i18npool/source/collator/collator_unicode.cxx
@@ -141,9 +141,9 @@ Collator_Unicode::loadCollatorAlgorithm(const OUString& rAlgorithm, const lang::
} else {
if ( rLocale.Language == "ja" ) {
// replace algorithm name to implementation name.
- if (rAlgorithm.startsWith("phonetic (alphanumeric first)") )
+ if (rAlgorithm == "phonetic (alphanumeric first)")
aBuf.appendAscii("phonetic_alphanumeric_first");
- else if (rAlgorithm.startsWith("phonetic (alphanumeric last)"))
+ else if (rAlgorithm == "phonetic (alphanumeric last)")
aBuf.appendAscii("phonetic_alphanumeric_last");
else
aBuf.append(rAlgorithm);