RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
StrUtils.AnsiStartsStr Function

Indicates whether one string is a (case-sensitive) prefix of another.

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

AnsiStartsStr returns true if the string specified by ASubText appears as the leading part of the string specified by AText. Comparison is performed case-sensitively. 

 

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