#include <ambigs.h>
Definition at line 49 of file ambigs.h.
◆ compare()
static int tesseract::UnicharIdArrayUtils::compare |
( |
const UNICHAR_ID * |
ptr1, |
|
|
const UNICHAR_ID * |
ptr2 |
|
) |
| |
|
inlinestatic |
Definition at line 55 of file ambigs.h.
60 if (val1 == INVALID_UNICHAR_ID)
return -1;
61 if (val2 == INVALID_UNICHAR_ID)
return 1;
62 if (val1 < val2)
return -1;
65 if (val1 == INVALID_UNICHAR_ID)
return 0;
◆ copy()
Definition at line 81 of file ambigs.h.
85 }
while (dst[i++] != INVALID_UNICHAR_ID);
◆ find_in()
Definition at line 71 of file ambigs.h.
73 for (
int i = 0; i < uid_vec.size(); ++i)
74 if (uid_vec[i] == uid)
return i;
◆ print()
static void tesseract::UnicharIdArrayUtils::print |
( |
const UNICHAR_ID |
array[], |
|
|
const UNICHARSET & |
unicharset |
|
) |
| |
|
inlinestatic |
Definition at line 91 of file ambigs.h.
94 if (*ptr == INVALID_UNICHAR_ID)
tprintf(
"[Empty]");
95 while (*ptr != INVALID_UNICHAR_ID) {
100 while (*ptr != INVALID_UNICHAR_ID)
tprintf(
"%d ", *ptr++);
The documentation for this class was generated from the following file: