<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/fn.codepointEqual.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>fn.codepointEqual</api:function-name><api:suggest>fn.codepointequal</api:suggest><api:suggest>fn</api:suggest><api:suggest>codepointequal</api:suggest><api:function-link mode="xquery" fullname="fn:codepoint-equal">/apidoc/8.0/fn:codepoint-equal.xml</api:function-link><api:function mode="javascript" name="codepointEqual" type="builtin" lib="fn" category="StringBuiltins" bucket="W3C-Standard Functions" hidden="false" prefix="fn" namespace="http://www.w3.org/2005/xpath-functions" fullname="fn.codepointEqual"><api:summary>
<p xmlns="http://www.w3.org/1999/xhtml">
Returns <code>true</code> if the specified parameters are the same Unicode
code point, otherwise returns <code>false</code>. The codepoints are
compared according to the Unicode code point collation
(<a href="http://www.w3.org/2005/xpath-functions/collation/codepoint">http://www.w3.org/2005/xpath-functions/collation/codepoint</a>).
</p>
<p xmlns="http://www.w3.org/1999/xhtml">
If either argument is the empty sequence, the result is the empty sequence.
</p>
</api:summary><api:params><api:param name="comparand1" type="xs:string?"><api:param-description>
A string to be compared.
  </api:param-description><api:param-name>comparand1</api:param-name><api:param-type>String?</api:param-type></api:param><api:param name="comparand2" type="xs:string?"><api:param-description>
A string to be compared.
  </api:param-description><api:param-name>comparand2</api:param-name><api:param-type>String?</api:param-type></api:param></api:params><api:return>Boolean?</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var cp = fn.stringToCodepoints("123456");
fn.codepointEqual("123456", fn.codepointsToString(cp) );

=&gt; true
</pre>
</api:example></api:function></api:function-page>