libzypp 17.34.0
|
Wrap static codemap data. More...
Public Member Functions | |
LanguageCode | language (IdString index_r) |
CountryCode | country (IdString index_r) |
std::string | name (IdString index_r) |
Locale | fallback (IdString index_r) |
Static Public Member Functions | |
static IdString | withoutTrash (IdString code_r) |
Return IdString without trailing garbage. | |
static IdString | withoutTrash (const std::string &code_r) |
Return IdString without trailing garbage. | |
static IdString | withoutTrash (const char *code_r) |
Return IdString without trailing garbage. | |
static IdString | combineLC (const LanguageCode &language_r, const CountryCode &country_r) |
Return IdString from language/country codes. | |
static CodeMaps & | instance () |
The singleton. | |
Private Types | |
using | CodeMap = std::unordered_map<IdString, LC> |
Private Member Functions | |
CodeMaps () | |
Ctor initializes the code maps. | |
const LC & | getIndex (IdString index_r) |
Return LC for index_r, creating it if necessary. | |
Static Private Member Functions | |
static IdString | withoutTrash (boost::string_ref code_r) |
static boost::string_ref::size_type | trashStart (boost::string_ref code_r) |
static boost::string_ref::size_type | trashStart (IdString code_r) |
Private Attributes | |
CodeMap | _codeMap |
|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inlineprivate |