View Source unicode_util (stdlib v6.0)

Summary

Types

-type gc() :: char() | [char()].

Functions

-spec cp(String :: unicode:chardata()) -> maybe_improper_list() | {error, unicode:chardata()}.
-spec gc(String :: unicode:chardata()) -> maybe_improper_list() | {error, unicode:chardata()}.
-spec get_case(char()) -> #{fold := gc(), lower := gc(), title := gc(), upper := gc()}.
-spec is_whitespace(gc()) -> boolean().
-spec is_wide(gc()) -> boolean().
-spec lookup(char()) ->
          #{canon := [{byte(), char()}],
            ccc := byte(),
            compat := [] | {atom(), [{byte(), char()}]},
            category := {atom(), atom()}}.
-spec whitespace() -> [gc()].