60 explicit Locale(
const std::string & str_r );
63 explicit Locale(
const char * str_r );
90 {
return std::string(
_str); }
93 std::string name()
const;
Country codes (iso3166-1-alpha-2).
Access to the sat-pools string space.
Language codes (iso639_2/iso639_1).
'Language[_Country]' codes.
CountryCode country() const
The county part.
static const Locale enCode
Last resort "en".
std::string code() const
Return the locale code asString.
static const Locale noCode
Empty code.
Locale()
Default Ctor: noCode.
static Locale bestMatch(const LocaleSet &avLocales_r, Locale requested_r=Locale())
Return the best match for Locale requested_r within the available avLocales_r.
Easy-to use interface to the ZYPP dependency resolver.
@ language
language support
std::unordered_set< Locale > LocaleSet
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
#define ZYPP_DEFINE_ID_HASHABLE(C)
Define hash function for id based classes.