#include <unichar.h>
Definition at line 109 of file unichar.h.
◆ get_utf8()
int tesseract::UNICHAR::const_iterator::get_utf8 |
( |
char * |
buf | ) |
const |
Definition at line 178 of file unichar.cpp.
182 tprintf(
"WARNING: Illegal UTF8 encountered\n");
183 utf8_output[0] =
' ';
186 strncpy(utf8_output, it_, len);
◆ is_legal()
bool tesseract::UNICHAR::const_iterator::is_legal |
( |
| ) |
const |
◆ operator*()
int tesseract::UNICHAR::const_iterator::operator* |
( |
| ) |
const |
Definition at line 167 of file unichar.cpp.
171 tprintf(
"WARNING: Illegal UTF8 encountered\n");
175 return uch.first_uni();
◆ operator++()
Definition at line 153 of file unichar.cpp.
157 tprintf(
"ERROR: Illegal UTF8 encountered.\n");
158 for (
int i = 0; i < 5 && it_[i] !=
'\0'; ++i) {
159 tprintf(
"Index %d char = 0x%x\n", i, it_[i]);
◆ utf8_data()
const char* tesseract::UNICHAR::const_iterator::utf8_data |
( |
| ) |
const |
|
inline |
◆ utf8_len()
int tesseract::UNICHAR::const_iterator::utf8_len |
( |
| ) |
const |
◆ operator!=
Definition at line 145 of file unichar.h.
146 return !(lhs == rhs);
◆ operator==
bool operator== |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| |
|
friend |
Definition at line 142 of file unichar.h.
143 return lhs.it_ == rhs.it_;
◆ UNICHAR
The documentation for this class was generated from the following files: