SNAP Library 4.0, Developer Reference
2017-07-27 13:18:06
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <unicode.h>
Public Member Functions | |
TUniCaseFolding () | |
TUniCaseFolding (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
void | Clr () |
void | LoadTxt (const TStr &fileName) |
template<typename TSrcVec , typename TDestCh > | |
void | Fold (const TSrcVec &src, size_t srcIdx, const size_t srcCount, TVec< TDestCh > &dest, const bool clrDest, const bool full, const bool turkic) const |
template<typename TSrcVec > | |
void | FoldInPlace (TSrcVec &src, size_t srcIdx, const size_t srcCount, const bool turkic) const |
void | Test () |
Protected Types | |
typedef TUniVecIdx | TVecIdx |
Protected Member Functions | |
void | Test (const TIntV &src, const TIntV &expectedDest, const bool full, const bool turkic, FILE *f) |
Static Protected Member Functions | |
template<typename TSrcDat , typename TDestDat > | |
static void | AppendVector (const TVec< TSrcDat > &src, TVec< TDestDat > &dest) |
Protected Attributes | |
TIntH | cfCommon |
TIntH | cfSimple |
TIntH | cfTurkic |
TIntIntVH | cfFull |
Friends | |
class | TUniChDb |
|
protected |
|
inlineexplicit |
Definition at line 285 of file unicode.h.
References TSIn::LoadCs().
|
inlinestaticprotected |
Definition at line 278 of file unicode.h.
References TVec< TVal, TSizeTy >::Add(), and TVec< TVal, TSizeTy >::Len().
Referenced by Fold(), and TUniChDb::GetCaseConverted().
|
inline |
Definition at line 288 of file unicode.h.
References cfCommon, cfFull, cfSimple, cfTurkic, and THash< TKey, TDat, THashFunc >::Clr().
Referenced by TUniChDb::Clr(), and LoadTxt().
|
inline |
Definition at line 293 of file unicode.h.
References TVec< TVal, TSizeTy >::Add(), AppendVector(), cfCommon, cfFull, cfSimple, cfTurkic, and THash< TKey, TDat, THashFunc >::GetKeyId().
Referenced by TUniChDb::GetCaseFolded(), and Test().
|
inline |
Definition at line 307 of file unicode.h.
References cfCommon, cfSimple, cfTurkic, and THash< TKey, TDat, THashFunc >::GetKeyId().
Referenced by TUniChDb::ToCaseFolded().
|
inline |
Definition at line 286 of file unicode.h.
References cfCommon, cfFull, cfSimple, cfTurkic, THash< TKey, TDat, THashFunc >::Load(), and TSIn::LoadCs().
Referenced by TUniChDb::Load().
void TUniCaseFolding::LoadTxt | ( | const TStr & | fileName | ) |
Definition at line 505 of file unicode.cpp.
References THash< TKey, TDat, THashFunc >::AddDat(), cfCommon, cfFull, cfSimple, cfTurkic, Clr(), TStr::CStr(), FailR, TUniChDb::TUcdFileReader::GetNextLine(), IAssert, THash< TKey, TDat, THashFunc >::IsKey(), THash< TKey, TDat, THashFunc >::Len(), TUniChDb::TUcdFileReader::Open(), TUniChDb::TUcdFileReader::ParseCodePoint(), and TUniChDb::TUcdFileReader::ParseCodePointList().
Referenced by TUniChDb::LoadTxt().
|
inline |
Definition at line 287 of file unicode.h.
References cfCommon, cfFull, cfSimple, cfTurkic, THash< TKey, TDat, THashFunc >::Save(), and TSOut::SaveCs().
Referenced by TUniChDb::Save().
|
protected |
Definition at line 531 of file unicode.cpp.
References Fold(), IAssert, and TVec< TVal, TSizeTy >::Len().
Referenced by TUniChDb::Test().
void TUniCaseFolding::Test | ( | ) |
Definition at line 549 of file unicode.cpp.
References anonymous_namespace{unicode.cpp}::VB.
|
protected |
|
protected |
|
protected |
|
protected |