codepoints-to-string
Creates a string from a sequence of Unicode code points
Description
The fn:codepoints-to-string function creates a string from a sequence of Unicode code points. The $arg argument is a sequence of integers representing Unicode code point values.
Parameters |
Description |
|---|---|
arg:integer() |
a sequence of Unicode code points |
Examples
XPath |
Results |
|---|---|
codepoints-to-string((97, 32, 98, 32, 99)) |
a b c |
codepoints-to-string(97) |
a |
codepoints-to-string(()) |
zero-length string |
In a generator
Copy the snippet below and paste it in Freemapper, under a language node inside the generators element. Each line of the pattern prints the result of one example; to see them, run mi generate <project> <language> example-codepoints-to-string.
[e] example-codepoints-to-string
[e] start
[e] match
[v] /
[e] body
[e] write-pattern
[v] examples
[e] patterns
[e] examples
[v] E01: {{ codepoints-to-string((97, 32, 98, 32, 99)) }}
[v] E02: {{ codepoints-to-string(97) }}
[v] E03: {{ codepoints-to-string(()) }}