System.SysUtils.TStringHelper.StartsWith
Delphi
function StartsWith(const Value: string): Boolean; overload; inline;
function StartsWith(const Value: string; IgnoreCase: Boolean): Boolean; overload;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.SysUtils.pas | System.SysUtils | TStringHelper |
Description
Returns whether this 0-based string starts with the given string.
The string you want to test whether it is the start string for this 0-based string, is passed through the Value
parameter. The IgnoreCase
parameter of the second overloaded StartsWith function allows you to compare without case-sensitivity.