LibreOffice Module i18npool (master) 1
|
#include <LocaleNode.hxx>
Public Member Functions | |
LocaleNode (OUString name, const Reference< XAttributeList > &attr) | |
void | setValue (std::u16string_view oValue) |
const OUString & | getName () const |
const OUString & | getValue () const |
const Attr & | getAttr () const |
sal_Int32 | getNumberOfChildren () const |
LocaleNode * | getChildAt (sal_Int32 idx) const |
const LocaleNode * | findNode (const char *name) const |
virtual | ~LocaleNode () |
void | addChild (LocaleNode *node) |
const LocaleNode * | getRoot () const |
int | getError () const |
virtual void | generateCode (const OFileWriter &of) const |
OUString | writeOUStringLiteralParameterCheckLen (const OFileWriter &of, const char *pParameterName, const LocaleNode *pNode, sal_Int32 nMinLen, sal_Int32 nMaxLen) const |
OUString | writeOUStringLiteralParameterCheckLen (const OFileWriter &of, const char *pNodeName, const char *pParameterName, sal_Int32 nMinLen, sal_Int32 nMaxLen) const |
void | incError (const char *pStr) const |
void | incError (std::u16string_view rStr) const |
void | incErrorInt (const char *pStr, int nVal) const |
void | incErrorStr (const char *pStr, std::u16string_view rVal) const |
void | incErrorStrStr (const char *pStr, std::u16string_view rVal1, std::u16string_view rVal2) const |
Static Public Member Functions | |
static LocaleNode * | createNode (const OUString &name, const Reference< XAttributeList > &attr) |
Protected Attributes | |
int | nError |
Private Attributes | |
OUString | aName |
OUString | aValue |
Attr | aAttribs |
LocaleNode * | parent |
std::vector< std::unique_ptr< LocaleNode > > | children |
Definition at line 78 of file LocaleNode.hxx.
LocaleNode::LocaleNode | ( | OUString | name, |
const Reference< XAttributeList > & | attr | ||
) |
Definition at line 46 of file LocaleNode.cxx.
Referenced by createNode().
|
virtual |
Definition at line 88 of file LocaleNode.cxx.
void LocaleNode::addChild | ( | LocaleNode * | node | ) |
Definition at line 62 of file LocaleNode.cxx.
|
static |
Definition at line 92 of file LocaleNode.cxx.
References LocaleNode(), and name.
const LocaleNode * LocaleNode::findNode | ( | const char * | name | ) | const |
Definition at line 76 of file LocaleNode.cxx.
References aName, children, i, n, and name.
Referenced by LCInfoNode::generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCurrencyNode::generateCode(), LCMiscNode::generateCode(), and writeOUStringLiteralParameterCheckLen().
|
virtual |
Reimplemented in LCInfoNode, LCCTYPENode, LCFormatNode, LCCollationNode, LCIndexNode, LCSearchNode, LCCalendarNode, LCCurrencyNode, LCTransliterationNode, LCMiscNode, LCNumberingLevelNode, and LCOutlineNumberingLevelNode.
Definition at line 130 of file LocaleNode.cxx.
References children, generateCode(), getAttr(), Attr::getValueByName(), i, LOCALE_VERSION_DTD, and nError.
Referenced by generateCode().
|
inline |
Definition at line 94 of file LocaleNode.hxx.
References aAttribs.
Referenced by generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), LCMiscNode::generateCode(), LCNumberingLevelNode::generateCode(), and LCOutlineNumberingLevelNode::generateCode().
|
inline |
Definition at line 96 of file LocaleNode.hxx.
Referenced by LCCalendarNode::expectedCalendarElement(), LCInfoNode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), LCMiscNode::generateCode(), LCNumberingLevelNode::generateCode(), LCOutlineNumberingLevelNode::generateCode(), and lcl_writeAbbrFullNarrNames().
int LocaleNode::getError | ( | ) | const |
Definition at line 54 of file LocaleNode.cxx.
References children, err, getError(), i, and nError.
Referenced by getError().
|
inline |
Definition at line 92 of file LocaleNode.hxx.
References aName.
Referenced by LCCalendarNode::expectedCalendarElement(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCCalendarNode::generateCode(), and writeOUStringLiteralParameterCheckLen().
|
inline |
Definition at line 95 of file LocaleNode.hxx.
References children.
Referenced by LCCalendarNode::expectedCalendarElement(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), LCNumberingLevelNode::generateCode(), LCOutlineNumberingLevelNode::generateCode(), and lcl_writeAbbrFullNarrNames().
const LocaleNode * LocaleNode::getRoot | ( | ) | const |
Definition at line 67 of file LocaleNode.cxx.
References parent.
Referenced by LCFormatNode::generateCode().
|
inline |
Definition at line 93 of file LocaleNode.hxx.
References aValue.
Referenced by LCInfoNode::generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCMiscNode::generateCode(), lcl_writeAbbrFullNarrNames(), and writeOUStringLiteralParameterCheckLen().
void LocaleNode::incError | ( | const char * | pStr | ) | const |
Definition at line 200 of file LocaleNode.cxx.
References nError.
Referenced by LCInfoNode::generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCMiscNode::generateCode(), LCOutlineNumberingLevelNode::generateCode(), and incError().
void LocaleNode::incError | ( | std::u16string_view | rStr | ) | const |
Definition at line 206 of file LocaleNode.cxx.
References incError(), and OSTR.
void LocaleNode::incErrorInt | ( | const char * | pStr, |
int | nVal | ||
) | const |
Definition at line 211 of file LocaleNode.cxx.
References nError.
Referenced by LCFormatNode::generateCode(), and LCCalendarNode::generateCode().
void LocaleNode::incErrorStr | ( | const char * | pStr, |
std::u16string_view | rVal | ||
) | const |
Definition at line 217 of file LocaleNode.cxx.
Referenced by LCInfoNode::generateCode(), LCFormatNode::generateCode(), and LCCalendarNode::generateCode().
void LocaleNode::incErrorStrStr | ( | const char * | pStr, |
std::u16string_view | rVal1, | ||
std::u16string_view | rVal2 | ||
) | const |
Definition at line 223 of file LocaleNode.cxx.
Referenced by LCCalendarNode::expectedCalendarElement(), LCInfoNode::generateCode(), LCFormatNode::generateCode(), and LCCurrencyNode::generateCode().
|
inline |
Definition at line 91 of file LocaleNode.hxx.
References aValue.
OUString LocaleNode::writeOUStringLiteralParameterCheckLen | ( | const OFileWriter & | of, |
const char * | pNodeName, | ||
const char * | pParameterName, | ||
sal_Int32 | nMinLen, | ||
sal_Int32 | nMaxLen | ||
) | const |
Definition at line 182 of file LocaleNode.cxx.
References findNode(), nError, OFileWriter::writeOUStringLiteralParameter(), and writeOUStringLiteralParameterCheckLen().
OUString LocaleNode::writeOUStringLiteralParameterCheckLen | ( | const OFileWriter & | of, |
const char * | pParameterName, | ||
const LocaleNode * | pNode, | ||
sal_Int32 | nMinLen, | ||
sal_Int32 | nMaxLen | ||
) | const |
Definition at line 144 of file LocaleNode.cxx.
References getName(), getValue(), nError, OSTR, and OFileWriter::writeOUStringLiteralParameter().
Referenced by LCCTYPENode::generateCode(), and writeOUStringLiteralParameterCheckLen().
|
private |
Definition at line 82 of file LocaleNode.hxx.
Referenced by getAttr().
|
private |
Definition at line 80 of file LocaleNode.hxx.
Referenced by findNode(), and getName().
|
private |
Definition at line 81 of file LocaleNode.hxx.
Referenced by getValue(), and setValue().
|
private |
Definition at line 84 of file LocaleNode.hxx.
Referenced by addChild(), findNode(), generateCode(), getChildAt(), getError(), and getNumberOfChildren().
|
mutableprotected |
Definition at line 87 of file LocaleNode.hxx.
Referenced by generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCSearchNode::generateCode(), LCMiscNode::generateCode(), getError(), incError(), incErrorInt(), incErrorStr(), incErrorStrStr(), and writeOUStringLiteralParameterCheckLen().
|
private |
Definition at line 83 of file LocaleNode.hxx.
Referenced by addChild(), and getRoot().