System.AnsiStringBase.AnsiPos

From RAD Studio API Documentation
Jump to: navigation, search

C++

int          AnsiPos(const AnsiStringBase& subStr) const _ALWAYS_INLINE {

Properties

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

Description

Returns the index at which the specified substring begins.

Returns the index in the AnsiStringBase 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 AnsiStringBase, 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