JCL Help:CharIPos@AnsiString@AnsiChar@SizeInt
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: CharIPos Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Finds the position of a character in a string.
Pascal
function CharIPos(const S: string; C: Char; const Index: SizeInt = 1): SizeInt;
function CharIPos(const S: AnsiString; C: AnsiChar; const Index: SizeInt = 1): SizeInt;
Parameters
Parameters | Description |
const S: string | String to search. |
C: Char | The character to search for. |
const Index: SizeInt = 1 | The character index where CharPos begins searching. |
Return Value
The 1-based index of the first occurrence found, or 0 if the character was not found.
Description
CharPos returns the 1-based index of the first occurrence of the supplied character in the string. The search starts at the supplied index and is case insensitive.
About
Unit
Donator
Azret Botash
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