STRING_MANAGER Namespace Reference

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)

Typedef Documentation

Definition at line 533 of file diff_tool.h.

Definition at line 532 of file diff_tool.h.

Definition at line 534 of file diff_tool.h.


Function Documentation

uint32 STRING_MANAGER::countLine ( const ucstring text,
const ucstring::const_iterator  upTo 
)

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 
)
bool STRING_MANAGER::loadStringFile ( const std::string  filename,
std::vector< TStringInfo > &  stringInfos,
bool  forceRehash,
ucchar  openMark = '[',
ucchar  closeMark = ']',
bool  specialCase = false 
)
void STRING_MANAGER::makeHashCode ( TWorksheet &  sheet,
bool  forceRehash 
)
uint64 STRING_MANAGER::makePhraseHash ( const TPhrase &  phrase  ) 
const ucstring STRING_MANAGER::nl ( "\r\n"   ) 
bool STRING_MANAGER::parseHashFromComment ( const ucstring comments,
uint64 hashValue 
)

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 
)
ucstring STRING_MANAGER::prepareStringFile ( const std::vector< TStringInfo > &  strings,
bool  removeDiffComments,
bool  noDiffInfo = false 
)
bool STRING_MANAGER::readExcelSheet ( const ucstring text,
TWorksheet &  worksheet,
bool  checkUnique = true 
)
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 
)
ucstring STRING_MANAGER::tabLines ( uint  nbTab,
const ucstring str 
)

Definition at line 511 of file diff_tool.cpp.

Referenced by preparePhraseFile().


Generated on Thu Jan 7 08:30:23 2010 for NeL by  doxygen 1.6.1