diff options
-rw-r--r-- | i18nlangtag/source/isolang/isolang.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx index 58ef58e77080..41d8411210c3 100644 --- a/i18nlangtag/source/isolang/isolang.cxx +++ b/i18nlangtag/source/isolang/isolang.cxx @@ -773,9 +773,9 @@ void MsLangId::Conversion::convertLanguageToLocaleImpl( LanguageType nLang, for (const IsoLanguageScriptCountryEntry* pScriptEntry = aImplIsoLangScriptEntries; pScriptEntry->mnLang != LANGUAGE_DONTKNOW; ++pScriptEntry) { - if (rLocale.Variant.startsWith( pScriptEntry->maLanguageScript)) + if (rLocale.Variant.startsWithIgnoreAsciiCase( pScriptEntry->maLanguageScript)) { - if (pScriptEntry->getTagString() == rLocale.Variant) + if (rLocale.Variant.equalsIgnoreAsciiCase( pScriptEntry->getTagString())) return pScriptEntry->getLocale(); if (!pFirstScript) pFirstScript = pScriptEntry; @@ -792,8 +792,8 @@ void MsLangId::Conversion::convertLanguageToLocaleImpl( LanguageType nLang, for (const IsoLanguageScriptCountryEntry* pScriptEntry = pFirstScript; pScriptEntry->mnLang != LANGUAGE_DONTKNOW; ++pScriptEntry) { - if (rLocale.Variant.startsWith( pScriptEntry->maLanguageScript) && - pScriptEntry->maCountry == rLocale.Country) + if (rLocale.Variant.startsWithIgnoreAsciiCase( pScriptEntry->maLanguageScript) && + rLocale.Country.equalsIgnoreAsciiCaseAscii( pScriptEntry->maCountry)) return pScriptEntry->getLocale(); } } @@ -888,9 +888,9 @@ LanguageType MsLangId::Conversion::convertLocaleToLanguageImpl( for (const IsoLanguageScriptCountryEntry* pScriptEntry = aImplIsoLangScriptEntries; pScriptEntry->mnLang != LANGUAGE_DONTKNOW; ++pScriptEntry) { - if (rLocale.Variant.startsWith( pScriptEntry->maLanguageScript)) + if (rLocale.Variant.startsWithIgnoreAsciiCase( pScriptEntry->maLanguageScript)) { - if (pScriptEntry->getTagString() == rLocale.Variant) + if (rLocale.Variant.equalsIgnoreAsciiCase( pScriptEntry->getTagString())) return pScriptEntry->mnLang; } } |