L_RegexMatch (original) (raw)

Summary

Contains the match found for a pattern and input.

Syntax

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

LEADTOOLS Raster Imaging C API Help