System.SysUtils.TStringHelper.StartsWith

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function StartsWith(const Value: string): Boolean; overload; inline;
function StartsWith(const Value: string; IgnoreCase: Boolean): Boolean; overload;

Propriétés

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


Description

Indique si cette chaîne commence par la chaîne donnée.

Vous pouvez vérifier si la chaîne commence par la chaîne de début en transmettant cette dernière via le paramètre Value. Le paramètre IgnoreCase de la deuxième fonction StartsWith surchargée vous permet d'effectuer la comparaison sans distinction maj/min.

Voir aussi