RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WideStrUtils.WStrPos Function

Returns a pointer to the first occurrence of a PWideChar in another PWideChar.

Pascal
function WStrPos(const Str1: PWideChar; const Str2: PWideChar): PWideChar;
C++
PWideChar WStrPos(const PWideChar Str1, const PWideChar Str2);

WStrPos returns a pointer to the first occurrence of Str2 in Str1. If Str2 does not occur in Str1, WStrPos returns nil (Delphi) or NULL (C++). 

 

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