JCL Help:WideCharPos

From Project JEDI Wiki
Jump to navigationJump to search


Summary

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


Pascal

 function WideCharPos(const S: WideString; const Ch: WideChar; const Index: SizeInt): SizeInt;


Parameters

Parameters Description
const S: WideString The string which to scan for the Ch character.
const Ch: WideChar The character to search for.
const Index: SizeInt The index at which to start searching in S. Usually you'll pass 1 to search the entire string (Note: the string is one based, not zero based!).


Return Value

Index of the first occurrence of the specified character in the supplied string. This index is relative to the first character of the string, not relative to the specified index.


Description

WideCharPos returns the index of the first occurrence of the specified character in the supplied string. Note that this is a search for the binary pattern, no attempt is made to interpret either the given character or the string (ligatures, modifiers, surrogates etc.).


About

Unit

JclUnicode


Donator

Mike Lischke


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