#include <unicode.h>
Definition at line 1649 of file unicode.h.
TUniChDb::TUcdFileReader::TUcdFileReader |
( |
| ) |
|
|
inline |
TUniChDb::TUcdFileReader::TUcdFileReader |
( |
const TStr & |
fileName | ) |
|
|
inline |
Definition at line 1682 of file unicode.h.
void Open(const TStr &fileName)
TUniChDb::TUcdFileReader::~TUcdFileReader |
( |
| ) |
|
|
inline |
void TUniChDb::TUcdFileReader::Close |
( |
| ) |
|
|
inline |
int TUniChDb::TUcdFileReader::GetCh |
( |
| ) |
|
|
inlineprotected |
bool TUniChDb::TUcdFileReader::GetNextLine |
( |
TStrV & |
dest | ) |
|
|
inline |
Definition at line 1686 of file unicode.h.
1691 if (line.
Len() <= 0)
continue;
1693 for (
int i = 0; i < dest.
Len(); i++) dest[i].ToTrunc();
TSizeTy Len() const
Returns the number of elements in the vector.
void Clr(const bool &DoDel=true, const TSizeTy &NoDelLim=-1)
Clears the contents of the vector.
void SplitOnAllCh(const char &SplitCh, TStrV &StrV, const bool &SkipEmpty=true) const
void TUniChDb::TUcdFileReader::Open |
( |
const TStr & |
fileName | ) |
|
|
inline |
Definition at line 1683 of file unicode.h.
#define IAssertR(Cond, Reason)
static int TUniChDb::TUcdFileReader::ParseCodePoint |
( |
const TStr & |
s | ) |
|
|
inlinestatic |
Definition at line 1695 of file unicode.h.
1696 int c;
bool ok = s.
IsHexInt(
true, 0, 0x10ffff, c);
IAssertR(ok, s);
return c; }
#define IAssertR(Cond, Reason)
bool IsHexInt(const bool &Check, const int &MnVal, const int &MxVal, int &Val) const
static void TUniChDb::TUcdFileReader::ParseCodePointList |
( |
const TStr & |
s, |
|
|
TIntV & |
dest, |
|
|
bool |
ClrDestP = true |
|
) |
| |
|
inlinestatic |
Definition at line 1697 of file unicode.h.
1698 if (ClrDestP) dest.
Clr();
1700 for (
int i = 0; i < parts.
Len(); i++) {
1701 int c;
bool ok = parts[i].IsHexInt(
true, 0, 0x10ffff, c);
IAssertR(ok, s);
#define IAssertR(Cond, Reason)
TSizeTy Len() const
Returns the number of elements in the vector.
void Clr(const bool &DoDel=true, const TSizeTy &NoDelLim=-1)
Clears the contents of the vector.
void SplitOnWs(TStrV &StrV) const
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
static void TUniChDb::TUcdFileReader::ParseCodePointRange |
( |
const TStr & |
s, |
|
|
int & |
from, |
|
|
int & |
to |
|
) |
| |
|
inlinestatic |
Definition at line 1703 of file unicode.h.
TStr GetSubStr(const int &BChN, const int &EChN) const
int SearchStr(const TStr &Str, const int &BChN=0) const
static int ParseCodePoint(const TStr &s)
void TUniChDb::TUcdFileReader::PutBack |
( |
int |
c | ) |
|
|
inlineprotected |
bool TUniChDb::TUcdFileReader::ReadNextLine |
( |
| ) |
|
|
inlineprotected |
Definition at line 1663 of file unicode.h.
1665 bool inComment =
false, first =
true;
1668 if (c == EOF)
return ! first;
1672 else if (c == 10)
return true;
1673 else if (c ==
'#') inComment =
true;
1674 if (! inComment)
buf += char(c);
TChA TUniChDb::TUcdFileReader::buf |
|
protected |
TChA TUniChDb::TUcdFileReader::comment |
FILE* TUniChDb::TUcdFileReader::f |
|
protected |
int TUniChDb::TUcdFileReader::putBackCh |
|
protected |
The documentation for this class was generated from the following file: