Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Understanding Data Types and Field Properties
  3. Designing Processes
  4. Using and Displaying Data
  5. Designing Guides
  6. Designing Process Objects
  7. Designing Service Connectors
  8. Using App Connections
  9. System Services, Listeners and Connectors
  10. Designing Human Tasks

Design

Design

codepoint-equal

codepoint-equal

The codepoint-equal function in XQuery is used to compare two strings to determine if they are equal based on their Unicode code points. It checks if two strings are identical without considering any advanced collation rules.

Syntax

fn:codepoint-equal(comparand1, comparand2)
The following table describes the argument for this command:
Argument
Required/Optional
Description
comparand1
Required
The first string to compare. It can be an actual string or an empty sequence (
()
).
comparand2
Required
The second string to compare. It can also be an actual string or an empty sequence (
()
).

Return Value

  • Boolean.
  • Returns
    true
    or
    false
    depending on whether the value of
    $comparand1
    is equal to the value of
    $comparand2
    , according to the Unicode code point collation.
  • Returns an empty sequence if either input is an empty sequence.

Examples

The following table lists some sample values and return values:
SAMPLE FUNCTION
OUTPUT
fn:codepoint-equal('abc', 'abc')
true
fn:codepoint-equal('abc', 'ab c')
false
fn:codepoint-equal('abc', ())
()
fn:codepoint-equal((), ())
()
fn:codepoint-equal("hello", "world")
false
fn:codepoint-equal("hello", "")
false

0 COMMENTS

We’d like to hear from you!