Unicode.EastAsianWidth (Unicode v1.12.0) View Source

Functions to introspect Unicode east asian width categories for binaries (Strings) and codepoints.

Link to this section Summary

Functions

Returns a map of aliases for Unicode east asian width categorys.

Returns the count of the number of characters for a given east asian width category.

Returns the map of Unicode east asian width categorys.

Returns the east asian width category name(s) for the given binary or codepoint.

Returns the Unicode ranges for a given east asian width category as a list of ranges as 2-tuples.

Returns the Unicode ranges for a given east asian width category as a list of ranges as 2-tuples.

Returns a list of known Unicode east asian width category names.

Link to this section Functions

Returns a map of aliases for Unicode east asian width categorys.

An alias is an alternative name for referring to a east asian width category. Aliases are resolved by the fetch/1 and get/1 functions.

Link to this function

count(east_asian_width_category)

View Source

Returns the count of the number of characters for a given east asian width category.

Example

iex> Unicode.IndicSyllabicCategory.count(:bindu)
91
Link to this function

east_asian_width_categories()

View Source

Returns the map of Unicode east asian width categorys.

The east asian width category name is the map key and a list of codepoint ranges as tuples as the value.

Link to this function

east_asian_width_category(string)

View Source

Returns the east asian width category name(s) for the given binary or codepoint.

In the case of a codepoint, a single east asian width category name is returned.

For a binary a list of distinct east asian width category names represented by the lines in the binary is returned.

Link to this function

fetch(east_asian_width_category)

View Source

Returns the Unicode ranges for a given east asian width category as a list of ranges as 2-tuples.

Aliases are resolved by this function.

Returns either {:ok, range_list} or :error.

Link to this function

get(east_asian_width_category)

View Source

Returns the Unicode ranges for a given east asian width category as a list of ranges as 2-tuples.

Aliases are resolved by this function.

Returns either range_list or nil.

Link to this function

known_east_asian_width_categories()

View Source

Returns a list of known Unicode east asian width category names.

This function does not return the names of any east asian width category aliases.