View Source Unicode.String.Segment (Unicode String v1.4.1)

Implements the compilation of the Unicode segment rules.

Summary

Functions

Returns a list of the ancestor locales of the a given locale.

Compiles a segment rule in the context of a list of variables.

Evaluates a list of rules against a given string.

Identifies if a codepoint is a valid identifier character

Identifies if a codepoint is a valid start of an identifier

Returns a list of the known locales that have segmentation data.

Return the rules as defined by CLDR for a given locale and break type.

Return the rules as defined by CLDR for a given locale and break type and raises on error.

Returns a list of the suppressions for a given locale and segment type.

Returns a list of the suppressions for a given locale and segment type and raises on error.

Functions

Returns a list of the ancestor locales of the a given locale.

The list includes the given locale.

Link to this function

compile_rule(rule, variables, regex_options \\ [])

View Source

Compiles a segment rule in the context of a list of variables.

The compile rule can then be inserted into a rule set.

Link to this function

compile_rules(rules, variables, regex_options)

View Source
Link to this function

evaluate_rules(string, rules)

View Source

Evaluates a list of rules against a given string.

Link to this function

expand_variables(variables, additional_variables)

View Source
Link to this macro

is_id_continue(char)

View Source (macro)

Identifies if a codepoint is a valid identifier character

Link to this macro

is_id_start(char)

View Source (macro)

Identifies if a codepoint is a valid start of an identifier

Link to this function

known_segmentation_locales()

View Source

Returns a list of the known locales that have segmentation data.

Link to this function

rules(locale, segment_type, additional_variables \\ [])

View Source

Return the rules as defined by CLDR for a given locale and break type.

Link to this function

rules!(locale, segment_type, additional_variables \\ [])

View Source

Return the rules as defined by CLDR for a given locale and break type and raises on error.

Link to this function

suppressions(locale, segment_type)

View Source

Returns a list of the suppressions for a given locale and segment type.

Link to this function

suppressions!(locale, segment_type)

View Source

Returns a list of the suppressions for a given locale and segment type and raises on error.