System.AnsiStringBase.Pos
C++
int Pos(const AnsiStringBase& subStr) const _ALWAYS_INLINE {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | dstring.h | System | AnsiStringBase |
Description
Returns the index at which a specified substring begins.
Pos returns the index in the AnsiStringBase 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 AnsiStringBase, Pos returns 0.