Approximate Regex Match Callback Parameters.
Declaration:
|
Copy Code |
typedef struct tagAT_REC_MATCH_RESULT
{
AT_INT begin_index;
AT_INT delete_count;
LPAT_WCHAR domain;
AT_INT end_index;
AT_INT insert_count;
AT_INT letter_count;
LPAT_REC_APPROX_REGEX_LETTER* letters;
LPAT_WCHAR pattern;
HMIGEAR source_document;
HIGEAR source_page;
AT_INT source_page_number;
HIG_REC_DOCUMENT source_rec_document;
HIG_REC_IMAGE source_rec_page;
AT_INT substitute_count;
} AT_REC_MATCH_RESULT, * LPAT_REC_MATCH_RESULT;
|
Structure Members:
Name |
Type |
Description |
begin_index |
AT_INT |
The starting position from the first letter in the domain of a pattern match. Default value is 0. |
delete_count |
AT_INT |
The total number of deletes used to produce this match. Default value is 0. |
domain |
LPAT_WCHAR |
The text domain searched. The text is expressed as a UTF-16 string. Default value is empty string. |
end_index |
AT_INT |
The ending position from the first letter in the domain of a pattern match. Default value is 0. |
insert_count |
AT_INT |
The total number of inserts used to produce this match. Default value is 0. |
letter_count |
AT_INT |
The number of LPAT_REC_APPROX_REGEX_LETTER instances in the letters array. This value is 0 if recognition information is unavailable for this match. Default value is 0. |
letters |
LPAT_REC_APPROX_REGEX_LETTER* |
A vector of LPAT_REC_APPROX_REGEX_LETTER instances for the matched word. This value is 0 if recognition information is unavailable for this match. Letters are sorted in logical reading order. The length is equal to letter_count. Default value is 0. |
pattern |
LPAT_WCHAR |
The text pattern used to match. The text is expressed as a UTF-16 string. Default value is an empty string. |
source_document |
HMIGEAR |
The handle to the source multi-page document. If the letter did not originate from an ImageGear multi-page document, then this parameter value is 0. Default value is 0. |
source_page |
HIGEAR |
The handle to the source page. If the letter did not originate from an ImageGear page, then this parameter is 0. Default value is 0. |
source_page_number |
AT_INT |
The page number in the ImageGear multi-page image document or ImageGear recognition document. Default value is 0. |
source_rec_document |
HIG_REC_DOCUMENT |
The handle to the ImageGear recognition document. If the letter did not originate from an ImageGear multi-page document, then this parameter value is 0. Default value is 0. |
source_rec_page |
HIG_REC_IMAGE |
The handle to the source page. If the letter did not originate from an ImageGear recognition page, then this parameter should be ignored. Default value is 0. |
substitute_count |
AT_INT |
The total number of substitutions used to produce this match. Default value is 0. |