yast2-core
|
#include <YCode.h>
Classes | |
struct | eqstr |
Public Types | |
typedef __gnu_cxx::hash_map < const char *, bool, __gnu_cxx::hash< const char * > , eqstr > | t_uniquedomains |
![]() | |
enum | ykind { yxError = 0, ycVoid, ycBoolean, ycInteger, ycFloat, ycString, ycByteblock, ycPath, ycSymbol, ycList, ycMap, ycTerm, ycEntry, ycConstant, ycLocale, ycFunction, yePropagate, yeUnary, yeBinary, yeTriple, yeCompare, yeLocale, yeList, yeMap, yeTerm, yeIs, yeBracket, yeBlock, yeReturn, yeVariable, yeBuiltin, yeFunction, yeReference, yeFunctionPointer, yeExpression, ysTypedef, ysVariable, ysFunction, ysAssign, ysBracket, ysIf, ysWhile, ysDo, ysRepeat, ysExpression, ysReturn, ysBreak, ysContinue, ysTextdomain, ysInclude, ysFilename, ysImport, ysBlock, ysSwitch, ysStatement, yiBreakpoint } |
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 |
![]() | |
YCode () | |
virtual | ~YCode () |
std::string | commentToXml () const |
std::ostream & | commentToXml (std::ostream &str) const |
virtual bool | isConstant () const |
bool | isError () const |
virtual bool | isStatement () const |
virtual bool | isBlock () const |
virtual bool | isReferenceable () const |
void | setCommentBefore (const char *comment) |
void | setCommentAfter (const char *comment) |
![]() | |
Rep () | |
Rep (const Rep &) | |
Rep & | operator= (const Rep &) |
virtual | ~Rep () |
void | ref () const |
void | unref () const |
unsigned | refCount () const |
virtual const char * | repName () const |
virtual std::ostream & | dumpOn (std::ostream &str) 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 string | toString (ykind kind) |
![]() | |
static void | ref (const Rep *obj_r) |
static void | unref (const Rep *obj_r) |
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 |
Additional Inherited Members | |
![]() | |
virtual void | ref_to (unsigned) const |
virtual void | unref_to (unsigned) const |
![]() | |
const char * | comment_before |
const char * | comment_after |
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.
|
static |
References setDomainStatus(), and y2debug.
Referenced by ensureBindDomain(), and s_dpgettext().
const char * YLocale::domain | ( | ) | const |
References m_domain.
|
static |
References bindDomainDir(), and domains.
Referenced by YSTextdomain::bind(), s_dgettext(), and s_dngettext().
|
virtual |
|
static |
References domains.
Referenced by s_dpgettext().
|
inlinevirtual |
Kind of this YCode. This method must be reimplemented in the inherited classes.
Implements YCode.
References YCode::ycLocale.
|
private |
|
static |
References domains.
Referenced by bindDomainDir().
|
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, YCode::toStream(), and Bytecode::writeCharp().
|
virtual |
|
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 YCode::commentToXml(), m_domain, m_locale, str, and Xmlcode::xmlify().
|
inlinevirtual |
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.
|
static |
Referenced by ensureBindDomain(), findDomain(), setDomainStatus(), YELocale::YELocale(), and YLocale().
|
private |
Referenced by domain(), evaluate(), toStream(), toXml(), and YLocale().
|
private |
Referenced by evaluate(), toStream(), toString(), toXml(), value(), YLocale(), and ~YLocale().