LibreOffice Module i18npool (master) 1
Public Member Functions | Private Attributes | List of all members
OFileWriter Class Reference

#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
 
FILEm_f
 

Detailed Description

Definition at line 34 of file LocaleNode.hxx.

Constructor & Destructor Documentation

◆ OFileWriter()

OFileWriter::OFileWriter ( const char *  pcFile,
const char *  locale 
)

Definition at line 26 of file filewriter.cxx.

References m_f.

◆ ~OFileWriter()

OFileWriter::~OFileWriter ( )

Definition at line 32 of file filewriter.cxx.

References m_f.

Member Function Documentation

◆ closeOutput()

void OFileWriter::closeOutput ( ) const

Definition at line 189 of file filewriter.cxx.

References m_f.

◆ getLocale()

const char * OFileWriter::getLocale ( ) const
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().

◆ writeAsciiString()

void OFileWriter::writeAsciiString ( const char *  str) const

◆ writeHexInt()

void OFileWriter::writeHexInt ( sal_Int16  nb) const

Definition at line 42 of file filewriter.cxx.

References m_f.

Referenced by LCCalendarNode::generateCode().

◆ writeInt()

void OFileWriter::writeInt ( sal_Int16  nb) const

◆ writeOUStringFunction() [1/2]

void OFileWriter::writeOUStringFunction ( const char *  func,
const char *  count,
const char *  array 
) const

◆ writeOUStringFunction() [2/2]

void OFileWriter::writeOUStringFunction ( const char *  func,
const char *  count,
const char *  array,
const char *  from,
const char *  to 
) const

Definition at line 91 of file filewriter.cxx.

References count, from, m_f, theLocale, and to.

◆ writeOUStringFunction2()

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().

◆ writeOUStringFunction3()

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().

◆ writeOUStringLiteralCharacters()

void OFileWriter::writeOUStringLiteralCharacters ( std::u16string_view  str) const

Definition at line 58 of file filewriter.cxx.

References i, and m_f.

Referenced by writeOUStringLiteralParameter().

◆ writeOUStringLiteralDefaultParameter()

bool OFileWriter::writeOUStringLiteralDefaultParameter ( const char *  pAsciiStr,
std::u16string_view  str,
sal_Int16  count 
) const

◆ writeOUStringLiteralIntParameter()

void OFileWriter::writeOUStringLiteralIntParameter ( const char *  pAsciiStr,
const sal_Int16  count,
sal_Int16  val 
) const

◆ writeOUStringLiteralParameter() [1/5]

void OFileWriter::writeOUStringLiteralParameter ( const char *  pAsciiStr,
std::u16string_view  aChars 
) const

◆ writeOUStringLiteralParameter() [2/5]

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().

◆ writeOUStringLiteralParameter() [3/5]

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().

◆ writeOUStringLiteralParameter() [4/5]

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().

◆ writeOUStringLiteralParameter() [5/5]

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().

◆ writeOUStringRefFunction() [1/2]

void OFileWriter::writeOUStringRefFunction ( const char *  func,
std::u16string_view  useLocale 
) const

◆ writeOUStringRefFunction() [2/2]

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.

◆ writeOUStringRefFunction2()

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().

◆ writeOUStringRefFunction3()

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().

◆ writeParameter()

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().

◆ writeStringCharacters()

void OFileWriter::writeStringCharacters ( std::u16string_view  str) const

Definition at line 52 of file filewriter.cxx.

References i, and m_f.

Referenced by writeParameter().

Member Data Documentation

◆ m_f

FILE* OFileWriter::m_f
private

◆ theLocale

std::string OFileWriter::theLocale
private

The documentation for this class was generated from the following files: