Classes | |
| struct | TStringInfo |
| struct | TStringDiffContext |
| struct | TClause |
| struct | TPhrase |
| struct | TPhraseDiffContext |
| struct | TWorksheet |
| struct | TGetWorksheetIdentifier |
| struct | TGetWorksheetHashValue |
| struct | TTestWorksheetItem |
| struct | TWordsDiffContext |
| struct | TGetIdentifier |
| struct | TGetHashValue |
| struct | TTestItem |
| class | CMakeDiff |
| ItemType must have a property named Identifier that uniquely identify each item. More... | |
Typedefs | |
| typedef CMakeDiff< TStringInfo, TStringDiffContext > | TStringDiff |
| typedef CMakeDiff< TPhrase, TPhraseDiffContext > | TPhraseDiff |
| typedef CMakeDiff < TWorksheet::TRow, TWordsDiffContext, TGetWorksheetIdentifier, TGetWorksheetHashValue, TTestWorksheetItem > | TWorkSheetDiff |
Functions | |
| const ucstring | nl ("\r\n") |
| uint64 | makePhraseHash (const TPhrase &phrase) |
| bool | parseHashFromComment (const ucstring &comments, uint64 &hashValue) |
| bool | loadStringFile (const std::string filename, std::vector< TStringInfo > &stringInfos, bool forceRehash, ucchar openMark= '[', ucchar closeMark= ']', bool specialCase=false) |
| ucstring | prepareStringFile (const std::vector< TStringInfo > &strings, bool removeDiffComments, bool noDiffInfo=false) |
| bool | readPhraseFile (const std::string &filename, std::vector< TPhrase > &phrases, bool forceRehash) |
| bool | readPhraseFileFromString (ucstring const &doc, const std::string &filename, std::vector< TPhrase > &phrases, bool forceRehash) |
| ucstring | tabLines (uint nbTab, const ucstring &str) |
| ucstring | preparePhraseFile (const std::vector< TPhrase > &phrases, bool removeDiffComments) |
| bool | loadExcelSheet (const std::string filename, TWorksheet &worksheet, bool checkUnique=true) |
| bool | readExcelSheet (const ucstring &text, TWorksheet &worksheet, bool checkUnique=true) |
| void | makeHashCode (TWorksheet &sheet, bool forceRehash) |
| ucstring | prepareExcelSheet (const TWorksheet &worksheet) |
| uint32 | countLine (const ucstring &text, const ucstring::const_iterator upTo) |
Definition at line 533 of file diff_tool.h.
Definition at line 532 of file diff_tool.h.
| typedef CMakeDiff<TWorksheet::TRow, TWordsDiffContext, TGetWorksheetIdentifier, TGetWorksheetHashValue, TTestWorksheetItem> STRING_MANAGER::TWorkSheetDiff |
Definition at line 534 of file diff_tool.h.
Definition at line 67 of file diff_tool.cpp.
Referenced by loadStringFile(), and readPhraseFileFromString().
| bool STRING_MANAGER::loadExcelSheet | ( | const std::string | filename, | |
| TWorksheet & | worksheet, | |||
| bool | checkUnique = true | |||
| ) |
Definition at line 620 of file diff_tool.cpp.
References NLMISC::CIFile::close(), nldebug, NLMISC::CIFile::open(), and readExcelSheet().
Referenced by NLMISC::CWordsDictionary::init().
| bool STRING_MANAGER::loadStringFile | ( | const std::string | filename, | |
| std::vector< TStringInfo > & | stringInfos, | |||
| bool | forceRehash, | |||
| ucchar | openMark = '[', |
|||
| ucchar | closeMark = ']', |
|||
| bool | specialCase = false | |||
| ) |
Definition at line 81 of file diff_tool.cpp.
References STRING_MANAGER::TStringInfo::Comments, countLine(), STRING_MANAGER::TStringInfo::HashValue, STRING_MANAGER::TStringInfo::Identifier, nlwarning, parseHashFromComment(), STRING_MANAGER::TStringInfo::Text, and STRING_MANAGER::TStringInfo::Text2.
| void STRING_MANAGER::makeHashCode | ( | TWorksheet & | sheet, | |
| bool | forceRehash | |||
| ) |
Definition at line 816 of file diff_tool.cpp.
References STRING_MANAGER::TWorksheet::ColCount, STRING_MANAGER::TWorksheet::Data, and STRING_MANAGER::TWorksheet::insertColumn().
| uint64 STRING_MANAGER::makePhraseHash | ( | const TPhrase & | phrase | ) |
Definition at line 35 of file diff_tool.cpp.
References STRING_MANAGER::TPhrase::Clauses, and STRING_MANAGER::TPhrase::Parameters.
Referenced by readPhraseFileFromString().
| const ucstring STRING_MANAGER::nl | ( | "\r\n" | ) |
Referenced by prepareExcelSheet(), preparePhraseFile(), prepareStringFile(), and readExcelSheet().
Definition at line 52 of file diff_tool.cpp.
References ucstring::toString().
Referenced by loadStringFile(), and readPhraseFileFromString().
| ucstring STRING_MANAGER::prepareExcelSheet | ( | const TWorksheet & | worksheet | ) |
Definition at line 871 of file diff_tool.cpp.
References STRING_MANAGER::TWorksheet::Data, and nl().
| ucstring STRING_MANAGER::preparePhraseFile | ( | const std::vector< TPhrase > & | phrases, | |
| bool | removeDiffComments | |||
| ) |
Definition at line 534 of file diff_tool.cpp.
References STRING_MANAGER::TPhrase::Clauses, comment(), STRING_MANAGER::TClause::Comments, STRING_MANAGER::TPhrase::Comments, STRING_MANAGER::TClause::Conditions, NLMISC::explode(), STRING_MANAGER::TPhrase::HashValue, STRING_MANAGER::TClause::Identifier, STRING_MANAGER::TPhrase::Identifier, nl(), STRING_MANAGER::TPhrase::Parameters, tabLines(), STRING_MANAGER::TClause::Text, and ucstring::toString().
| ucstring STRING_MANAGER::prepareStringFile | ( | const std::vector< TStringInfo > & | strings, | |
| bool | removeDiffComments, | |||
| bool | noDiffInfo = false | |||
| ) |
Definition at line 236 of file diff_tool.cpp.
References comment(), STRING_MANAGER::TStringInfo::Comments, NLMISC::explode(), STRING_MANAGER::TStringInfo::HashValue, STRING_MANAGER::TStringInfo::Identifier, nl(), STRING_MANAGER::TStringInfo::Text, NLMISC::toString(), and ucstring::toString().
| bool STRING_MANAGER::readExcelSheet | ( | const ucstring & | text, | |
| TWorksheet & | worksheet, | |||
| bool | checkUnique = true | |||
| ) |
append last cell
append last cell
Definition at line 640 of file diff_tool.cpp.
References STRING_MANAGER::TWorksheet::ColCount, STRING_MANAGER::TWorksheet::getData(), STRING_MANAGER::TWorksheet::insertColumn(), nl(), nlassertex, nldebug, nlwarning, STRING_MANAGER::TWorksheet::resize(), STRING_MANAGER::TWorksheet::setData(), STRING_MANAGER::TWorksheet::size(), and ucstring::toString().
Referenced by loadExcelSheet().
| bool STRING_MANAGER::readPhraseFile | ( | const std::string & | filename, | |
| std::vector< TPhrase > & | phrases, | |||
| bool | forceRehash | |||
| ) |
Definition at line 315 of file diff_tool.cpp.
References readPhraseFileFromString().
| bool STRING_MANAGER::readPhraseFileFromString | ( | ucstring const & | doc, | |
| const std::string & | filename, | |||
| std::vector< TPhrase > & | phrases, | |||
| bool | forceRehash | |||
| ) |
Definition at line 324 of file diff_tool.cpp.
References STRING_MANAGER::TPhrase::Clauses, STRING_MANAGER::TClause::Comments, STRING_MANAGER::TPhrase::Comments, STRING_MANAGER::TClause::Conditions, countLine(), STRING_MANAGER::TPhrase::HashValue, STRING_MANAGER::TClause::Identifier, STRING_MANAGER::TPhrase::Identifier, makePhraseHash(), nlwarning, STRING_MANAGER::TPhrase::Parameters, parseHashFromComment(), and STRING_MANAGER::TClause::Text.
Referenced by readPhraseFile().
Definition at line 511 of file diff_tool.cpp.
Referenced by preparePhraseFile().
1.6.1