reversePos
reversePos(substr: StringUtf8): Integer;
The reversePos method of the StringUtf8 primitive type returns the position of the last occurrence of the substring specified in the substr parameter in the receiving string.
The character search is case-sensitive.
The following example shows the use of the reversePos method.
vars str8 : StringUtf8; begin str8 := "Reverse position example"; write str8.reversePos('pos'); // Outputs 9 end;