Go to the documentation of this file.
59 explicit Locale(
const std::string & str_r );
62 explicit Locale(
const char * str_r );
89 {
return std::string(
_str); }
92 std::string
name()
const;
119 #endif // ZYPP_LOCALE_H
std::string code() const
Return the locale code asString.
static Locale bestMatch(const LocaleSet &avLocales_r, Locale requested_r=Locale())
Return the best match for Locale requested_r within the available avLocales_r.
Base class for creating IdString based types.
Locale()
Default Ctor: noCode.
static const Locale noCode
Empty code.
Language codes (iso639_2/iso639_1).
CountryCode country() const
The county part.
Access to the sat-pools string space.
std::string name() const
Return the translated locale name.
ZYPP_DEFINE_ID_HASHABLE(::zypp::Locale)
Easy-to use interface to the ZYPP dependency resolver.
Locale fallback() const
Return the fallback locale for this locale, if no fallback exists the empty Locale::noCode.
Country codes (iso3166-1-alpha-2).
std::unordered_set< Locale > LocaleSet
static const Locale enCode
Last resort "en".
'Language[_Country]' codes.
LanguageCode language() const
The language part.