#include <unichar.h>
List of all members.
Detailed Description
Definition at line 100 of file unichar.h.
Member Function Documentation
Definition at line 173 of file unichar.cpp.
{
ASSERT_HOST(it_ != NULL);
const int len = utf8_step(it_);
if (len == 0) {
tprintf("WARNING: Illegal UTF8 encountered\n");
utf8_output[0] = ' ';
return 1;
}
strncpy(utf8_output, it_, len);
return len;
}
int UNICHAR::const_iterator::operator* |
( |
| ) |
const |
Definition at line 148 of file unichar.cpp.
{
ASSERT_HOST(it_ != NULL);
int step = utf8_step(it_);
if (step == 0) {
tprintf("ERROR: Illegal UTF8 encountered.\n");
for (int i = 0; i < 5 && it_[i] != '\0'; ++i) {
tprintf("Index %d char = 0x%x", i, it_[i]);
}
step = 1;
}
it_ += step;
return *this;
}
Friends And Related Function Documentation
Definition at line 132 of file unichar.h.
{
return !(lhs == rhs);
}
bool operator== |
( |
const CI & |
lhs, |
|
|
const CI & |
rhs |
|
) |
| [friend] |
Definition at line 129 of file unichar.h.
{
return lhs.it_ == rhs.it_;
}
The documentation for this class was generated from the following files:
- /usr/local/google/home/jbreiden/tesseract-ocr-read-only/ccutil/unichar.h
- /usr/local/google/home/jbreiden/tesseract-ocr-read-only/ccutil/unichar.cpp