Sign in Join
FPDoc Onlineexperiment

RPosEx function

In unit StrUtils

Find last occurrence substring or character in a string, starting at a certain position.

Declaration

pascal
function RPosEx(C: AnsiChar; const S: AnsiString; offs: SizeInt)
: SizeInt; overload

Description

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. If no match is found, 0 is returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.