tesseract
3.03
|
#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 |
Definition at line 42 of file ambigs.cpp.
{ wrong_ngram[0] = INVALID_UNICHAR_ID; correct_fragments[0] = INVALID_UNICHAR_ID; correct_ngram_id = INVALID_UNICHAR_ID; type = NOT_AMBIG; wrong_ngram_size = 0; }
tesseract::AmbigSpec::~AmbigSpec | ( | ) | [inline] |
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); }