System.AnsiStringT.AnsiPos

From RAD Studio API Documentation
Jump to: navigation, search

C++

int AnsiPos(const AnsiStringT& subStr) const {

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringT

Description

Returns the index at which the specified substring begins.

Returns the index in the AnsiStringT at which the substring subStr begins, where 1 is the first character in the string, 2 is the second character, and so on. If the substring is not contained in the AnsiStringT, Pos returns 0. This member function is the same as Pos but supports multibyte character strings.

Note: See ByteType for more information about multibyte characters.

See Also