Loading TOC...

MarkLogic 12 EA 2 Product Documentation
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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.