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 |
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 |
callout_string | The callout string, eg |
callout_string_offset | The callout string offset in the regular expression. Used with callouts like |
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 |
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 |
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. |