|
libzypp
15.22.2
|
Wrap static codemap data. More...
Classes | |
| struct | LC |
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. More... | |
| static IdString | withoutTrash (const std::string &code_r) |
| Return IdString without trailing garbage. More... | |
| static IdString | withoutTrash (const char *code_r) |
| Return IdString without trailing garbage. More... | |
| static IdString | combineLC (LanguageCode language_r, CountryCode country_r) |
| Return IdString from language/country codes. More... | |
| static CodeMaps & | instance () |
| The singleton. More... | |
Private Types | |
| typedef std::unordered_map < IdString, LC > | CodeMap |
Private Member Functions | |
| CodeMaps () | |
| Ctor initializes the code maps. More... | |
| const LC & | getIndex (IdString index_r) |
| Return LC for index_r, creating it if necessary. More... | |
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 |
|
private |
|
inlineprivate |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestaticprivate |