Find last occurrence substring or character in a string, starting at a certain position.
Source position: strutils.pp line 194
function RPosEx( |
C: AnsiChar; |
const S: AnsiString; |
offs: SizeInt |
):SizeInt; overload; |
C: Unicodechar; |
const S: UnicodeString; |
offs: SizeInt |
):SizeInt; overload; |
const Substr: AnsiString; |
const Source: AnsiString; |
offs: SizeInt |
):SizeInt; overload; |
const Substr: UnicodeString; |
const Source: UnicodeString; |
offs: SizeInt |
):SizeInt; overload; |
RPos looks in S for the character C or the string SubStr. It starts looking at position Offs (counted from the start of the string), and searches towards the beginning of the string. If a match is found, it returns the position of the match.
|
Find last occurrence of substring or character in a string. |