/home/rays/src/opensrc/tesseract-ocr/cube/tess_lang_mod_edge.h File Reference

#include "dawg.h"
#include "char_set.h"
#include "lang_mod_edge.h"
#include "cube_reco_context.h"
#include "cube_utils.h"

Go to the source code of this file.

Classes

class  tesseract::TessLangModEdge

Namespaces

namespace  tesseract

Defines

#define LEAD_PUNC_EDGE_REF_MASK   (inT64) 0x0000000100000000ll
#define TRAIL_PUNC_EDGE_REF_MASK   (inT64) 0x0000000200000000ll
#define TRAIL_PUNC_REPEAT_MASK   (inT64) 0xffff000000000000ll
#define NUMBER_STATE_SHIFT   0
#define NUMBER_STATE_MASK   0x0000000fl
#define NUMBER_LITERAL_SHIFT   4
#define NUMBER_LITERAL_MASK   0x000000f0l
#define NUMBER_REPEAT_SHIFT   8
#define NUMBER_REPEAT_MASK   0x00000f00l
#define NUM_TRM   -99
#define TRAIL_PUNC_REPEAT_SHIFT   48
#define IsLeadingPuncEdge(edge_mask)   ((edge_mask & LEAD_PUNC_EDGE_REF_MASK) != 0)
#define IsTrailingPuncEdge(edge_mask)   ((edge_mask & TRAIL_PUNC_EDGE_REF_MASK) != 0)
#define TrailingPuncCount(edge_mask)   ((edge_mask & TRAIL_PUNC_REPEAT_MASK) >> TRAIL_PUNC_REPEAT_SHIFT)
#define TrailingPuncEdgeMask(Cnt)   (TRAIL_PUNC_EDGE_REF_MASK | ((Cnt) << TRAIL_PUNC_REPEAT_SHIFT))
#define DAWG_OOD   0
#define DAWG_NUMBER   1

Define Documentation

#define DAWG_NUMBER   1
#define DAWG_OOD   0
#define IsLeadingPuncEdge ( edge_mask   )     ((edge_mask & LEAD_PUNC_EDGE_REF_MASK) != 0)
#define IsTrailingPuncEdge ( edge_mask   )     ((edge_mask & TRAIL_PUNC_EDGE_REF_MASK) != 0)
#define LEAD_PUNC_EDGE_REF_MASK   (inT64) 0x0000000100000000ll
#define NUM_TRM   -99
#define NUMBER_LITERAL_MASK   0x000000f0l
#define NUMBER_LITERAL_SHIFT   4
#define NUMBER_REPEAT_MASK   0x00000f00l
#define NUMBER_REPEAT_SHIFT   8
#define NUMBER_STATE_MASK   0x0000000fl
#define NUMBER_STATE_SHIFT   0
#define TRAIL_PUNC_EDGE_REF_MASK   (inT64) 0x0000000200000000ll
#define TRAIL_PUNC_REPEAT_MASK   (inT64) 0xffff000000000000ll
#define TRAIL_PUNC_REPEAT_SHIFT   48
#define TrailingPuncCount ( edge_mask   )     ((edge_mask & TRAIL_PUNC_REPEAT_MASK) >> TRAIL_PUNC_REPEAT_SHIFT)
#define TrailingPuncEdgeMask ( Cnt   )     (TRAIL_PUNC_EDGE_REF_MASK | ((Cnt) << TRAIL_PUNC_REPEAT_SHIFT))
Generated on Thu Feb 2 08:19:22 2012 for Tesseract by  doxygen 1.6.3