JCL Help:StrScanW@PWideChar@WideChar

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Scans the specified string for an occurrence of Chr.


Pascal

 function StrScanW(const Str: PWideChar; Ch: WideChar): PWideChar; overload;
function StrScanW(Str: PWideChar; Chr: WideChar; StrLen: SizeInt): PWideChar; overload;


Parameters

Parameters Description
const Str: PWideChar The string to scan for an occurrence of Chr.
Chr: WideChar The character to scan for in Str.
StrLen: SizeInt Maximum number of characters to scan.


Return Value

Pointer to the first occurrence of Chr in Str or nil if the specified character does not occur in Str.


Description

Scans at most StrLen characters in the specified string for an occurrence of Chr. The comparison between Str and Chr is case-sensitive. Caller is responsible for ensuring that StrLen never exceeds the length of the strings. The overloaded routines without the StrLen parameter scans the string until it finds the character or the end of the string. You should prefer the routine with the StrLen parameter because it is much faster.


See Also

StrPosW StrRScanW


About

Unit

JclWideStrings


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