|
caselessPos
>>-caselessPos(needle-+---------------------------+-)---><
+-,--+-------+--+---------+-+
+-start-+ +-,length-+
Returns the position in the receiving string of another string,
[needle]
. (See also
.) It returns
String class - caselessPos method
"Saturday"~caselessPos("DAY") -> 6
"abc def ghi"~caselessPos("x") -> 0
"abc def ghi"~caselessPos(" ") -> 4
"abc def ghi"~caselessPos(" ",5) -> 8
"abc def ghi"~caselessPos(" ",5,3) -> 0
|