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

Class for localization of *.properties files. More...

#include <propmerge.hxx>

Public Member Functions

 PropParser (OString sInputFile, OString sLang, const bool bMergeMode)
 
 ~PropParser ()
 
bool isInitialized () const
 
void Extract (const OString &rPOFile)
 
void Merge (const OString &rMergeSrc, const OString &rDestinationFile)
 

Private Attributes

std::vector< OString > m_vLines
 
OString m_sSource
 
OString m_sLang
 
bool m_bIsInitialized
 

Detailed Description

Class for localization of *.properties files.

Parse *.properties files, extract translatable strings and merge translated strings.

Definition at line 23 of file propmerge.hxx.

Constructor & Destructor Documentation

◆ PropParser()

PropParser::PropParser ( OString  sInputFile,
OString  sLang,
const bool  bMergeMode 
)

Definition at line 91 of file propmerge.cxx.

References bMergeMode, m_bIsInitialized, m_sSource, and m_vLines.

◆ ~PropParser()

PropParser::~PropParser ( )

Definition at line 124 of file propmerge.cxx.

Member Function Documentation

◆ Extract()

void PropParser::Extract ( const OString &  rPOFile)

◆ isInitialized()

bool PropParser::isInitialized ( ) const
inline

Definition at line 37 of file propmerge.hxx.

References m_bIsInitialized.

Referenced by SAL_IMPLEMENT_MAIN_WITH_ARGS().

◆ Merge()

void PropParser::Merge ( const OString &  rMergeSrc,
const OString &  rDestinationFile 
)

Member Data Documentation

◆ m_bIsInitialized

bool PropParser::m_bIsInitialized
private

Definition at line 29 of file propmerge.hxx.

Referenced by Extract(), isInitialized(), Merge(), and PropParser().

◆ m_sLang

OString PropParser::m_sLang
private

Definition at line 28 of file propmerge.hxx.

Referenced by Merge().

◆ m_sSource

OString PropParser::m_sSource
private

Definition at line 27 of file propmerge.hxx.

Referenced by Extract(), Merge(), and PropParser().

◆ m_vLines

std::vector<OString> PropParser::m_vLines
private

Definition at line 26 of file propmerge.hxx.

Referenced by Extract(), Merge(), and PropParser().


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