Skip to main content
Skip table of contents

(v13) AnchorSearch in HqnCompare

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

Determines if seek matches the initial substring of string (i.e., string is at least as long as seek and the corresponding characters match. Comparisons are case-sensitive.

                string seek AnchorSearch post match true
                string seek AnchorSearch string false

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

If a match is found AnchorSearch returns true , and two strings are returned: match is the portion of string which corresponds to seek , and post is the remainder of string .

If no match is found AnchorSearch returns false , together with the original string .

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.