|
tesseract 3.04.01
|
#include <ambigs.h>
Public Member Functions | |
| AmbigSpec () | |
| ~AmbigSpec () | |
Static Public Member Functions | |
| static int | compare_ambig_specs (const void *spec1, const void *spec2) |
Public Attributes | |
| UNICHAR_ID | wrong_ngram [MAX_AMBIG_SIZE+1] |
| UNICHAR_ID | correct_fragments [MAX_AMBIG_SIZE+1] |
| UNICHAR_ID | correct_ngram_id |
| AmbigType | type |
| int | wrong_ngram_size |
| tesseract::AmbigSpec::AmbigSpec | ( | ) |
Definition at line 44 of file ambigs.cpp.
| static int tesseract::AmbigSpec::compare_ambig_specs | ( | const void * | spec1, |
| const void * | spec2 | ||
| ) | [inline, static] |
Definition at line 121 of file ambigs.h.
{
const AmbigSpec *s1 =
*reinterpret_cast<const AmbigSpec * const *>(spec1);
const AmbigSpec *s2 =
*reinterpret_cast<const AmbigSpec * const *>(spec2);
int result = UnicharIdArrayUtils::compare(s1->wrong_ngram, s2->wrong_ngram);
if (result != 0) return result;
return UnicharIdArrayUtils::compare(s1->correct_fragments,
s2->correct_fragments);
}
| UNICHAR_ID tesseract::AmbigSpec::correct_fragments[MAX_AMBIG_SIZE+1] |
| UNICHAR_ID tesseract::AmbigSpec::wrong_ngram[MAX_AMBIG_SIZE+1] |