RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiPos Function

Get index value of first character in substring that occurs in string.

Pascal
function AnsiPos(const Substr: AnsiString; const S: AnsiString): Integer; overload;
C++
int AnsiPos(const AnsiString Substr, const AnsiString S);

AnsiPos returns the index value of the first character in a specified substring that occurs in a given string. It operates similarly to the System.Pos function, but supports multi-byte character strings (MBCS) AnsiStrings

 

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