Sign in Join
FPDoc Onlineexperiment

RPos function

In unit StrUtils

Find last occurrence of substring or character in a string.

Declaration

pascal
function RPos(c: AnsiChar; const S: AnsiString): SizeInt; overload

Description

RPos looks in S for the character C or the string SubStr. It starts looking at the end 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.