JCL Help:StrIPos@AnsiString@AnsiString

From Project JEDI Wiki
Jump to navigationJump to search


Summary

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


Pascal

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


Parameters

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


Return Value

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


Description

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


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