JCL Help:StrLastPos@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 StrLastPos(const SubStr: string; const S: string): SizeInt;
function StrLastPos(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

StrLastPos 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-sensitive.


See Also

StrILastPos


About

Unit

JclAnsiStrings


Donator

Marcel van Brakel


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