LibreOffice Module l10ntools (master) 1
|
Purpose: holds information of data to merge, read from PO file. More...
#include <export.hxx>
Public Member Functions | |
MergeDataFile (const OString &rFileName, std::string_view rFile, bool bCaseSensitive, bool bWithQtz=true) | |
~MergeDataFile () | |
std::vector< OString > | GetLanguages () const |
MergeEntrys * | GetMergeEntrys (ResData *pResData) |
MergeEntrys * | GetMergeEntrysCaseSensitive (ResData *pResData) |
Static Public Member Functions | |
static OString | CreateKey (std::string_view rTYP, std::string_view rGID, std::string_view rLID, std::string_view rFilename, bool bCaseSensitive) |
Private Member Functions | |
MergeEntrys * | GetMergeData (ResData *pResData, bool bCaseSensitive=false) |
void | InsertEntry (std::string_view rTYP, std::string_view rGID, std::string_view rLID, const OString &nLang, const OString &rTEXT, const OString &rQHTEXT, const OString &rTITLE, std::string_view sFilename, bool bFirstLang, bool bCaseSensitive) |
Private Attributes | |
std::unordered_map< OString, std::unique_ptr< MergeEntrys > > | aMap |
std::set< OString > | aLanguageSet |
Purpose: holds information of data to merge, read from PO file.
Definition at line 113 of file export.hxx.
|
explicit |
Definition at line 119 of file merge.cxx.
References aLanguageSet, PoIfstream::close(), env, PoIfstream::eof(), PoEntry::getGroupId(), PoEntry::getLocalId(), PoEntry::getMsgId(), PoEntry::getMsgStr(), PoEntry::getResourceType(), PoEntry::getSourceFile(), PoEntry::getType(), InsertEntry(), PoEntry::isFuzzy(), PoEntry::IsInSameComp(), PoIfstream::isOpen(), nCount, PoIfstream::open(), SAL_WARN, PoEntry::TQUICKHELPTEXT, PoEntry::TTEXT, and PoEntry::TTITLE.
|
static |
Definition at line 333 of file merge.cxx.
Referenced by GetMergeData(), and InsertEntry().
std::vector< OString > MergeDataFile::GetLanguages | ( | ) | const |
Definition at line 242 of file merge.cxx.
References aLanguageSet.
Referenced by TreeParser::Merge(), and LngParser::Merge().
|
private |
Definition at line 247 of file merge.cxx.
References aMap, CreateKey(), ResData::sFilename, ResData::sGId, ResData::sId, and ResData::sResTyp.
Referenced by GetMergeEntrys(), and GetMergeEntrysCaseSensitive().
MergeEntrys * MergeDataFile::GetMergeEntrys | ( | ResData * | pResData | ) |
Definition at line 274 of file merge.cxx.
References GetMergeData().
Referenced by LngParser::Merge(), and HelpParser::ProcessHelp().
MergeEntrys * MergeDataFile::GetMergeEntrysCaseSensitive | ( | ResData * | pResData | ) |
Definition at line 280 of file merge.cxx.
References GetMergeData().
|
private |
Definition at line 286 of file merge.cxx.
References aMap, CreateKey(), PoEntry::genKeyId(), and MergeEntrys::InsertEntry().
Referenced by MergeDataFile().
|
private |
Definition at line 117 of file export.hxx.
Referenced by GetLanguages(), and MergeDataFile().
|
private |
Definition at line 116 of file export.hxx.
Referenced by GetMergeData(), and InsertEntry().