L_RegexMatch

Summary

Contains the match found for a pattern and input.

Syntax

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; 

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.

Usage

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

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.