Description
The fn:codepoint-equal function determines whether the two string arguments have the same Unicode code points, in the same order. This is similar to calling the fn:compare function with the simple collation http://www.w3.org/2005/xpath-functions/collation/codepoint .
This description is © Copyright 2007, Priscilla Walmsley. It is excerpted from the book XQuery by Priscilla Walmsley, O'Reilly, 2007. For a complete explanation of this function, please refer to Appendix A of the book. Arguments and Return TypeName | Type | Description |
$comparand1 |
xs:string? |
the first string to compare |
$comparand2 |
xs:string? |
the second string to compare |
return value |
xs:boolean? |
ExamplesXPath Example | Results |
---|
codepoint-equal('abc', 'abc') |
true |
codepoint-equal('abc', 'ab c') |
false |
codepoint-equal('abc', ()) |
() |
See AlsoHistory |
Recommended Reading:
|