JCL Help:StrRNScanW

From Project JEDI Wiki
Jump to navigationJump to search


Summary

StrRNScan returns the length of the consecutive characters from the end of S1 which do not appear in S2.


Pascal

 function StrRNScanW(const Str1: PWideChar; const Str2: PWideChar): SizeInt;


Parameters

Parameters Description
S1 Pointer to the end of the source string which must have have a #0 character at the start.
S2 The sequence (set) of characters to test against.


Description

StrRNScanW is identical to StrNScanW with 2 small differences. The first one is that the number of consecutive characters at the END of S1 is returned (not from the start). Secondly, S1 is traversed in backward direction, so it should point to the end of the actual string to be determined and there should a #0 character at the beginning of S1 to terminate the loop. S2 is used as it is in StrNScanW and points to the beginning of a sequence of characters. This function is useful for buffers which contain a string in reversed order. This is often the case for macro buffers which get the content of a string a single character at a time, ending with #0 which is then at the physical start of the string.


See Also

StrNScan


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