System.SysUtils.TStringHelper.IsDelimiter

From RAD Studio API Documentation
Jump to: navigation, search

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 0-based string matches one of a set of delimiters.

IsDelimiter determines whether the character at offset Index in this 0-based string is one of the delimiters in the string Delimiters.

var
  MyString: String;

begin
  MyString := 'This is a string.';

  Writeln(Boolean(MyString.IsDelimiter('is', 5)));
end.

Output:

TRUE

See Also