JCL Help:StrILastPos@AnsiString@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the index of the last occurrence of SubStr in S.


Pascal

 function StrILastPos(const SubStr: string; const S: string): SizeInt;
function StrILastPos(const SubStr: AnsiString; const S: AnsiString): SizeInt;


Parameters

Parameters Description
const SubStr: string The sub-string to find the last occurrence of.
const S: string The string in which to search.


Return Value

The index of the last occurrence of SubStr in S. If the sub-string does not exist at all the result is 0.


Description

StrILastPos scans the supplied string and returns the index of the first character of the last occurrence of the supplied sub-string. The comparison is case-insensitive.


See Also

StrLastPos


About

Unit

JclAnsiStrings


Donator

Anthony Steele


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page