#include <ambigs.h>
Definition at line 52 of file ambigs.h.
◆ compare()
static int tesseract::UnicharIdArrayUtils::compare |
( |
const UNICHAR_ID * |
ptr1, |
|
|
const UNICHAR_ID * |
ptr2 |
|
) |
| |
|
inlinestatic |
Definition at line 58 of file ambigs.h.
58 {
59 for (;;) {
62 if (val1 != val2) {
63 if (val1 == INVALID_UNICHAR_ID) {
64 return -1;
65 }
66 if (val2 == INVALID_UNICHAR_ID) {
67 return 1;
68 }
69 if (val1 < val2) {
70 return -1;
71 }
72 return 1;
73 }
74 if (val1 == INVALID_UNICHAR_ID) {
75 return 0;
76 }
77 }
78 }
◆ copy()
Definition at line 83 of file ambigs.h.
83 {
85 do {
87 }
while (dst[
i++] != INVALID_UNICHAR_ID);
89 }
◆ print()
static void tesseract::UnicharIdArrayUtils::print |
( |
const UNICHAR_ID |
array[], |
|
|
const UNICHARSET & |
unicharset |
|
) |
| |
|
inlinestatic |
Definition at line 93 of file ambigs.h.
93 {
95 if (*ptr == INVALID_UNICHAR_ID) {
97 }
98 while (*ptr != INVALID_UNICHAR_ID) {
99 tprintf(
"%s ", unicharset.id_to_unichar(*ptr++));
100 }
102 ptr = array;
103 while (*ptr != INVALID_UNICHAR_ID) {
105 }
107 }
void tprintf(const char *format,...)
The documentation for this class was generated from the following file:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccutil/ambigs.h