/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.
Define Documentation
| #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 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)) |