#include <Locale.h>
Public Member Functions | |
Locale () | |
Default ctor. | |
Locale (const std::string &code_r) | |
Ctor taking a string. | |
Locale (const LanguageCode &language_r, const CountryCode &country_r=CountryCode()) | |
Ctor taking LanguageCode and optional CountryCode. | |
~Locale () | |
Dtor. | |
const LanguageCode & | language () const |
const CountryCode & | country () const |
std::string | code () const |
Return the locale code. | |
std::string | name () const |
Return the name made of language and country name. | |
Locale | fallback () const |
Return a fallback locale for this locale, when giving up, returns empty Locale(). | |
Static Public Attributes | |
Locale constants. | |
static const Locale | noCode |
No or empty code. | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Pointer to implementation. | |
Friends | |
std::ostream & | operator<< (std::ostream &str, const Locale &obj) |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const Locale &lhs, const Locale &rhs) |
bool | operator== (const std::string &lhs, const Locale &rhs) |
bool | operator== (const Locale &lhs, const std::string &rhs) |
bool | operator!= (const Locale &lhs, const Locale &rhs) |
bool | operator!= (const std::string &lhs, const Locale &rhs) |
bool | operator!= (const Locale &lhs, const std::string &rhs) |
Classes | |
struct | Impl |
Locale implementation. More... |
Definition at line 31 of file Locale.h.
|
Default ctor.
|
|
Ctor taking a string.
|
|
Ctor taking LanguageCode and optional CountryCode.
|
|
Dtor.
|
|
Definition at line 172 of file Locale.cc. References _pimpl. |
|
Definition at line 180 of file Locale.cc. References _pimpl. |
|
Return the locale code.
Definition at line 188 of file Locale.cc. References _pimpl. Referenced by operator==(). |
|
Return the name made of language and country name.
Definition at line 196 of file Locale.cc. References _pimpl. Referenced by zypp::detail::LanguageImpl::summary(). |
|
Return a fallback locale for this locale, when giving up, returns empty Locale().
Definition at line 204 of file Locale.cc. References _pimpl. |
|
Stream output |
|
Definition at line 89 of file Locale.h. References code(). |
|
Definition at line 93 of file Locale.h. References code(). |
|
Definition at line 97 of file Locale.h. References code(). |
|
|
|
|
|
|
|
No or empty code.
Definition at line 58 of file Locale.h. Referenced by zypp::Language::availableInstance(), zypp::zypp_detail::defaultTextLocale(), and zypp::Language::installedInstance(). |
|
Pointer to implementation.
Definition at line 78 of file Locale.h. Referenced by code(), country(), fallback(), language(), and name(). |