#include <LanguageCode.h>
Public Member Functions | |
| LanguageCode () | |
| Default ctor. | |
| LanguageCode (const std::string &code_r) | |
| Ctor taking a string. | |
| ~LanguageCode () | |
| Dtor. | |
| std::string | code () const |
| Return the language code. | |
| std::string | name () const |
| Return the language name; if not available the language code. | |
| bool | hasCode () const |
*this != noCode. | |
Static Public Attributes | |
LanguageCode constants. | |
| static const LanguageCode | noCode |
| No or empty code. | |
Private Attributes | |
| RW_pointer< Impl > | _pimpl |
| Pointer to implementation. | |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const LanguageCode &obj) |
Related Functions | |
| (Note that these are not member functions.) | |
| 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) |
| 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) |
Classes | |
| struct | Impl |
| LanguageCode implementation. More... | |
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.
|
|
Default ctor.
Definition at line 181 of file LanguageCode.cc. |
|
|
Ctor taking a string.
Definition at line 190 of file LanguageCode.cc. |
|
|
Dtor.
Definition at line 199 of file LanguageCode.cc. |
|
|
Return the language code.
Definition at line 207 of file LanguageCode.cc. References _pimpl. Referenced by zypp::Locale::Impl::code(), and operator==(). |
|
|
Return the language name; if not available the language code.
Definition at line 215 of file LanguageCode.cc. References _pimpl. Referenced by zypp::Locale::Impl::name(). |
|
|
Definition at line 71 of file LanguageCode.h. References noCode. |
|
||||||||||||
|
Stream output Definition at line 81 of file LanguageCode.h. |
|
||||||||||||
|
Definition at line 87 of file LanguageCode.h. References code(). |
|
||||||||||||
|
Definition at line 91 of file LanguageCode.h. References code(). |
|
||||||||||||
|
Definition at line 95 of file LanguageCode.h. References code(). |
|
||||||||||||
|
Definition at line 100 of file LanguageCode.h. |
|
||||||||||||
|
Definition at line 104 of file LanguageCode.h. |
|
||||||||||||
|
Definition at line 108 of file LanguageCode.h. |
|
|
No or empty code.
Definition at line 60 of file LanguageCode.h. Referenced by hasCode(). |
|
|
Pointer to implementation.
Definition at line 76 of file LanguageCode.h. |
1.4.6