Show / Hide Table of Contents

Struct RXCalloutData

Managed version of PCRE API struct pcre2_callout_block. When you set regexp.Callout, your callout function's parameter is of this type. More info in PCRE help topic pcre2callout. Most properties are pcre2_callout_block fields as documented in PCRE help. Other properties and methods are easier/safer versions of unsafe fields like offset_vector.

public struct RXCalloutData

Namespace: Au.Types
Assembly: Au.dll

Properties

Name Description
LastGroup

Gets the start index and length of the most recently captured group in the subject string.

LastGroupValue

Gets the value (substring) of the most recently captured group.

Result

Sets the return value of the callout function, as documented in PCRE help topic pcre2callout. Default 0. If 1, matching fails at the current point, but the testing of other matching possibilities goes ahead, just as if a lookahead assertion had failed. If -1 (PCRE2_ERROR_NOMATCH), the match function returns false (no match). Values less tan -2 are PCRE error codes and cause exception.

callout_flags

Flags. 1 PCRE2_CALLOUT_STARTMATCH, 2 PCRE2_CALLOUT_BACKTRACK. More info in PCRE help topic pcre2callout.

callout_number

Callout number, eg 5 for "(?C5)". More info in PCRE help topic pcre2callout.

callout_string

The callout string, eg "xyz" for "(?C'xyz')". More info in PCRE help topic pcre2callout.

callout_string_offset

The callout string offset in the regular expression. Used with callouts like "(?C'calloutString')". More info in PCRE help topic pcre2callout.

capture_last

The number of the most recently captured group. More info in PCRE help topic pcre2callout.

capture_top

One more than the number of the highest numbered captured group so far. More info in PCRE help topic pcre2callout.

current_position

The current offset within the subject string.

mark

The most recently passed (*MARK), (*PRUNE), or (*THEN) item in the match, or null if no such items have been passed. More info in PCRE help topic pcre2callout.

next_item_length

The length of the next item to be processed in the regular expression. More info in PCRE help topic pcre2callout.

pattern_position

The offset in the regular expression to the next item to be matched.

start_match

The offset within the subject string at which the current match attempt started. But depends on \K etc. More info in PCRE help topic pcre2callout.

Methods

Name Description
Group(int)

Gets the start index and length of the specified group in the subject string.

GroupValue(int)

Gets the value (substring) of the specified group.