JCL Help:TJclCaptureRange

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Represents the starting and ending offsets for captured string results in the TJclRegEx class.


Pascal

 public TJclCaptureRange = record
FirstPos: Integer;
LastPos: Integer;
end;


Members

Members Description
FirstPos: Integer; FirstPos represents the starting offset into a text subject for a captured result string.
LastPos: Integer; LastPos represents the ending offset into a text subject for a captured result string.


Description

TJclCaptureRange is a record type with members that represent the starting and ending offsets for captured string results in the TJclRegEx class.
TJclCaptureRange instances are allocated and updated when reading the indexed values in the TJclRegEx.Captures property.


See Also

TJclCaptureRange.FirstPos TJclCaptureRange.LastPos TJclRegEx TJclRegEx.Captures


About

Unit

JclPCRE


Navigation

Notes

At the present time, the values in TJclCaptureRange members represent zero-based offsets. Since were dealing with Delphi strings in the result(s), this is likely to be changed to Pascal-style string offsets where the initial offset into the string is 1 instead of 0.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page