String.next_grapheme_size

You're seeing just the function next_grapheme_size, go back to String module for more information.
Link to this function

next_grapheme_size(string)

View Source

Specs

next_grapheme_size(t()) :: {pos_integer(), t()} | nil

Returns the size (in bytes) of the next grapheme.

The result is a tuple with the next grapheme size in bytes and the remainder of the string or nil in case the string reached its end.

Examples

iex> String.next_grapheme_size("olá")
{1, "lá"}

iex> String.next_grapheme_size("")
nil