libzypp
13.10.6
|
Language codes (iso639_2/iso639_1). More...
#include <LanguageCode.h>
Classes | |
struct | Impl |
LanguageCode implementation. More... | |
Public Member Functions | |
LanguageCode () | |
Default ctor. More... | |
LanguageCode (const std::string &code_r) | |
Ctor taking a string. More... | |
~LanguageCode () | |
Dtor. More... | |
std::string | code () const |
Return the language code. More... | |
std::string | name () const |
Return the language name; if not available the language code. More... | |
bool | hasCode () const |
*this != noCode . More... | |
Static Public Attributes | |
LanguageCode constants. | |
static const LanguageCode | noCode |
No or empty code. More... | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Pointer to implementation. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const LanguageCode &obj) |
Related Functions | |
(Note that these are not member functions.) | |
std::ostream & | operator<< (std::ostream &str, const LanguageCode &obj) |
template<> | |
bool | operator() (const zypp::LanguageCode &lhs, const zypp::LanguageCode &rhs) const |
bool | operator== (const LanguageCode &lhs, const LanguageCode &rhs) |
Comparison based on string value. More... | |
bool | operator== (const std::string &lhs, const LanguageCode &rhs) |
bool | operator== (const LanguageCode &lhs, const std::string &rhs) |
bool | operator!= (const LanguageCode &lhs, const LanguageCode &rhs) |
bool | operator!= (const std::string &lhs, const LanguageCode &rhs) |
bool | operator!= (const LanguageCode &lhs, const std::string &rhs) |
Language codes (iso639_2/iso639_1).
In fact the class will not prevent to use a non iso language code. Just a warning will appear in the log.
Definition at line 37 of file LanguageCode.h.
zypp::LanguageCode::LanguageCode | ( | ) |
Default ctor.
Definition at line 149 of file LanguageCode.cc.
|
explicit |
Ctor taking a string.
Definition at line 158 of file LanguageCode.cc.
zypp::LanguageCode::~LanguageCode | ( | ) |
Dtor.
Definition at line 167 of file LanguageCode.cc.
std::string zypp::LanguageCode::code | ( | ) | const |
Return the language code.
Definition at line 175 of file LanguageCode.cc.
std::string zypp::LanguageCode::name | ( | ) | const |
Return the language name; if not available the language code.
Definition at line 183 of file LanguageCode.cc.
|
inline |
*this != noCode
.
Definition at line 71 of file LanguageCode.h.
|
friend |
|
related |
Stream output
Definition at line 81 of file LanguageCode.h.
|
related |
Comparison based on string value.
Definition at line 87 of file LanguageCode.h.
|
related |
Definition at line 91 of file LanguageCode.h.
|
related |
Definition at line 95 of file LanguageCode.h.
|
related |
Definition at line 100 of file LanguageCode.h.
|
related |
Definition at line 104 of file LanguageCode.h.
|
related |
Definition at line 108 of file LanguageCode.h.
|
related |
Default order for std::container based on code string value.
Definition at line 122 of file LanguageCode.h.
|
static |
No or empty code.
Definition at line 60 of file LanguageCode.h.
|
private |
Pointer to implementation.
Definition at line 76 of file LanguageCode.h.