LibreOffice Module i18npool (master) 1
|
#include <LocaleNode.hxx>
Public Member Functions | |
OFileWriter (const char *pcFile, const char *locale) | |
~OFileWriter () | |
void | writeStringCharacters (std::u16string_view str) const |
void | writeOUStringLiteralCharacters (std::u16string_view str) const |
void | writeAsciiString (const char *str) const |
void | writeInt (sal_Int16 nb) const |
void | writeHexInt (sal_Int16 nb) const |
void | writeOUStringRefFunction (const char *func, std::u16string_view useLocale) const |
void | writeOUStringRefFunction (const char *func, std::u16string_view useLocale, const char *to) const |
void | writeOUStringFunction (const char *func, const char *count, const char *array) const |
void | writeOUStringFunction (const char *func, const char *count, const char *array, const char *from, const char *to) const |
void | writeOUStringFunction2 (const char *func, const char *style, const char *attr, const char *array) const |
void | writeOUStringRefFunction2 (const char *func, std::u16string_view useLocale) const |
void | writeOUStringFunction3 (const char *func, const char *style, const char *levels, const char *attr, const char *array) const |
void | writeOUStringRefFunction3 (const char *func, std::u16string_view useLocale) const |
void | writeOUStringLiteralIntParameter (const char *pAsciiStr, const sal_Int16 count, sal_Int16 val) const |
bool | writeOUStringLiteralDefaultParameter (const char *pAsciiStr, std::u16string_view str, sal_Int16 count) const |
void | writeOUStringLiteralParameter (const char *pAsciiStr, std::u16string_view aChars) const |
void | writeParameter (const char *pAsciiStr, std::u16string_view aChars, sal_Int16 count) const |
void | writeOUStringLiteralParameter (const char *pAsciiStr, std::u16string_view aChars, sal_Int16 count) const |
void | writeOUStringLiteralParameter (const char *pAsciiStr, std::u16string_view aChars, sal_Int16 count0, sal_Int16 count1) const |
void | writeOUStringLiteralParameter (const char *pTagStr, const char *pAsciiStr, std::u16string_view aChars, const sal_Int16 count) const |
void | writeOUStringLiteralParameter (const char *pTagStr, const char *pAsciiStr, std::u16string_view aChars, sal_Int16 count0, sal_Int16 count1) const |
void | closeOutput () const |
const char * | getLocale () const |
Return the locale string, something like en_US or de_DE. More... | |
Private Attributes | |
std::string | theLocale |
FILE * | m_f |
Definition at line 34 of file LocaleNode.hxx.
OFileWriter::OFileWriter | ( | const char * | pcFile, |
const char * | locale | ||
) |
Definition at line 26 of file filewriter.cxx.
References m_f.
OFileWriter::~OFileWriter | ( | ) |
Definition at line 32 of file filewriter.cxx.
References m_f.
void OFileWriter::closeOutput | ( | ) | const |
Definition at line 189 of file filewriter.cxx.
References m_f.
|
inline |
Return the locale string, something like en_US or de_DE.
Definition at line 62 of file LocaleNode.hxx.
References theLocale.
Referenced by LCFormatNode::generateCode(), and LCMiscNode::generateCode().
void OFileWriter::writeAsciiString | ( | const char * | str | ) | const |
Definition at line 47 of file filewriter.cxx.
References m_f.
Referenced by LCInfoNode::generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), LCMiscNode::generateCode(), LCNumberingLevelNode::generateCode(), LCOutlineNumberingLevelNode::generateCode(), lcl_writeAbbrFullNarrArrays(), lcl_writeTabTagString(), and lcl_writeTabTagStringNums().
void OFileWriter::writeHexInt | ( | sal_Int16 | nb | ) | const |
Definition at line 42 of file filewriter.cxx.
References m_f.
Referenced by LCCalendarNode::generateCode().
void OFileWriter::writeInt | ( | sal_Int16 | nb | ) | const |
Definition at line 37 of file filewriter.cxx.
References m_f.
Referenced by LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), LCMiscNode::generateCode(), LCNumberingLevelNode::generateCode(), LCOutlineNumberingLevelNode::generateCode(), lcl_writeAbbrFullNarrArrays(), and lcl_writeTabTagStringNums().
void OFileWriter::writeOUStringFunction | ( | const char * | func, |
const char * | count, | ||
const char * | array | ||
) | const |
Definition at line 84 of file filewriter.cxx.
References count, m_f, and theLocale.
Referenced by LCInfoNode::generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), and LCMiscNode::generateCode().
void OFileWriter::writeOUStringFunction | ( | const char * | func, |
const char * | count, | ||
const char * | array, | ||
const char * | from, | ||
const char * | to | ||
) | const |
void OFileWriter::writeOUStringFunction2 | ( | const char * | func, |
const char * | style, | ||
const char * | attr, | ||
const char * | array | ||
) | const |
Definition at line 100 of file filewriter.cxx.
References m_f, and theLocale.
Referenced by LCNumberingLevelNode::generateCode().
void OFileWriter::writeOUStringFunction3 | ( | const char * | func, |
const char * | style, | ||
const char * | levels, | ||
const char * | attr, | ||
const char * | array | ||
) | const |
Definition at line 117 of file filewriter.cxx.
References m_f, and theLocale.
Referenced by LCOutlineNumberingLevelNode::generateCode().
void OFileWriter::writeOUStringLiteralCharacters | ( | std::u16string_view | str | ) | const |
Definition at line 58 of file filewriter.cxx.
Referenced by writeOUStringLiteralParameter().
bool OFileWriter::writeOUStringLiteralDefaultParameter | ( | const char * | pAsciiStr, |
std::u16string_view | str, | ||
sal_Int16 | count | ||
) | const |
Definition at line 140 of file filewriter.cxx.
Referenced by LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCCalendarNode::generateCode(), and LCCurrencyNode::generateCode().
void OFileWriter::writeOUStringLiteralIntParameter | ( | const char * | pAsciiStr, |
const sal_Int16 | count, | ||
sal_Int16 | val | ||
) | const |
Definition at line 135 of file filewriter.cxx.
Referenced by LCFormatNode::generateCode(), LCCalendarNode::generateCode(), and LCCurrencyNode::generateCode().
void OFileWriter::writeOUStringLiteralParameter | ( | const char * | pAsciiStr, |
std::u16string_view | aChars | ||
) | const |
Definition at line 147 of file filewriter.cxx.
References m_f, and writeOUStringLiteralCharacters().
Referenced by LCInfoNode::generateCode(), LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), LCMiscNode::generateCode(), LCNumberingLevelNode::generateCode(), LCOutlineNumberingLevelNode::generateCode(), lcl_writeAbbrFullNarrNames(), and LocaleNode::writeOUStringLiteralParameterCheckLen().
void OFileWriter::writeOUStringLiteralParameter | ( | const char * | pAsciiStr, |
std::u16string_view | aChars, | ||
sal_Int16 | count | ||
) | const |
Definition at line 161 of file filewriter.cxx.
References count, m_f, and writeOUStringLiteralCharacters().
void OFileWriter::writeOUStringLiteralParameter | ( | const char * | pAsciiStr, |
std::u16string_view | aChars, | ||
sal_Int16 | count0, | ||
sal_Int16 | count1 | ||
) | const |
Definition at line 168 of file filewriter.cxx.
References m_f, and writeOUStringLiteralCharacters().
void OFileWriter::writeOUStringLiteralParameter | ( | const char * | pTagStr, |
const char * | pAsciiStr, | ||
std::u16string_view | aChars, | ||
const sal_Int16 | count | ||
) | const |
Definition at line 175 of file filewriter.cxx.
References count, m_f, and writeOUStringLiteralCharacters().
void OFileWriter::writeOUStringLiteralParameter | ( | const char * | pTagStr, |
const char * | pAsciiStr, | ||
std::u16string_view | aChars, | ||
sal_Int16 | count0, | ||
sal_Int16 | count1 | ||
) | const |
Definition at line 182 of file filewriter.cxx.
References m_f, and writeOUStringLiteralCharacters().
void OFileWriter::writeOUStringRefFunction | ( | const char * | func, |
std::u16string_view | useLocale | ||
) | const |
Definition at line 64 of file filewriter.cxx.
References m_f, OUStringToOString(), and theLocale.
Referenced by LCCTYPENode::generateCode(), LCFormatNode::generateCode(), LCCollationNode::generateCode(), LCIndexNode::generateCode(), LCSearchNode::generateCode(), LCCalendarNode::generateCode(), LCCurrencyNode::generateCode(), LCTransliterationNode::generateCode(), and LCMiscNode::generateCode().
void OFileWriter::writeOUStringRefFunction | ( | const char * | func, |
std::u16string_view | useLocale, | ||
const char * | to | ||
) | const |
Definition at line 73 of file filewriter.cxx.
References m_f, OUStringToOString(), theLocale, and to.
void OFileWriter::writeOUStringRefFunction2 | ( | const char * | func, |
std::u16string_view | useLocale | ||
) | const |
Definition at line 108 of file filewriter.cxx.
References m_f, OUStringToOString(), and theLocale.
Referenced by LCNumberingLevelNode::generateCode().
void OFileWriter::writeOUStringRefFunction3 | ( | const char * | func, |
std::u16string_view | useLocale | ||
) | const |
Definition at line 126 of file filewriter.cxx.
References m_f, OUStringToOString(), and theLocale.
Referenced by LCOutlineNumberingLevelNode::generateCode().
void OFileWriter::writeParameter | ( | const char * | pAsciiStr, |
std::u16string_view | aChars, | ||
sal_Int16 | count | ||
) | const |
Definition at line 154 of file filewriter.cxx.
References count, m_f, and writeStringCharacters().
Referenced by LCFormatNode::generateCode().
void OFileWriter::writeStringCharacters | ( | std::u16string_view | str | ) | const |
Definition at line 52 of file filewriter.cxx.
Referenced by writeParameter().
|
private |
Definition at line 65 of file LocaleNode.hxx.
Referenced by closeOutput(), OFileWriter(), writeAsciiString(), writeHexInt(), writeInt(), writeOUStringFunction(), writeOUStringFunction2(), writeOUStringFunction3(), writeOUStringLiteralCharacters(), writeOUStringLiteralDefaultParameter(), writeOUStringLiteralIntParameter(), writeOUStringLiteralParameter(), writeOUStringRefFunction(), writeOUStringRefFunction2(), writeOUStringRefFunction3(), writeParameter(), writeStringCharacters(), and ~OFileWriter().
|
private |
Definition at line 64 of file LocaleNode.hxx.
Referenced by getLocale(), writeOUStringFunction(), writeOUStringFunction2(), writeOUStringFunction3(), writeOUStringRefFunction(), writeOUStringRefFunction2(), and writeOUStringRefFunction3().