[Overview][Constants][Types][Procedures and functions] Reference for unit 'strutils' (#rtl)

PosSetEx

Return the position in a string of any character out of a set of characters, starting at a certain position

Declaration

Source position: line 0

function PosSetEx(

  const c: TSysCharSet;

  const s: ansistring;

  count: Integer

):Integer;

function PosSetEx(

  const c: String;

  const s: ansistring;

  count: Integer

):Integer;

Description

PosSetExreturns the position in sof the first found character which is in the set c, and starts searching at character position Count. If none of the characters in cis found in s, then 0is returned.

Errors

None.

See also

PosEx

  

Search for the occurance of a character in a string, starting at a certain position.

PosSet

  

Return the position in a string of any character out of a set of characters

#rtl.system.pos

  

Search for substring in a string.

RPosEx

  

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