System.SysUtils.TStringHelper.IsDelimiter
Delphi
function IsDelimiter(const Delimiters: string; Index: Integer): Boolean;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Indicates whether a specified character in this string matches one of a set of delimiters.
IsDelimiter determines whether the character at offset Index in this string is one of the delimiters in the string provided in the Delimiters parameter.
var
MyString: String;
begin
MyString := 'This is a string.';
Writeln(Boolean(MyString.IsDelimiter('is', 5)));
end.
Output:
TRUE