#include <unicodestring.h>
Definition at line 32 of file unicodestring.h.
TUStr::TUStr |
( |
const TUStr & |
UStr | ) |
|
|
inline |
TUStr::TUStr |
( |
const TIntV & |
_UniChV | ) |
|
|
inline |
TUStr::TUStr |
( |
const TStr & |
Str | ) |
|
Definition at line 12 of file unicodestring.cpp.
static TUnicode * GetDef()
int DecodeUtf8(const TIntV &src, TIntV &dest) const
void Decompose(const TIntV &src, TIntV &dest, bool compatibility) const
static void AssertUnicodeDefOk()
TUStr::TUStr |
( |
TSIn & |
SIn | ) |
|
|
inline |
static void TUStr::AssertUnicodeDefOk |
( |
| ) |
|
|
inlinestaticprivate |
Definition at line 56 of file unicodestring.h.
void Clr(const bool &DoDel=true, const TSizeTy &NoDelLim=-1)
Clears the contents of the vector.
bool TUStr::Empty |
( |
| ) |
const |
|
inline |
Definition at line 58 of file unicodestring.h.
bool Empty() const
Tests whether the vector is empty.
TStr TUStr::EncodeUtf8 |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 157 of file unicodestring.cpp.
TStr EncodeUtf8Str(const TIntV &src) const
static TUnicode * GetDef()
static TVec< TInt, int > GetV(const TInt &Val1)
Returns a vector on element Val1.
static void AssertUnicodeDefOk()
TStr TUStr::GetChNm |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 104 of file unicodestring.cpp.
static TUnicode * GetDef()
TStr GetCharNameS(const int cp) const
int TUStr::GetChScriptId |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 96 of file unicodestring.cpp.
int GetScript(const TUniChInfo &ci) const
static TUnicode * GetDef()
TStr TUStr::GetChScriptNm |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 100 of file unicodestring.cpp.
static int GetChScriptId(const int &UniCh)
static TStr GetScriptNm(const int &ScriptId)
TStr TUStr::GetChTypeStr |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 109 of file unicodestring.cpp.
112 if (
IsCase(UniCh)){ChTypeChA+=
"Case,";}
116 if (
IsMath(UniCh)){ChTypeChA+=
"Math,";}
117 if (ChTypeChA.
LastCh()==
'['){ChTypeChA+=
']';}
118 else {ChTypeChA[ChTypeChA.
Len()-1]=
']';}
static bool IsAlphabetic(const int &UniCh)
static bool IsLowerCase(const int &UniCh)
static bool IsMath(const int &UniCh)
static bool IsUpperCase(const int &UniCh)
static bool IsCase(const int &UniCh)
int TUStr::GetScriptId |
( |
const TStr & |
ScriptNm | ) |
|
|
static |
Definition at line 88 of file unicodestring.cpp.
int GetScriptByName(const TStr &scriptName) const
static TUnicode * GetDef()
TStr TUStr::GetScriptNm |
( |
const int & |
ScriptId | ) |
|
|
static |
Definition at line 92 of file unicodestring.cpp.
const TStr & GetScriptName(const int scriptId) const
static TUnicode * GetDef()
TStr TUStr::GetStarterLowerCaseStr |
( |
| ) |
const |
Definition at line 79 of file unicodestring.cpp.
TStr EncodeUtf8Str(const TIntV &src) const
static TUnicode * GetDef()
void GetSimpleLowerCase(const TIntV &src, TIntV &dest) const
int ExtractStarters(const TIntV &src, TIntV &dest) const
void Decompose(const TIntV &src, TIntV &dest, bool compatibility) const
TStr TUStr::GetStarterStr |
( |
| ) |
const |
Definition at line 71 of file unicodestring.cpp.
TStr EncodeUtf8Str(const TIntV &src) const
static TUnicode * GetDef()
int ExtractStarters(const TIntV &src, TIntV &dest) const
void Decompose(const TIntV &src, TIntV &dest, bool compatibility) const
TStr TUStr::GetStr |
( |
| ) |
const |
Definition at line 66 of file unicodestring.cpp.
TStr EncodeUtf8Str(const TIntV &src) const
static TUnicode * GetDef()
void TUStr::GetWordBoundPV |
( |
TBoolV & |
WordBoundPV | ) |
|
Definition at line 33 of file unicodestring.cpp.
static TUnicode * GetDef()
void FindWordBoundaries(const TIntV &src, TBoolV &dest) const
void TUStr::GetWordUStrV |
( |
TUStrV & |
UStrV | ) |
|
Definition at line 37 of file unicodestring.cpp.
46 for (
int UniChN=0; UniChN<=UniChs; UniChN++){
47 if ((UniChN==UniChs)||(WordBoundPV[UniChN+1])){
54 if (!WordUniChV.
Empty()){
55 TUStr WordUStr(WordUniChV);
56 WordUStrV.Add(WordUStr);
57 WordUniChV.
Clr(
false);
static bool IsAlphabetic(const int &UniCh)
TSizeTy Len() const
Returns the number of elements in the vector.
bool Empty() const
Tests whether the vector is empty.
void Clr(const bool &DoDel=true, const TSizeTy &NoDelLim=-1)
Clears the contents of the vector.
const TVal & Last() const
Returns a reference to the last element of the vector.
void GetWordBoundPV(TBoolV &WordBoundPV)
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
bool TUStr::IsAlphabetic |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 143 of file unicodestring.cpp.
bool IsAlphabetic() const
static TUnicode * GetDef()
bool TUStr::IsCase |
( |
const int & |
UniCh | ) |
|
|
static |
bool TUStr::IsLowerCase |
( |
const int & |
UniCh | ) |
|
|
static |
bool TUStr::IsMath |
( |
const int & |
UniCh | ) |
|
|
static |
bool TUStr::IsUpperCase |
( |
const int & |
UniCh | ) |
|
|
static |
Definition at line 57 of file unicodestring.h.
TSizeTy Len() const
Returns the number of elements in the vector.
void TUStr::LoadXml |
( |
const PXmlTok & |
XmlTok, |
|
|
const TStr & |
Nm |
|
) |
| |
Definition at line 52 of file unicodestring.h.
TSizeTy AddV(const TVec< TVal, TSizeTy > &ValV)
Adds the elements of the vector ValV to the to end of the vector.
bool TUStr::operator== |
( |
const TUStr & |
UStr | ) |
const |
|
inline |
int TUStr::operator[] |
( |
const int & |
UniChN | ) |
const |
|
inline |
void TUStr::Save |
( |
TSOut & |
SOut | ) |
const |
|
inline |
void TUStr::SaveXml |
( |
TSOut & |
SOut, |
|
|
const TStr & |
Nm |
|
) |
| const |
void TUStr::ToLowerCase |
( |
| ) |
|
Definition at line 19 of file unicodestring.cpp.
static TUnicode * GetDef()
void ToSimpleLowerCase(TIntV &src) const
void TUStr::ToStarterCase |
( |
| ) |
|
Definition at line 27 of file unicodestring.cpp.
static TUnicode * GetDef()
int ExtractStarters(const TIntV &src, TIntV &dest) const
void Decompose(const TIntV &src, TIntV &dest, bool compatibility) const
void TUStr::ToUpperCase |
( |
| ) |
|
Definition at line 23 of file unicodestring.cpp.
void ToSimpleUpperCase(TIntV &src) const
static TUnicode * GetDef()
The documentation for this class was generated from the following files: