diff options
Diffstat (limited to 'i18nlangtag')
-rw-r--r-- | i18nlangtag/source/isolang/isolang.cxx | 6 | ||||
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/i18nlangtag/source/isolang/isolang.cxx b/i18nlangtag/source/isolang/isolang.cxx index 3d8da21708b1..60fbe5ff4e0a 100644 --- a/i18nlangtag/source/isolang/isolang.cxx +++ b/i18nlangtag/source/isolang/isolang.cxx @@ -104,6 +104,8 @@ struct Bcp47CountryEntry css::lang::Locale getLocale() const; }; +namespace { + struct IsoLangEngEntry { LanguageType mnLang; @@ -123,6 +125,7 @@ struct IsoLangOtherEntry const sal_Char* mpLanguage; }; +} // Entries for languages are lower case, for countries upper case, as // recommended by rfc5646 (obsoletes rfc4646 (obsoletes rfc3066 (obsoletes @@ -1412,6 +1415,7 @@ LanguageType MsLangId::Conversion::convertIsoNamesToLanguage( const OString& rLa return convertIsoNamesToLanguage( aLang, aCountry, false); } +namespace { struct IsoLangGLIBCModifiersEntry { @@ -1421,6 +1425,8 @@ struct IsoLangGLIBCModifiersEntry sal_Char maAtString[9]; }; +} + static IsoLangGLIBCModifiersEntry const aImplIsoLangGLIBCModifiersEntries[] = { // MS-LANGID codes ISO639-1/2/3 ISO3166 glibc modifier diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx index 7f580dfc9dd3..ef47e54579bc 100644 --- a/i18nlangtag/source/languagetag/languagetag.cxx +++ b/i18nlangtag/source/languagetag/languagetag.cxx @@ -33,6 +33,7 @@ using namespace com::sun::star; +namespace { // Helper to ensure lt_error_t is free'd struct myLtError @@ -43,7 +44,6 @@ struct myLtError }; // "statics" to be returned as const reference to an empty locale and string. -namespace { struct theEmptyLocale : public rtl::Static< lang::Locale, theEmptyLocale > {}; struct theEmptyBcp47 : public rtl::Static< OUString, theEmptyBcp47 > {}; } @@ -141,6 +141,7 @@ bool LanguageTag::isOnTheFlyID( LanguageType nLang ) LANGUAGE_ON_THE_FLY_SUB_START <= nSub && nSub <= LANGUAGE_ON_THE_FLY_SUB_END; } +namespace { /** A reference holder for liblangtag data de/initialization, one static instance. Currently implemented such that the first "ref" inits and dtor @@ -165,7 +166,6 @@ private: static void teardown(); }; -namespace { struct theDataRef : public rtl::Static< LiblangtagDataRef, theDataRef > {}; } |