System.SysUtils.TStringHelper.IsDelimiter

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function IsDelimiter(const Delimiters: string; Index: Integer): Boolean;

Propriétés

Type Visibilité  Source Unité  Parent
function public System.SysUtils.pas System.SysUtils TStringHelper


Description

Indique si un caractère spécifié dans cette chaîne correspond à un ensemble de délimiteurs.

IsDelimiter indique si le caractère au décalage Index dans cette chaîne est l'un des délimiteurs dans la chaîne fournie dans le paramètre Delimiters.

var
  MyString: String;

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

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

Sortie :


TRUE

Voir aussi