#include <ambigs.h>
Definition at line 56 of file ambigs.h.
static int tesseract::UnicharIdArrayUtils::compare |
( |
const UNICHAR_ID |
array1[], |
|
|
const UNICHAR_ID |
array2[] |
|
) |
| |
|
inlinestatic |
Definition at line 62 of file ambigs.h.
66 while (*ptr1 != INVALID_UNICHAR_ID && *ptr2 != INVALID_UNICHAR_ID) {
67 if (*ptr1 != *ptr2)
return *ptr1 < *ptr2 ? -1 : 1;
71 if (*ptr1 == INVALID_UNICHAR_ID && *ptr2 == INVALID_UNICHAR_ID)
return 0;
72 return *ptr1 == INVALID_UNICHAR_ID ? -1 : 1;
Definition at line 87 of file ambigs.h.
91 }
while (dst[i++] != INVALID_UNICHAR_ID);
Definition at line 77 of file ambigs.h.
79 for (
int i = 0; i < uid_vec.size(); ++i)
80 if (uid_vec[i] == uid)
return i;
static void tesseract::UnicharIdArrayUtils::print |
( |
const UNICHAR_ID |
array[], |
|
|
const UNICHARSET & |
unicharset |
|
) |
| |
|
inlinestatic |
Definition at line 97 of file ambigs.h.
100 if (*ptr == INVALID_UNICHAR_ID)
tprintf(
"[Empty]");
101 while (*ptr != INVALID_UNICHAR_ID) {
106 while (*ptr != INVALID_UNICHAR_ID)
tprintf(
"%d ", *ptr++);
const char *const id_to_unichar(UNICHAR_ID id) const
The documentation for this class was generated from the following file: