StrEqual in HqnCompare


This page applies to Harlequin v13.1r0 and later; both Harlequin Core and Harlequin MultiRIP


Compares two strings case-sensitively, returning true if they are equivalent.

str1 str2 StrEqual bool

Initially str1 and str2 are compared byte-for-byte, and if they are equal StrEqual returns true .

If str1 and str2 are not byte-for-byte identical, and if str2 is a valid UTF-8 encoded string, further comparisons are performed for which str1 is interpreted as either being (a) in a Unicode encoding (if it begins with a Unicode byte order mark byte sequence), or as being (b) in each of the encodings provided by HqnLocal’s /GetJobEncodings procedure. The comparisons include normalizing any Unicode strings. If any match is found StrEqual returns true .

If no match is found StrEqual returns false .