List of all members.
Detailed Description
Definition at line 294 of file paragraphs.cpp.
Constructor & Destructor Documentation
tesseract::UnicodeSpanSkipper::UnicodeSpanSkipper |
( |
const UNICHARSET * |
unicharset, |
|
|
const WERD_CHOICE * |
word |
|
) |
| |
|
inline |
Member Function Documentation
int tesseract::UnicodeSpanSkipper::SkipAlpha |
( |
int |
pos | ) |
|
Definition at line 335 of file paragraphs.cpp.
{
while (pos < wordlen_ && u_->get_isalpha(word_->
unichar_id(pos))) pos++;
return pos;
}
int tesseract::UnicodeSpanSkipper::SkipDigits |
( |
int |
pos | ) |
|
int tesseract::UnicodeSpanSkipper::SkipPunc |
( |
int |
pos | ) |
|
Definition at line 314 of file paragraphs.cpp.
{
while (pos < wordlen_ && u_->get_ispunctuation(word_->
unichar_id(pos))) pos++;
return pos;
}
int tesseract::UnicodeSpanSkipper::SkipRomans |
( |
int |
pos | ) |
|
Definition at line 325 of file paragraphs.cpp.
{
const char *kRomans = "ivxlmdIVXLMD";
while (pos < wordlen_) {
if (ch >= 0xF0 || strchr(kRomans, ch) == 0) break;
pos++;
}
return pos;
}
The documentation for this class was generated from the following file: