#include <ambigs.h>
Definition at line 56 of file ambigs.h.
◆ compare()
static int tesseract::UnicharIdArrayUtils::compare |
( |
const UNICHAR_ID * |
ptr1, |
|
|
const UNICHAR_ID * |
ptr2 |
|
) |
| |
|
inlinestatic |
Definition at line 62 of file ambigs.h.
67 if (val1 == INVALID_UNICHAR_ID)
return -1;
68 if (val2 == INVALID_UNICHAR_ID)
return 1;
69 if (val1 < val2)
return -1;
72 if (val1 == INVALID_UNICHAR_ID)
return 0;
◆ copy()
Definition at line 88 of file ambigs.h.
92 }
while (dst[i++] != INVALID_UNICHAR_ID);
◆ find_in()
Definition at line 78 of file ambigs.h.
80 for (
int i = 0; i < uid_vec.size(); ++i)
81 if (uid_vec[i] == uid)
return i;
◆ print()
static void tesseract::UnicharIdArrayUtils::print |
( |
const UNICHAR_ID |
array[], |
|
|
const UNICHARSET & |
unicharset |
|
) |
| |
|
inlinestatic |
Definition at line 98 of file ambigs.h.
101 if (*ptr == INVALID_UNICHAR_ID)
tprintf(
"[Empty]");
102 while (*ptr != INVALID_UNICHAR_ID) {
107 while (*ptr != INVALID_UNICHAR_ID)
tprintf(
"%d ", *ptr++);
DLLSYM void tprintf(const char *format,...)
const char * id_to_unichar(UNICHAR_ID id) const
The documentation for this class was generated from the following file:
- /usr/src/tesseract-ocr.master/src/ccutil/ambigs.h