| [Overview][Resource strings][Constants][Types][Procedures and functions][Index] | 
Search for the occurrence of a character in a string, starting at a certain position.
Source position: strutils.pp line 117
function PosEx(  | 
const SubStr: string;  | 
const S: string;  | 
Offset: SizeUInt  | 
):SizeInt;  | 
const SubStr: string;  | 
const S: string  | 
):SizeInt;  | 
c: Char;  | 
const S: string;  | 
Offset: SizeUInt  | 
):SizeInt;  | 
const SubStr: UnicodeString;  | 
const S: UnicodeString;  | 
Offset: SizeUInt  | 
):SizeInt;  | 
c: WideChar;  | 
const S: UnicodeString;  | 
Offset: SizeUInt  | 
):SizeInt;  | 
const SubStr: UnicodeString;  | 
const S: UnicodeString  | 
):SizeInt;  | 
SubStr  | 
  | 
String to search for.  | 
S  | 
  | 
String to search.  | 
Offset  | 
  | 
Initial position where to start searching.  | 
Position of the character, or 0 if it is not found.
SubStr  | 
  | 
String to search for.  | 
S  | 
  | 
String to search.  | 
c  | 
  | 
Character to search for.  | 
S  | 
  | 
String to search.  | 
Offset  | 
  | 
Initial position where to start searching.  | 
SubStr  | 
  | 
String to search for.  | 
S  | 
  | 
String to search.  | 
Offset  | 
  | 
Initial position where to start searching.  | 
c  | 
  | 
Character to search for.  | 
S  | 
  | 
String to search.  | 
Offset  | 
  | 
Initial position where to start searching.  | 
SubStr  | 
  | 
String to search for.  | 
S  | 
  | 
String to search.  | 
PosEx returns the position of the first occurrence of the character C or the substring SubStr in the string S, starting the search at position Offset (default 1). If C or SubStr does not occur in S after the given Offset, zero is returned. The position Offset is also searched.
None.
  | 
Returns the position of the N-th occurrence of a substring in a string.  | 
|
  | 
Check whether a string contains a certain substring, ignoring case.  | 
|
  | 
Checks whether a string contains a given substring  |