RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiStartsStr Function

Test if leading part of text matches subtext with case-sensitivity.

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

AnsiStartsStr 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. 

Use AnsiStartsText to make this test without case-sensitivity. 

 

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