LibreOffice Module i18nlangtag (master) 1
|
Encapsulated conversion methods used by LanguageTag and conversions, not to be used by anything else. More...
#include <mslangid.hxx>
Static Private Member Functions | |
static I18NLANGTAG_DLLPRIVATE LanguageType | convertLocaleToLanguage (const css::lang::Locale &rLocale) |
Convert a Locale to a LanguageType with handling of an empty language name designating LANGUAGE_SYSTEM. More... | |
static I18NLANGTAG_DLLPRIVATE LanguageType | convertLocaleToLanguageImpl (const css::lang::Locale &rLocale) |
Used by convertLocaleToLanguage(Locale) More... | |
static I18NLANGTAG_DLLPRIVATE LanguageType | convertPrivateUseToLanguage (std::u16string_view rPriv) |
Convert x-... privateuse, used by convertLocaleToLanguageImpl(Locale) More... | |
static I18NLANGTAG_DLLPRIVATE css::lang::Locale | getOverride (const css::lang::Locale &rLocale) |
Used by LanguageTag::canonicalize() More... | |
static I18NLANGTAG_DLLPRIVATE LanguageType | convertIsoNamesToLanguage (const OUString &rLang, const OUString &rCountry, bool bSkipIsoTable) |
Used by convertLocaleToLanguageImpl(Locale) and LanguageTagImpl::convertLocaleToLang() More... | |
static I18NLANGTAG_DLLPRIVATE LanguageType | convertIsoNamesToLanguage (std::string_view rLang, std::string_view rCountry) |
Used by convertUnxByteStringToLanguage(OString) More... | |
static I18NLANGTAG_DLLPRIVATE css::lang::Locale | getLocale (const IsoLanguageCountryEntry *pEntry) |
Used by lookupFallbackLocale(Locale) More... | |
static I18NLANGTAG_DLLPRIVATE css::lang::Locale | getLocale (const IsoLanguageScriptCountryEntry *pEntry) |
Used by lookupFallbackLocale(Locale) More... | |
static I18NLANGTAG_DLLPRIVATE css::lang::Locale | getLocale (const Bcp47CountryEntry *pEntry) |
Used by lookupFallbackLocale(Locale) More... | |
static I18NLANGTAG_DLLPRIVATE css::lang::Locale | convertLanguageToLocale (LanguageType nLang, bool bIgnoreOverride) |
Convert a LanguageType to a Locale. More... | |
static I18NLANGTAG_DLLPRIVATE void | convertLanguageToLocaleImpl (LanguageType nLang, css::lang::Locale &rLocale, bool bIgnoreOverride) |
Used by convertLanguageToLocale(LanguageType,bool) and getLocale(IsoLanguageCountryEntry*) and getLocale(IsoLanguageScriptCountryEntry*) and getLocale(Bcp47CountryEntry*) More... | |
static I18NLANGTAG_DLLPRIVATE css::lang::Locale | lookupFallbackLocale (const css::lang::Locale &rLocale) |
Friends | |
class | LanguageTag |
class | LanguageTagImpl |
css::lang::Locale | MsLangId::getFallbackLocale (const css::lang::Locale &rLocale) |
LanguageType | MsLangId::convertUnxByteStringToLanguage (std::string_view rString) |
Encapsulated conversion methods used by LanguageTag and conversions, not to be used by anything else.
Definition at line 238 of file mslangid.hxx.
|
staticprivate |
Used by convertLocaleToLanguageImpl(Locale) and LanguageTagImpl::convertLocaleToLang()
Definition at line 1315 of file isolang.cxx.
References aImplIsoLangEngEntries, aImplIsoLangEntries, aImplIsoNoneStdLangEntries, aImplIsoNoneStdLangEntries2, aImplOtherEntries, and LANGUAGE_DONTKNOW.
Referenced by LanguageTagImpl::convertLocaleToLang(), and MsLangId::convertUnxByteStringToLanguage().
|
staticprivate |
Used by convertUnxByteStringToLanguage(OString)
Definition at line 1404 of file isolang.cxx.
References LanguageTag::getLanguageType(), LANGUAGE_DONTKNOW, LANGUAGE_ENGLISH_US, LANGUAGE_SYSTEM, and SAL_WARN.
|
staticprivate |
Convert a LanguageType to a Locale.
Definition at line 193 of file mslangid.cxx.
References MsLangId::getRealLanguage(), LANGUAGE_SYSTEM, and MsLangId::simplifySystemLanguages().
Referenced by LanguageTagImpl::convertLangToLocale(), LanguageTagImpl::convertLocaleToBcp47(), MsLangId::getFallbackLocale(), and LanguageTag::registerImpl().
|
staticprivate |
Used by convertLanguageToLocale(LanguageType,bool) and getLocale(IsoLanguageCountryEntry*) and getLocale(IsoLanguageScriptCountryEntry*) and getLocale(Bcp47CountryEntry*)
bIgnoreOverride | If bIgnoreOverride==true, a matching entry is used even if mnOverride is set, for conversion to an even outdated tag. If bIgnoreOverride==false, a matching entry is skipped if mnOverride is set and instead the override is followed. |
Definition at line 968 of file isolang.cxx.
References aImplBcp47CountryEntries, aImplIsoLangEntries, aImplIsoLangScriptEntries, aImplPrivateUseEntries, I18NLANGTAG_QLT, LANGUAGE_DONTKNOW, and LANGUAGE_ENGLISH_US.
|
staticprivate |
Convert a Locale to a LanguageType with handling of an empty language name designating LANGUAGE_SYSTEM.
Definition at line 214 of file mslangid.cxx.
References LANGUAGE_SYSTEM.
Referenced by LanguageTagImpl::convertLocaleToLang(), and LanguageTag::registerImpl().
|
staticprivate |
Used by convertLocaleToLanguage(Locale)
Definition at line 1226 of file isolang.cxx.
References aImplBcp47CountryEntries, aImplIsoLangEntries, aImplIsoLangScriptEntries, I18NLANGTAG_QLT, and LANGUAGE_DONTKNOW.
|
staticprivate |
Convert x-... privateuse, used by convertLocaleToLanguageImpl(Locale)
Definition at line 1213 of file isolang.cxx.
References aImplPrivateUseEntries, o3tl::equalsIgnoreAsciiCase(), and LANGUAGE_DONTKNOW.
|
staticprivate |
Used by lookupFallbackLocale(Locale)
Definition at line 1094 of file isolang.cxx.
References Bcp47CountryEntry::getLocale(), Bcp47CountryEntry::mnLang, and Bcp47CountryEntry::mnOverride.
|
staticprivate |
Used by lookupFallbackLocale(Locale)
Definition at line 1068 of file isolang.cxx.
References IsoLanguageCountryEntry::getLocale(), IsoLanguageCountryEntry::mnLang, and IsoLanguageCountryEntry::mnOverride.
|
staticprivate |
Used by lookupFallbackLocale(Locale)
Definition at line 1081 of file isolang.cxx.
References IsoLanguageScriptCountryEntry::getLocale(), IsoLanguageScriptCountryEntry::mnLang, and IsoLanguageScriptCountryEntry::mnOverride.
|
staticprivate |
Used by LanguageTag::canonicalize()
Definition at line 1271 of file isolang.cxx.
References aImplBcp47CountryEntries, aImplIsoLangEntries, aImplIsoLangScriptEntries, getLocale(), and I18NLANGTAG_QLT.
Referenced by LanguageTagImpl::canonicalize().
|
staticprivate |
Definition at line 1107 of file isolang.cxx.
References aImplBcp47CountryEntries, aImplIsoLangEntries, aImplIsoLangScriptEntries, aLastResortFallbackEntry, getLocale(), IsoLanguageCountryEntry::getLocale(), I18NLANGTAG_QLT, LANGUAGE_KASHMIRI, LANGUAGE_MULTIPLE, LANGUAGE_NONE, LANGUAGE_UNDETERMINED, LANGUAGE_USER_ESPERANTO, LANGUAGE_USER_INTERLINGUA, LANGUAGE_USER_INTERLINGUE, LANGUAGE_USER_KEYID, LANGUAGE_USER_KLINGON, LANGUAGE_USER_LOJBAN, and IsoLanguageCountryEntry::maCountry.
Referenced by LanguageTagImpl::convertLocaleToLang(), MsLangId::getFallbackLocale(), and LanguageTag::makeFallback().
|
friend |
Definition at line 242 of file mslangid.hxx.
|
friend |
Definition at line 243 of file mslangid.hxx.
|
friend |
|
friend |