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 <unicodestring.h>
Public Member Functions | |
TUStr () | |
TUStr (const TUStr &UStr) | |
TUStr (const TIntV &_UniChV) | |
TUStr (const TStr &Str) | |
~TUStr () | |
TUStr (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
void | LoadXml (const PXmlTok &XmlTok, const TStr &Nm) |
void | SaveXml (TSOut &SOut, const TStr &Nm) const |
TUStr & | operator= (const TUStr &UStr) |
bool | operator== (const TUStr &UStr) const |
TUStr & | operator+= (const TUStr &UStr) |
int | operator[] (const int &UniChN) const |
void | Clr () |
int | Len () const |
bool | Empty () const |
void | ToLowerCase () |
void | ToUpperCase () |
void | ToStarterCase () |
void | GetWordBoundPV (TBoolV &WordBoundPV) |
void | GetWordUStrV (TUStrV &UStrV) |
TStr | GetStr () const |
TStr | GetStarterStr () const |
TStr | GetStarterLowerCaseStr () const |
Static Public Member Functions | |
static int | GetScriptId (const TStr &ScriptNm) |
static TStr | GetScriptNm (const int &ScriptId) |
static int | GetChScriptId (const int &UniCh) |
static TStr | GetChScriptNm (const int &UniCh) |
static TStr | GetChNm (const int &UniCh) |
static TStr | GetChTypeStr (const int &UniCh) |
static bool | IsCase (const int &UniCh) |
static bool | IsUpperCase (const int &UniCh) |
static bool | IsLowerCase (const int &UniCh) |
static bool | IsAlphabetic (const int &UniCh) |
static bool | IsMath (const int &UniCh) |
static TStr | EncodeUtf8 (const int &UniCh) |
Static Private Member Functions | |
static void | AssertUnicodeDefOk () |
Private Attributes | |
TIntV | UniChV |
Definition at line 32 of file unicodestring.h.
|
inline |
Definition at line 38 of file unicodestring.h.
References AssertUnicodeDefOk().
|
inline |
Definition at line 39 of file unicodestring.h.
References AssertUnicodeDefOk().
|
inline |
Definition at line 40 of file unicodestring.h.
References AssertUnicodeDefOk().
TUStr::TUStr | ( | const TStr & | Str | ) |
Definition at line 12 of file unicodestring.cpp.
References AssertUnicodeDefOk(), TUnicode::DecodeUtf8(), TUnicode::Decompose(), TUnicodeDef::GetDef(), and UniChV.
|
inline |
Definition at line 42 of file unicodestring.h.
|
inline |
Definition at line 43 of file unicodestring.h.
References AssertUnicodeDefOk().
|
inlinestaticprivate |
Definition at line 35 of file unicodestring.h.
References EAssertR, and TUnicodeDef::IsDef().
Referenced by EncodeUtf8(), and TUStr().
|
inline |
Definition at line 56 of file unicodestring.h.
References TVec< TVal, TSizeTy >::Clr(), and UniChV.
|
inline |
Definition at line 58 of file unicodestring.h.
References TVec< TVal, TSizeTy >::Empty(), and UniChV.
|
static |
Definition at line 157 of file unicodestring.cpp.
References AssertUnicodeDefOk(), TUnicode::EncodeUtf8Str(), TUnicodeDef::GetDef(), and TVec< TInt >::GetV().
|
static |
Definition at line 104 of file unicodestring.cpp.
References TUnicode::GetCharNameS(), and TUnicodeDef::GetDef().
|
static |
Definition at line 96 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), TUniChDb::GetScript(), and TUnicode::ucd.
Referenced by GetChScriptNm().
|
static |
Definition at line 100 of file unicodestring.cpp.
References GetChScriptId(), and GetScriptNm().
|
static |
Definition at line 109 of file unicodestring.cpp.
References IsAlphabetic(), IsCase(), IsLowerCase(), IsMath(), IsUpperCase(), TChA::LastCh(), and TChA::Len().
|
static |
Definition at line 88 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), TUniChDb::GetScriptByName(), and TUnicode::ucd.
|
static |
Definition at line 92 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), TUniChDb::GetScriptName(), and TUnicode::ucd.
Referenced by GetChScriptNm().
TStr TUStr::GetStarterLowerCaseStr | ( | ) | const |
Definition at line 79 of file unicodestring.cpp.
References TUnicode::Decompose(), TUnicode::EncodeUtf8Str(), TUnicode::ExtractStarters(), TUnicodeDef::GetDef(), TUnicode::GetSimpleLowerCase(), and UniChV.
TStr TUStr::GetStarterStr | ( | ) | const |
Definition at line 71 of file unicodestring.cpp.
References TUnicode::Decompose(), TUnicode::EncodeUtf8Str(), TUnicode::ExtractStarters(), TUnicodeDef::GetDef(), and UniChV.
TStr TUStr::GetStr | ( | ) | const |
Definition at line 66 of file unicodestring.cpp.
References TUnicode::EncodeUtf8Str(), TUnicodeDef::GetDef(), and UniChV.
void TUStr::GetWordBoundPV | ( | TBoolV & | WordBoundPV | ) |
Definition at line 33 of file unicodestring.cpp.
References TUnicode::FindWordBoundaries(), TUnicodeDef::GetDef(), and UniChV.
Referenced by GetWordUStrV().
void TUStr::GetWordUStrV | ( | TUStrV & | UStrV | ) |
Definition at line 37 of file unicodestring.cpp.
References TVec< TVal, TSizeTy >::Add(), TVec< TVal, TSizeTy >::Clr(), TVec< TVal, TSizeTy >::Empty(), GetWordBoundPV(), IAssert, IsAlphabetic(), TVec< TVal, TSizeTy >::Last(), Len(), TVec< TVal, TSizeTy >::Len(), and UniChV.
|
static |
Definition at line 143 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), and TUniChInfo::IsAlphabetic().
Referenced by GetChTypeStr(), and GetWordUStrV().
|
static |
Definition at line 122 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), and TUniChInfo::IsCased().
Referenced by GetChTypeStr().
|
static |
Definition at line 136 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), and TUniChInfo::IsLowercase().
Referenced by GetChTypeStr().
|
static |
Definition at line 150 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), and TUniChInfo::IsMath().
Referenced by GetChTypeStr().
|
static |
Definition at line 129 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), and TUniChInfo::IsUppercase().
Referenced by GetChTypeStr().
|
inline |
Definition at line 57 of file unicodestring.h.
References TVec< TVal, TSizeTy >::Len(), and UniChV.
Referenced by GetWordUStrV().
Definition at line 52 of file unicodestring.h.
References TVec< TVal, TSizeTy >::AddV(), and UniChV.
|
inline |
|
inline |
|
inline |
Definition at line 44 of file unicodestring.h.
References TVec< TVal, TSizeTy >::Save(), and UniChV.
void TUStr::ToLowerCase | ( | ) |
Definition at line 19 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), TUnicode::ToSimpleLowerCase(), and UniChV.
void TUStr::ToStarterCase | ( | ) |
Definition at line 27 of file unicodestring.cpp.
References TUnicode::Decompose(), TUnicode::ExtractStarters(), TUnicodeDef::GetDef(), and UniChV.
void TUStr::ToUpperCase | ( | ) |
Definition at line 23 of file unicodestring.cpp.
References TUnicodeDef::GetDef(), TUnicode::ToSimpleUpperCase(), and UniChV.
|
private |
Definition at line 34 of file unicodestring.h.
Referenced by Clr(), Empty(), GetStarterLowerCaseStr(), GetStarterStr(), GetStr(), GetWordBoundPV(), GetWordUStrV(), Len(), operator+=(), operator=(), operator==(), operator[](), Save(), ToLowerCase(), ToStarterCase(), ToUpperCase(), and TUStr().