Unicode.IndicSyllabicCategory (Unicode v1.12.0) View Source

Functions to introspect Unicode indic syllabic categories for binaries (Strings) and codepoints.

Link to this section Summary

Functions

Returns a map of aliases for Unicode indic syllabic categorys.

Returns the count of the number of characters for a given indic syllabic category.

Returns the Unicode ranges for a given indic syllabic category as a list of ranges as 2-tuples.

Returns the Unicode ranges for a given indic syllabic category as a list of ranges as 2-tuples.

Returns the map of Unicode indic syllabic categorys.

Returns the indic syllabic category name(s) for the given binary or codepoint.

Returns a list of known Unicode indic syllabic category names.

Link to this section Functions

Returns a map of aliases for Unicode indic syllabic categorys.

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

Link to this function

count(indic_syllabic_category)

View Source

Returns the count of the number of characters for a given indic syllabic category.

Example

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

fetch(indic_syllabic_category)

View Source

Returns the Unicode ranges for a given indic syllabic 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(indic_syllabic_category)

View Source

Returns the Unicode ranges for a given indic syllabic 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

indic_syllabic_categories()

View Source

Returns the map of Unicode indic syllabic categorys.

The indic syllabic category name is the map key and a list of codepoint ranges as tuples as the value.

Link to this function

indic_syllabic_category(string)

View Source

Returns the indic syllabic category name(s) for the given binary or codepoint.

In the case of a codepoint, a single indic syllabic category name is returned.

For a binary a list of distinct indic syllabic category names represented by the lines in the binary is returned.

Link to this function

known_indic_syllabic_categories()

View Source

Returns a list of known Unicode indic syllabic category names.

This function does not return the names of any indic syllabic category aliases.