TinyMUX

Graphemes()

Functions

Description

FUNCTION: graphemes(<string>[, <osep>])

Explodes a string into its individual grapheme clusters. Color codes are stripped before processing. The default output separator is a space.

A grapheme cluster represents what a user would perceive as a single character, which may consist of multiple Unicode codepoints.

Examples

> say graphemes(hello)

You say, “h e l l o”

> say graphemes(hello, |)

You say, “h|e|l|l|o”

chr(), mid(), ord(), strlen(), tr()