System.RegularExpressionsCore.TPerlRegEx.GroupLengths

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property GroupLengths[Index: Integer]: Integer read GetGroupLengths;

C++

__property int GroupLengths[int Index] = {read=GetGroupLengths};

Properties

Type Visibility Source Unit Parent
property public
System.RegularExpressionsCore.pas
System.RegularExpressionsCore.hpp
System.RegularExpressionsCore TPerlRegEx

Description

Lengths of the text matched by capturing groups.

Lengths of the group strings in the Groups array.

Querying GroupLengths[Index] is faster than Length(Groups[Index]), since the former only needs to do a few integer computations, while the latter actually extracts a string from the Subject. Valid range for Index is 0..GroupCount.

Run-time and read-only.

See Also