tesseract
5.0.0-alpha-619-ge9db
|
#include <unicharcompress.h>
Public Member Functions | |
UnicharCompress () | |
UnicharCompress (const UnicharCompress &src) | |
~UnicharCompress () | |
UnicharCompress & | operator= (const UnicharCompress &src) |
bool | ComputeEncoding (const UNICHARSET &unicharset, int null_id, STRING *radical_stroke_table) |
void | SetupPassThrough (const UNICHARSET &unicharset) |
void | SetupDirect (const GenericVector< RecodedCharID > &codes) |
int | code_range () const |
int | EncodeUnichar (int unichar_id, RecodedCharID *code) const |
int | DecodeUnichar (const RecodedCharID &code) const |
bool | IsValidFirstCode (int code) const |
const GenericVector< int > * | GetNextCodes (const RecodedCharID &code) const |
const GenericVector< int > * | GetFinalCodes (const RecodedCharID &code) const |
bool | Serialize (TFile *fp) const |
bool | DeSerialize (TFile *fp) |
STRING | GetEncodingAsString (const UNICHARSET &unicharset) const |
Static Public Member Functions | |
static bool | DecomposeHangul (int unicode, int *leading, int *vowel, int *trailing) |
Static Public Attributes | |
static const int | kFirstHangul = 0xac00 |
static const int | kNumHangul = 11172 |
static const int | kLCount = 19 |
static const int | kVCount = 21 |
static const int | kTCount = 28 |
Definition at line 128 of file unicharcompress.h.
tesseract::UnicharCompress::UnicharCompress | ( | ) |
Definition at line 86 of file unicharcompress.cpp.
tesseract::UnicharCompress::UnicharCompress | ( | const UnicharCompress & | src | ) |
Definition at line 87 of file unicharcompress.cpp.
tesseract::UnicharCompress::~UnicharCompress | ( | ) |
Definition at line 88 of file unicharcompress.cpp.
|
inline |
Definition at line 161 of file unicharcompress.h.
bool tesseract::UnicharCompress::ComputeEncoding | ( | const UNICHARSET & | unicharset, |
int | null_id, | ||
STRING * | radical_stroke_table | ||
) |
Definition at line 101 of file unicharcompress.cpp.
int tesseract::UnicharCompress::DecodeUnichar | ( | const RecodedCharID & | code | ) | const |
Definition at line 291 of file unicharcompress.cpp.
|
static |
Definition at line 348 of file unicharcompress.cpp.
bool tesseract::UnicharCompress::DeSerialize | ( | TFile * | fp | ) |
Definition at line 305 of file unicharcompress.cpp.
int tesseract::UnicharCompress::EncodeUnichar | ( | int | unichar_id, |
RecodedCharID * | code | ||
) | const |
Definition at line 283 of file unicharcompress.cpp.
STRING tesseract::UnicharCompress::GetEncodingAsString | ( | const UNICHARSET & | unicharset | ) | const |
Definition at line 319 of file unicharcompress.cpp.
|
inline |
Definition at line 179 of file unicharcompress.h.
|
inline |
Definition at line 173 of file unicharcompress.h.
|
inline |
Definition at line 170 of file unicharcompress.h.
UnicharCompress & tesseract::UnicharCompress::operator= | ( | const UnicharCompress & | src | ) |
Definition at line 89 of file unicharcompress.cpp.
bool tesseract::UnicharCompress::Serialize | ( | TFile * | fp | ) | const |
Definition at line 300 of file unicharcompress.cpp.
void tesseract::UnicharCompress::SetupDirect | ( | const GenericVector< RecodedCharID > & | codes | ) |
Definition at line 233 of file unicharcompress.cpp.
void tesseract::UnicharCompress::SetupPassThrough | ( | const UNICHARSET & | unicharset | ) |
Definition at line 216 of file unicharcompress.cpp.
|
static |
Definition at line 136 of file unicharcompress.h.
|
static |
Definition at line 141 of file unicharcompress.h.
|
static |
Definition at line 138 of file unicharcompress.h.
|
static |
Definition at line 143 of file unicharcompress.h.
|
static |
Definition at line 142 of file unicharcompress.h.