Functions
str.pos()
Reports the position at which one string sits inside another. The result is an int. This edition does not state what that int is counted from, nor what it reads when there is no match, so do not rely on either.
Syntax · 1 of 4
str.pos(const string source, const string str) → const int
Arguments
source required const string the string to search in str required const string the string whose position you want Return Type
const int Syntax · 2 of 4
str.pos(input string source, input string str) → input int
Arguments
source required input string the string to search in str required input string the string whose position you want Return Type
input int Syntax · 3 of 4
str.pos(simple string source, simple string str) → simple int
Arguments
source required simple string the string to search in str required simple string the string whose position you want Return Type
simple int Syntax · 4 of 4
str.pos(series string source, series string str) → series int
Arguments
source required series string the string to search in str required series string the string whose position you want Return Type
series int