RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
UnicodeString::Pos Method

Returns character index at which specified substring begins.

Pascal
function Pos(const subStr: UnicodeString&): Integer;
C++
__fastcall int Pos(const UnicodeString& subStr) const;

System::UnicodeString::Pos returns the character index in the System::UnicodeString instance at which the substring subStr begins, where 1 is the index of the first character, 2 is the index of the second character, and so on. If the substring is not contained in the System::UnicodeString, System::UnicodeString::Pos returns 0. 

 

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