codepoints-to-string function

The fn:codepoints-to-string function returns the string equivalent of a sequence of Unicode code points.

Syntax

Read syntax diagramSkip visual syntax diagramfn:codepoints-to-string( codepoint-sequence)
codepoint-sequence
A sequence of integers that correspond to Unicode code points, or the empty sequence.

Returned value

If codepoint-sequence is not the empty sequence, the returned value is a string that is the concatenation of the character equivalents of the items in codepoint-sequence. If any item in codepoint-sequence is not a valid Unicode code point, an error is returned.

If codepoint-sequence is the empty sequence, the returned value is a string of length 0.

Example

The following function returns the character equivalent of the sequence of UTF-8 code points (88,81,117,101,114,121).
fn:codepoints-to-string((88,81,117,101,114,121))

The returned value is 'XQuery'.