#include <unichar.h>
Definition at line 108 of file unichar.h.
◆ get_utf8()
int tesseract::UNICHAR::const_iterator::get_utf8 |
( |
char * |
buf | ) |
const |
Definition at line 176 of file unichar.cpp.
180 tprintf(
"WARNING: Illegal UTF8 encountered\n");
181 utf8_output[0] =
' ';
184 strncpy(utf8_output, it_, len);
DLLSYM void tprintf(const char *format,...)
static int utf8_step(const char *utf8_str)
◆ is_legal()
bool tesseract::UNICHAR::const_iterator::is_legal |
( |
| ) |
const |
Definition at line 198 of file unichar.cpp.
static int utf8_step(const char *utf8_str)
◆ operator*()
int tesseract::UNICHAR::const_iterator::operator* |
( |
| ) |
const |
Definition at line 165 of file unichar.cpp.
169 tprintf(
"WARNING: Illegal UTF8 encountered\n");
173 return uch.first_uni();
DLLSYM void tprintf(const char *format,...)
static int utf8_step(const char *utf8_str)
◆ operator++()
Definition at line 151 of file unichar.cpp.
155 tprintf(
"ERROR: Illegal UTF8 encountered.\n");
156 for (
int i = 0; i < 5 && it_[i] !=
'\0'; ++i) {
157 tprintf(
"Index %d char = 0x%x\n", i, it_[i]);
DLLSYM void tprintf(const char *format,...)
static int utf8_step(const char *utf8_str)
◆ utf8_data()
const char* tesseract::UNICHAR::const_iterator::utf8_data |
( |
| ) |
const |
|
inline |
◆ utf8_len()
int tesseract::UNICHAR::const_iterator::utf8_len |
( |
| ) |
const |
Definition at line 188 of file unichar.cpp.
192 tprintf(
"WARNING: Illegal UTF8 encountered\n");
DLLSYM void tprintf(const char *format,...)
static int utf8_step(const char *utf8_str)
◆ operator!=
Definition at line 142 of file unichar.h.
143 return !(lhs == rhs);
◆ operator==
bool operator== |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
Definition at line 139 of file unichar.h.
140 return lhs.it_ == rhs.it_;
◆ UNICHAR
The documentation for this class was generated from the following files:
- /usr/src/tesseract-ocr.master/src/ccutil/unichar.h
- /usr/src/tesseract-ocr.master/src/ccutil/unichar.cpp