JCL Help:CharPos@AnsiString@AnsiChar@SizeInt
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: CharPos Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Finds the position of a character in a string.
Pascal
function CharPos(const S: string; const C: Char; const Index: SizeInt = 1): SizeInt;
function CharPos(const S: AnsiString; const C: AnsiChar; const Index: SizeInt = 1): SizeInt;
Parameters
Parameters | Description |
const S: string | String to search. |
const 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 sensitive.
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