L_RegexMatch

typedef struct L_RegexMatch 
{ 
   L_UINT StructSize; 
   L_UINT Index; 
   L_UINT Length; 
   L_UINT Cost; 
   L_UINT InsertCount; 
   L_UINT DeleteCount; 
   L_UINT SubstituteCount; 
} L_RegexMatch; 

Contains the match found for a pattern and input.

Members

StructSize

Structure size. It should be equal to sizeof(L_RegexMatch).

Index

Index of character where the match starts.

Length

Length in characters for the matched string.

Cost

Total cost of this match, if many changes/transformations were made, this will be high. It will be 0 if none.

InsertCount

Total insertions of this match, 0 if none.

DeleteCount

Total deletions of this match, 0 if none.

SubstituteCount

Total replacements of this match, 0 if none.

Comments

Although information about how many transformations were made to get a match is listed here, the API provides no indication where exactly the changes were made.

Help Version 22.0.2021.11.10
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.