#include <YCode.h>

Classes | |
| struct | eqstr |
Public Types | |
| typedef __gnu_cxx::hash_map < const char *, bool, __gnu_cxx::hash< const char * > , eqstr > | t_uniquedomains |
Public Member Functions | |
| YLocale (const char *locale, const char *textdomain) | |
| YLocale (bytecodeistream &str) | |
| ~YLocale () | |
| virtual ykind | kind () const |
| const char * | value () const |
| const char * | domain () const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| std::ostream & | toXml (std::ostream &str, int indent) const |
| YCPValue | evaluate (bool cse=false) |
| constTypePtr | type () const |
Static Public Member Functions | |
| static t_uniquedomains::const_iterator | setDomainStatus (const string &domain, bool status) |
| static void | ensureBindDomain (const string &domain) |
| static void | bindDomainDir (const string &domain, const string &domain_path) |
| static bool | findDomain (const string &domain) |
Static Public Attributes | |
| static t_uniquedomains | domains |
Private Member Functions | |
| REP_BODY (YLocale) | |
Private Attributes | |
| const char * | m_locale |
| t_uniquedomains::const_iterator | m_domain |
| typedef __gnu_cxx::hash_map<const char*, bool, __gnu_cxx::hash<const char*>, eqstr> YLocale::t_uniquedomains |
| YLocale::YLocale | ( | bytecodeistream & | str | ) |
References domains, m_domain, m_locale, and Bytecode::readCharp().
| YLocale::~YLocale | ( | ) |
References m_locale.
| void YLocale::bindDomainDir | ( | const string & | domain, | |
| const string & | domain_path | |||
| ) | [static] |
| const char * YLocale::domain | ( | ) | const |
References m_domain.
| void YLocale::ensureBindDomain | ( | const string & | domain | ) | [static] |
References bindDomainDir(), and domains.
Referenced by YSTextdomain::bind(), s_dgettext(), and s_dngettext().
| YCPValue YLocale::evaluate | ( | bool | cse = false |
) | [virtual] |
| bool YLocale::findDomain | ( | const string & | domain | ) | [static] |
| virtual ykind YLocale::kind | ( | ) | const [inline, virtual] |
Kind of this YCode. This method must be reimplemented in the inherited classes.
Implements YCode.
References YCode::ycLocale.
| YLocale::REP_BODY | ( | YLocale | ) | [private] |
| YLocale::t_uniquedomains::const_iterator YLocale::setDomainStatus | ( | const string & | domain, | |
| bool | status | |||
| ) | [static] |
| std::ostream & YLocale::toStream | ( | std::ostream & | str | ) | const [virtual] |
Write YCP code to a byte stream (bytecode implementation). Every class inheriting from YCode must reimplement this method.
| str | byte stream to store into |
Implements YCode.
References m_domain, m_locale, and Bytecode::writeCharp().
| string YLocale::toString | ( | void | ) | const [virtual] |
| std::ostream & YLocale::toXml | ( | std::ostream & | str, | |
| int | indent | |||
| ) | const [virtual] |
Write YCP code as XML representation. Every class inheriting from YCode must reimplement this method.
| str | string stream to store into | |
| indend | indentation level for pretty print |
Implements YCode.
References m_domain, m_locale, and Xmlcode::xmlify().
| constTypePtr YLocale::type | ( | ) | const [inline, virtual] |
Return type of this YCP code (interesting mostly for function calls).
Reimplemented from YCode.
References Type::Locale.
| const char * YLocale::value | ( | ) | const |
References m_locale.
YLocale::t_uniquedomains YLocale::domains [static] |
Referenced by ensureBindDomain(), findDomain(), setDomainStatus(), YELocale::YELocale(), and YLocale().
t_uniquedomains::const_iterator YLocale::m_domain [private] |
Referenced by domain(), evaluate(), toStream(), toXml(), and YLocale().
const char* YLocale::m_locale [private] |
Referenced by evaluate(), toStream(), toString(), toXml(), value(), YLocale(), and ~YLocale().
1.5.9