functx:chars

Converts a string to a sequence of characters

Description

The functx:chars function splits a string into individual characters and returns them as a sequence of strings of length 1 each.

Parameters

Description

arg:string()

the string to split

Examples

XPath

Results

functx:chars(‘abc’)

(‘a’, ‘b’, ‘c’)

functx:chars(‘a b c’)

(‘a’, ‘ ‘, ‘b’, ‘ ‘, ‘c’)

See Also