textSplit

textSplit (text -- characterList)

Inputs

Outputs

textSplit splits known non-NIL Text by decoded UTF-8 characters. Byte counts are provided by textSize.

Splitting is by decoded UTF-8 characters, not by raw bytes. Empty Text yields the empty Tuple (). Nonempty Text yields a List of one-character Text items.

Example

{} () {} [
  "" textSplit printStack _:;
  "你好" textSplit printStack _:;
] "main" exportFunction

Expected Output During Compilation

()
("你" "好")

See also