System.AnsiStrings.StartsStr
Delphi
function StartsStr(const ASubText, AText: AnsiString): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall StartsStr(const System::AnsiString ASubText, const System::AnsiString AText)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Test if leading part of text matches subtext with case-sensitivity.
StartsStr returns true if the leading part of the given text matches the subtext with case-sensitivity and returns false otherwise. The compare operation is controlled by the current user locale. This function is the same as AnsiStartsStr.
Use StartsText to make this test without case-sensitivity.