[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Find the last position (index) of any string or character in a list.
Source position: syshelph.inc line 139
public function TStringHelper.LastIndexOfAny( |
const AnyOf: array of Char |
):SizeInt; overload; |
const AnyOf: array of Char; |
AStartIndex: SizeInt |
):SizeInt; overload; |
const AnyOf: array of Char; |
AStartIndex: SizeInt; |
ACount: SizeInt |
):SizeInt; overload; |
LastIndexOfAny returns the zero-based index of the first matching element in an array of characters or strings (AnyOf).
if no match is found, -1 is returned.
The search can be refined by specifying a (zero-based) index StartIndex. When specified, the search will start at the given character and proceeds to the start of the string. Not specifying this option is equivalent to specifying Length-1.
If ACount is given, at most ACount characters in the source string will be considered for the search. This count includes the starting character. Not specifying this argument is equivalent to specifying StartIndex+1.
|
Search for substring in a string. |
|
|
Find the position (index) of a string or character |
|
|
Index of string, skipping quoted parts. |
|
|
Find the position (index) of any string or character in a list. |
|
|
Find the last position (index) of a string or character |
|
|
Find the position (index) of any string or character in a list. |