Loading TOC...

fn.codepointEqual

fn.codepointEqual(
   $comparand1 as String?,
   $comparand2 as String?
) as Boolean?

Summary

Returns true if the specified parameters are the same Unicode code point, otherwise returns false. The codepoints are compared according to the Unicode code point collation (http://www.w3.org/2005/xpath-functions/collation/codepoint).

If either argument is the empty sequence, the result is the empty sequence.

Parameters
$comparand1 A string to be compared.
$comparand2 A string to be compared.

Example

var cp = fn.stringToCodepoints("123456");
fn.codepointEqual("123456", fn.codepointsToString(cp) );

=> true

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy