functx:reverse-string
Reverses the order of characters
Description
The functx:reverse-string function reverses the order of characters in a string. It returns a zero-length string if the argument is the empty sequence.
Parameters |
Description |
---|---|
arg:string() |
the string to reverse |
Examples
XPath |
Results |
---|---|
functx:reverse-string(‘abc’) |
cba |
functx:reverse-string(‘a’) |
a |