[Overview][Constants][Types][Procedures and functions] |
Returns the position of the N-th occurence of a substring in a string.
Source position: strutils.pp line 135
function NPos( |
const C: String; |
S: String; |
N: Integer |
):Integer; |
C |
|
Substring to search for |
S |
|
String to search. |
N |
|
Which position to return |
Position of N-th occurrence of the substring, -1 if there is none.
NPoschecks Sfor the position of the N-th occurrence of C. If Coccurs less than Ntimes in S, or does not occur in Sat all, 0 is returned. If Nis less than 1, zero is returned.
None.
|
Search position of Nth word in a string. |
|
|
Search for a substring in a string, using wildcards. |