AnsiStrings.PosEx

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From AnsiStrings.pas

	function PosEx(const SubStr: AnsiString;
		const S: AnsiString;
		Offset: Integer = $1): Integer; overload;


Unit: AnsiStrings

Type: function

Visibility: public

C++ Information

From AnsiStrings.hpp

	int __fastcall PosEx(System::AnsiStringT<0> SubStr, System::AnsiStringT<0> S, int Offset);


Unit: AnsiStrings

Type: function

Description

Returns index value of substring, starting at offset.


PosEx returns the index of SubStr in S, beginning the search at Offset. The index is 1-based.

PosEx returns 0 if SubStr is not found, if Offset is greater than the length of S, or if Offset is less than 1.

See Also

Personal tools
Translations
Newest Version