RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.StartsStr Function

Determines whether the substring ASubText begins the string AText using a case insensitive algorithm. If ASubText matches the begining of AText, the result is true, otherwise it is false.

Pascal
function StartsStr(const ASubText: string; const AText: string): Boolean;
C++
Boolean StartsStr(const AnsiString ASubText, const AnsiString AText);

For a case insensitive comparison, use the StartsText routine. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!