JCL Help:StrNScanW
JCL Help: StrNScanW Function
Search in JCL Help
Search in all projects
Summary
StrNScan returns the length of the consecutive characters in S1 which do not appear in S2.
Pascal
function StrNScanW(const Str1: PWideChar; const Str2: PWideChar): SizeInt;
Parameters
Parameters | Description |
S1 | The source string. |
S2 | The sequence (set) of characters to test against. |
Description
StrNScan returns the length of the consecutive characters in S1, from the start of the string, which do not appear in S2. In other words: StrNScan returns the length of the longest sequence in S1 for which the predicate "not (S1^ in S2)" holds true if S2 were to be considered a set of characters. As an example consider S1 to hold 'Project JEDI' and S2 to hold 'abcdef'. Calling StrNScan with these parameters will return 4 since the fifth character, an 'e', appears in S2.
See Also
StrRNScan
About
Unit
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