Unicode.Property (Unicode v1.12.0) View Source

Functions to introspect Unicode properties for binaries (Strings) and codepoints.

Link to this section Summary

Functions

Returns a map of aliases for Unicode blocks.

Returns :alphabetic or nil indicating if the codepoint or string has the property :alphabetic.

Returns a boolean indicating if the codepoint or string has the property :alphabetic.

Returns :alphanumeric or nil based upon whether the given codepoint or binary is all alphanumeric characters.

Returns a boolean based upon whether the given codepoint or binary is all alphanumeric characters.

Returns :ascii_hex_digit or nil indicating if the codepoint or string has the property :ascii_hex_digit.

Returns a boolean indicating if the codepoint or string has the property :ascii_hex_digit.

Returns :bidi_control or nil indicating if the codepoint or string has the property :bidi_control.

Returns a boolean indicating if the codepoint or string has the property :bidi_control.

Returns :case_ignorable or nil indicating if the codepoint or string has the property :case_ignorable.

Returns a boolean indicating if the codepoint or string has the property :case_ignorable.

Returns :cased or nil indicating if the codepoint or string has the property :cased.

Returns a boolean indicating if the codepoint or string has the property :cased.

Returns :changes_when_casefolded or nil indicating if the codepoint or string has the property :changes_when_casefolded.

Returns a boolean indicating if the codepoint or string has the property :changes_when_casefolded.

Returns :changes_when_casemapped or nil indicating if the codepoint or string has the property :changes_when_casemapped.

Returns a boolean indicating if the codepoint or string has the property :changes_when_casemapped.

Returns :changes_when_lowercased or nil indicating if the codepoint or string has the property :changes_when_lowercased.

Returns a boolean indicating if the codepoint or string has the property :changes_when_lowercased.

Returns :changes_when_titlecased or nil indicating if the codepoint or string has the property :changes_when_titlecased.

Returns a boolean indicating if the codepoint or string has the property :changes_when_titlecased.

Returns :changes_when_uppercased or nil indicating if the codepoint or string has the property :changes_when_uppercased.

Returns a boolean indicating if the codepoint or string has the property :changes_when_uppercased.

Returns the count of the number of characters for a given property.

Returns :dash or nil indicating if the codepoint or string has the property :dash.

Returns a boolean indicating if the codepoint or string has the property :dash.

Returns :default_ignorable_code_point or nil indicating if the codepoint or string has the property :default_ignorable_code_point.

Returns a boolean indicating if the codepoint or string has the property :default_ignorable_code_point.

Returns :deprecated or nil indicating if the codepoint or string has the property :deprecated.

Returns a boolean indicating if the codepoint or string has the property :deprecated.

Returns :diacritic or nil indicating if the codepoint or string has the property :diacritic.

Returns a boolean indicating if the codepoint or string has the property :diacritic.

Returns :emoji or nil indicating if the codepoint or string has the property :emoji.

Returns a boolean indicating if the codepoint or string has the property :emoji.

Returns :emoji_component or nil indicating if the codepoint or string has the property :emoji_component.

Returns a boolean indicating if the codepoint or string has the property :emoji_component.

Returns :emoji_modifier or nil indicating if the codepoint or string has the property :emoji_modifier.

Returns a boolean indicating if the codepoint or string has the property :emoji_modifier.

Returns :emoji_modifier_base or nil indicating if the codepoint or string has the property :emoji_modifier_base.

Returns a boolean indicating if the codepoint or string has the property :emoji_modifier_base.

Returns :emoji_presentation or nil indicating if the codepoint or string has the property :emoji_presentation.

Returns a boolean indicating if the codepoint or string has the property :emoji_presentation.

Returns :extended_numeric or nil based upon whether the given codepoint or binary is all alphanumeric characters.

Returns a boolean based upon whether the given codepoint or binary is all numberic characters.

Returns :extended_pictographic or nil indicating if the codepoint or string has the property :extended_pictographic.

Returns a boolean indicating if the codepoint or string has the property :extended_pictographic.

Returns :extender or nil indicating if the codepoint or string has the property :extender.

Returns a boolean indicating if the codepoint or string has the property :extender.

Returns the Unicode ranges for a given block as a list of ranges as 2-tuples.

Returns the Unicode ranges for a given block as a list of ranges as 2-tuples.

Returns :grapheme_base or nil indicating if the codepoint or string has the property :grapheme_base.

Returns a boolean indicating if the codepoint or string has the property :grapheme_base.

Returns :grapheme_extend or nil indicating if the codepoint or string has the property :grapheme_extend.

Returns a boolean indicating if the codepoint or string has the property :grapheme_extend.

Returns :grapheme_link or nil indicating if the codepoint or string has the property :grapheme_link.

Returns a boolean indicating if the codepoint or string has the property :grapheme_link.

Returns :hex_digit or nil indicating if the codepoint or string has the property :hex_digit.

Returns a boolean indicating if the codepoint or string has the property :hex_digit.

Returns :hyphen or nil indicating if the codepoint or string has the property :hyphen.

Returns a boolean indicating if the codepoint or string has the property :hyphen.

Returns :id_continue or nil indicating if the codepoint or string has the property :id_continue.

Returns a boolean indicating if the codepoint or string has the property :id_continue.

Returns :id_start or nil indicating if the codepoint or string has the property :id_start.

Returns a boolean indicating if the codepoint or string has the property :id_start.

Returns :ideographic or nil indicating if the codepoint or string has the property :ideographic.

Returns a boolean indicating if the codepoint or string has the property :ideographic.

Returns :ids_binary_operator or nil indicating if the codepoint or string has the property :ids_binary_operator.

Returns a boolean indicating if the codepoint or string has the property :ids_binary_operator.

Returns :ids_trinary_operator or nil indicating if the codepoint or string has the property :ids_trinary_operator.

Returns a boolean indicating if the codepoint or string has the property :ids_trinary_operator.

Returns :join_control or nil indicating if the codepoint or string has the property :join_control.

Returns a boolean indicating if the codepoint or string has the property :join_control.

Returns a list of known Unicode property names.

Returns :logical_order_exception or nil indicating if the codepoint or string has the property :logical_order_exception.

Returns a boolean indicating if the codepoint or string has the property :logical_order_exception.

Returns :lowercase or nil indicating if the codepoint or string has the property :lowercase.

Returns a boolean indicating if the codepoint or string has the property :lowercase.

Returns :math or nil indicating if the codepoint or string has the property :math.

Returns a boolean indicating if the codepoint or string has the property :math.

Returns :noncharacter_code_point or nil indicating if the codepoint or string has the property :noncharacter_code_point.

Returns a boolean indicating if the codepoint or string has the property :noncharacter_code_point.

Returns :numeric or nil based upon whether the given codepoint or binary is all numeric characters.

Returns a boolean based upon whether the given codepoint or binary is all numeric characters.

Returns :other_alphabetic or nil indicating if the codepoint or string has the property :other_alphabetic.

Returns a boolean indicating if the codepoint or string has the property :other_alphabetic.

Returns :other_default_ignorable_code_point or nil indicating if the codepoint or string has the property :other_default_ignorable_code_point.

Returns a boolean indicating if the codepoint or string has the property :other_default_ignorable_code_point.

Returns :other_grapheme_extend or nil indicating if the codepoint or string has the property :other_grapheme_extend.

Returns a boolean indicating if the codepoint or string has the property :other_grapheme_extend.

Returns :other_id_continue or nil indicating if the codepoint or string has the property :other_id_continue.

Returns a boolean indicating if the codepoint or string has the property :other_id_continue.

Returns :other_id_start or nil indicating if the codepoint or string has the property :other_id_start.

Returns a boolean indicating if the codepoint or string has the property :other_id_start.

Returns :other_lowercase or nil indicating if the codepoint or string has the property :other_lowercase.

Returns a boolean indicating if the codepoint or string has the property :other_lowercase.

Returns :other_math or nil indicating if the codepoint or string has the property :other_math.

Returns a boolean indicating if the codepoint or string has the property :other_math.

Returns :other_uppercase or nil indicating if the codepoint or string has the property :other_uppercase.

Returns a boolean indicating if the codepoint or string has the property :other_uppercase.

Returns :pattern_syntax or nil indicating if the codepoint or string has the property :pattern_syntax.

Returns a boolean indicating if the codepoint or string has the property :pattern_syntax.

Returns :pattern_white_space or nil indicating if the codepoint or string has the property :pattern_white_space.

Returns a boolean indicating if the codepoint or string has the property :pattern_white_space.

Returns :prepended_concatenation_mark or nil indicating if the codepoint or string has the property :prepended_concatenation_mark.

Returns a boolean indicating if the codepoint or string has the property :prepended_concatenation_mark.

Returns the map of Unicode properties.

Returns the property name(s) for the given binary or codepoint.

Returns :quotation_mark or nil indicating if the codepoint or string has the property :quotation_mark.

Returns a boolean indicating if the codepoint or string has the property :quotation_mark.

Returns :radical or nil indicating if the codepoint or string has the property :radical.

Returns a boolean indicating if the codepoint or string has the property :radical.

Returns :regional_indicator or nil indicating if the codepoint or string has the property :regional_indicator.

Returns a boolean indicating if the codepoint or string has the property :regional_indicator.

Returns :sentence_terminal or nil indicating if the codepoint or string has the property :sentence_terminal.

Returns a boolean indicating if the codepoint or string has the property :sentence_terminal.

Returns a map of properties to the module that serves that property.

Returns :soft_dotted or nil indicating if the codepoint or string has the property :soft_dotted.

Returns a boolean indicating if the codepoint or string has the property :soft_dotted.

Returns :terminal_punctuation or nil indicating if the codepoint or string has the property :terminal_punctuation.

Returns a boolean indicating if the codepoint or string has the property :terminal_punctuation.

Returns :unified_ideograph or nil indicating if the codepoint or string has the property :unified_ideograph.

Returns a boolean indicating if the codepoint or string has the property :unified_ideograph.

Returns :uppercase or nil indicating if the codepoint or string has the property :uppercase.

Returns a boolean indicating if the codepoint or string has the property :uppercase.

Returns :variation_selector or nil indicating if the codepoint or string has the property :variation_selector.

Returns a boolean indicating if the codepoint or string has the property :variation_selector.

Returns :white_space or nil indicating if the codepoint or string has the property :white_space.

Returns a boolean indicating if the codepoint or string has the property :white_space.

Returns :xid_continue or nil indicating if the codepoint or string has the property :xid_continue.

Returns a boolean indicating if the codepoint or string has the property :xid_continue.

Returns :xid_start or nil indicating if the codepoint or string has the property :xid_start.

Returns a boolean indicating if the codepoint or string has the property :xid_start.

Link to this section Types

Specs

string_or_codepoint() :: String.t() | non_neg_integer()

Link to this section Functions

Returns a map of aliases for Unicode blocks.

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

Returns :alphabetic or nil indicating if the codepoint or string has the property :alphabetic.

For string parameters, all codepoints in the string must have the :alphabetic property in order for the result to :alphabetic.

Returns a boolean indicating if the codepoint or string has the property :alphabetic.

For string parameters, all codepoints in the string must have the :alphabetic property in order for the result to be true.

Link to this function

alphanumeric(codepoint_or_binary)

View Source

Returns :alphanumeric or nil based upon whether the given codepoint or binary is all alphanumeric characters.

This is useful when the desired result is truthy or falsy

Example

iex> Unicode.Property.alphanumeric "123abc"
:alphanumeric
iex> Unicode.Property.alphanumeric "???"
nil
Link to this function

alphanumeric?(codepoint_or_binary)

View Source

Returns a boolean based upon whether the given codepoint or binary is all alphanumeric characters.

Example

iex> Unicode.Property.alphanumeric? "123abc"
true
iex> Unicode.Property.alphanumeric? "⅔"
false
Link to this function

ascii_hex_digit(codepoint)

View Source

Returns :ascii_hex_digit or nil indicating if the codepoint or string has the property :ascii_hex_digit.

For string parameters, all codepoints in the string must have the :ascii_hex_digit property in order for the result to :ascii_hex_digit.

Link to this function

ascii_hex_digit?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :ascii_hex_digit.

For string parameters, all codepoints in the string must have the :ascii_hex_digit property in order for the result to be true.

Returns :bidi_control or nil indicating if the codepoint or string has the property :bidi_control.

For string parameters, all codepoints in the string must have the :bidi_control property in order for the result to :bidi_control.

Link to this function

bidi_control?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :bidi_control.

For string parameters, all codepoints in the string must have the :bidi_control property in order for the result to be true.

Link to this function

case_ignorable(codepoint)

View Source

Returns :case_ignorable or nil indicating if the codepoint or string has the property :case_ignorable.

For string parameters, all codepoints in the string must have the :case_ignorable property in order for the result to :case_ignorable.

Link to this function

case_ignorable?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :case_ignorable.

For string parameters, all codepoints in the string must have the :case_ignorable property in order for the result to be true.

Returns :cased or nil indicating if the codepoint or string has the property :cased.

For string parameters, all codepoints in the string must have the :cased property in order for the result to :cased.

Returns a boolean indicating if the codepoint or string has the property :cased.

For string parameters, all codepoints in the string must have the :cased property in order for the result to be true.

Link to this function

changes_when_casefolded(codepoint)

View Source

Returns :changes_when_casefolded or nil indicating if the codepoint or string has the property :changes_when_casefolded.

For string parameters, all codepoints in the string must have the :changes_when_casefolded property in order for the result to :changes_when_casefolded.

Link to this function

changes_when_casefolded?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :changes_when_casefolded.

For string parameters, all codepoints in the string must have the :changes_when_casefolded property in order for the result to be true.

Link to this function

changes_when_casemapped(codepoint)

View Source

Returns :changes_when_casemapped or nil indicating if the codepoint or string has the property :changes_when_casemapped.

For string parameters, all codepoints in the string must have the :changes_when_casemapped property in order for the result to :changes_when_casemapped.

Link to this function

changes_when_casemapped?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :changes_when_casemapped.

For string parameters, all codepoints in the string must have the :changes_when_casemapped property in order for the result to be true.

Link to this function

changes_when_lowercased(codepoint)

View Source

Returns :changes_when_lowercased or nil indicating if the codepoint or string has the property :changes_when_lowercased.

For string parameters, all codepoints in the string must have the :changes_when_lowercased property in order for the result to :changes_when_lowercased.

Link to this function

changes_when_lowercased?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :changes_when_lowercased.

For string parameters, all codepoints in the string must have the :changes_when_lowercased property in order for the result to be true.

Link to this function

changes_when_titlecased(codepoint)

View Source

Returns :changes_when_titlecased or nil indicating if the codepoint or string has the property :changes_when_titlecased.

For string parameters, all codepoints in the string must have the :changes_when_titlecased property in order for the result to :changes_when_titlecased.

Link to this function

changes_when_titlecased?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :changes_when_titlecased.

For string parameters, all codepoints in the string must have the :changes_when_titlecased property in order for the result to be true.

Link to this function

changes_when_uppercased(codepoint)

View Source

Returns :changes_when_uppercased or nil indicating if the codepoint or string has the property :changes_when_uppercased.

For string parameters, all codepoints in the string must have the :changes_when_uppercased property in order for the result to :changes_when_uppercased.

Link to this function

changes_when_uppercased?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :changes_when_uppercased.

For string parameters, all codepoints in the string must have the :changes_when_uppercased property in order for the result to be true.

Returns the count of the number of characters for a given property.

Example

iex> Unicode.Property.count(:lowercase)
2471

Returns :dash or nil indicating if the codepoint or string has the property :dash.

For string parameters, all codepoints in the string must have the :dash property in order for the result to :dash.

Returns a boolean indicating if the codepoint or string has the property :dash.

For string parameters, all codepoints in the string must have the :dash property in order for the result to be true.

Link to this function

default_ignorable_code_point(codepoint)

View Source

Returns :default_ignorable_code_point or nil indicating if the codepoint or string has the property :default_ignorable_code_point.

For string parameters, all codepoints in the string must have the :default_ignorable_code_point property in order for the result to :default_ignorable_code_point.

Link to this function

default_ignorable_code_point?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :default_ignorable_code_point.

For string parameters, all codepoints in the string must have the :default_ignorable_code_point property in order for the result to be true.

Returns :deprecated or nil indicating if the codepoint or string has the property :deprecated.

For string parameters, all codepoints in the string must have the :deprecated property in order for the result to :deprecated.

Returns a boolean indicating if the codepoint or string has the property :deprecated.

For string parameters, all codepoints in the string must have the :deprecated property in order for the result to be true.

Returns :diacritic or nil indicating if the codepoint or string has the property :diacritic.

For string parameters, all codepoints in the string must have the :diacritic property in order for the result to :diacritic.

Returns a boolean indicating if the codepoint or string has the property :diacritic.

For string parameters, all codepoints in the string must have the :diacritic property in order for the result to be true.

Returns :emoji or nil indicating if the codepoint or string has the property :emoji.

For string parameters, all codepoints in the string must have the :emoji property in order for the result to :emoji.

Returns a boolean indicating if the codepoint or string has the property :emoji.

For string parameters, all codepoints in the string must have the :emoji property in order for the result to be true.

Link to this function

emoji_component(codepoint)

View Source

Returns :emoji_component or nil indicating if the codepoint or string has the property :emoji_component.

For string parameters, all codepoints in the string must have the :emoji_component property in order for the result to :emoji_component.

Link to this function

emoji_component?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :emoji_component.

For string parameters, all codepoints in the string must have the :emoji_component property in order for the result to be true.

Link to this function

emoji_modifier(codepoint)

View Source

Returns :emoji_modifier or nil indicating if the codepoint or string has the property :emoji_modifier.

For string parameters, all codepoints in the string must have the :emoji_modifier property in order for the result to :emoji_modifier.

Link to this function

emoji_modifier?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :emoji_modifier.

For string parameters, all codepoints in the string must have the :emoji_modifier property in order for the result to be true.

Link to this function

emoji_modifier_base(codepoint)

View Source

Returns :emoji_modifier_base or nil indicating if the codepoint or string has the property :emoji_modifier_base.

For string parameters, all codepoints in the string must have the :emoji_modifier_base property in order for the result to :emoji_modifier_base.

Link to this function

emoji_modifier_base?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :emoji_modifier_base.

For string parameters, all codepoints in the string must have the :emoji_modifier_base property in order for the result to be true.

Link to this function

emoji_presentation(codepoint)

View Source

Returns :emoji_presentation or nil indicating if the codepoint or string has the property :emoji_presentation.

For string parameters, all codepoints in the string must have the :emoji_presentation property in order for the result to :emoji_presentation.

Link to this function

emoji_presentation?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :emoji_presentation.

For string parameters, all codepoints in the string must have the :emoji_presentation property in order for the result to be true.

Link to this function

extended_numeric(codepoint_or_binary)

View Source

Returns :extended_numeric or nil based upon whether the given codepoint or binary is all alphanumeric characters.

Extended numberic includes fractions, superscripts, subscripts and other characters in the category No.

This is useful when the desired result is truthy or falsy

Example

iex> Unicode.Property.extended_numeric "123"
:extended_numeric
iex> Unicode.Property.extended_numeric "⅔"
:extended_numeric
iex> Unicode.Property.extended_numeric "-123"
nil
Link to this function

extended_numeric?(codepoint_or_binary)

View Source

Returns a boolean based upon whether the given codepoint or binary is all numberic characters.

Example

iex> Unicode.Property.extended_numeric? "123" true iex> Unicode.Property.extended_numeric? "⅔" true

Link to this function

extended_pictographic(codepoint)

View Source

Returns :extended_pictographic or nil indicating if the codepoint or string has the property :extended_pictographic.

For string parameters, all codepoints in the string must have the :extended_pictographic property in order for the result to :extended_pictographic.

Link to this function

extended_pictographic?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :extended_pictographic.

For string parameters, all codepoints in the string must have the :extended_pictographic property in order for the result to be true.

Returns :extender or nil indicating if the codepoint or string has the property :extender.

For string parameters, all codepoints in the string must have the :extender property in order for the result to :extender.

Returns a boolean indicating if the codepoint or string has the property :extender.

For string parameters, all codepoints in the string must have the :extender property in order for the result to be true.

Returns the Unicode ranges for a given block as a list of ranges as 2-tuples.

Aliases are resolved by this function.

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

Returns the Unicode ranges for a given block as a list of ranges as 2-tuples.

Aliases are resolved by this function.

Returns either range_list or nil.

Link to this function

grapheme_base(codepoint)

View Source

Returns :grapheme_base or nil indicating if the codepoint or string has the property :grapheme_base.

For string parameters, all codepoints in the string must have the :grapheme_base property in order for the result to :grapheme_base.

Link to this function

grapheme_base?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :grapheme_base.

For string parameters, all codepoints in the string must have the :grapheme_base property in order for the result to be true.

Link to this function

grapheme_extend(codepoint)

View Source

Returns :grapheme_extend or nil indicating if the codepoint or string has the property :grapheme_extend.

For string parameters, all codepoints in the string must have the :grapheme_extend property in order for the result to :grapheme_extend.

Link to this function

grapheme_extend?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :grapheme_extend.

For string parameters, all codepoints in the string must have the :grapheme_extend property in order for the result to be true.

Link to this function

grapheme_link(codepoint)

View Source

Returns :grapheme_link or nil indicating if the codepoint or string has the property :grapheme_link.

For string parameters, all codepoints in the string must have the :grapheme_link property in order for the result to :grapheme_link.

Link to this function

grapheme_link?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :grapheme_link.

For string parameters, all codepoints in the string must have the :grapheme_link property in order for the result to be true.

Returns :hex_digit or nil indicating if the codepoint or string has the property :hex_digit.

For string parameters, all codepoints in the string must have the :hex_digit property in order for the result to :hex_digit.

Returns a boolean indicating if the codepoint or string has the property :hex_digit.

For string parameters, all codepoints in the string must have the :hex_digit property in order for the result to be true.

Returns :hyphen or nil indicating if the codepoint or string has the property :hyphen.

For string parameters, all codepoints in the string must have the :hyphen property in order for the result to :hyphen.

Returns a boolean indicating if the codepoint or string has the property :hyphen.

For string parameters, all codepoints in the string must have the :hyphen property in order for the result to be true.

Returns :id_continue or nil indicating if the codepoint or string has the property :id_continue.

For string parameters, all codepoints in the string must have the :id_continue property in order for the result to :id_continue.

Returns a boolean indicating if the codepoint or string has the property :id_continue.

For string parameters, all codepoints in the string must have the :id_continue property in order for the result to be true.

Returns :id_start or nil indicating if the codepoint or string has the property :id_start.

For string parameters, all codepoints in the string must have the :id_start property in order for the result to :id_start.

Returns a boolean indicating if the codepoint or string has the property :id_start.

For string parameters, all codepoints in the string must have the :id_start property in order for the result to be true.

Returns :ideographic or nil indicating if the codepoint or string has the property :ideographic.

For string parameters, all codepoints in the string must have the :ideographic property in order for the result to :ideographic.

Returns a boolean indicating if the codepoint or string has the property :ideographic.

For string parameters, all codepoints in the string must have the :ideographic property in order for the result to be true.

Link to this function

ids_binary_operator(codepoint)

View Source

Returns :ids_binary_operator or nil indicating if the codepoint or string has the property :ids_binary_operator.

For string parameters, all codepoints in the string must have the :ids_binary_operator property in order for the result to :ids_binary_operator.

Link to this function

ids_binary_operator?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :ids_binary_operator.

For string parameters, all codepoints in the string must have the :ids_binary_operator property in order for the result to be true.

Link to this function

ids_trinary_operator(codepoint)

View Source

Returns :ids_trinary_operator or nil indicating if the codepoint or string has the property :ids_trinary_operator.

For string parameters, all codepoints in the string must have the :ids_trinary_operator property in order for the result to :ids_trinary_operator.

Link to this function

ids_trinary_operator?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :ids_trinary_operator.

For string parameters, all codepoints in the string must have the :ids_trinary_operator property in order for the result to be true.

Returns :join_control or nil indicating if the codepoint or string has the property :join_control.

For string parameters, all codepoints in the string must have the :join_control property in order for the result to :join_control.

Link to this function

join_control?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :join_control.

For string parameters, all codepoints in the string must have the :join_control property in order for the result to be true.

Returns a list of known Unicode property names.

This function does not return the names of any property aliases.

Link to this function

logical_order_exception(codepoint)

View Source

Returns :logical_order_exception or nil indicating if the codepoint or string has the property :logical_order_exception.

For string parameters, all codepoints in the string must have the :logical_order_exception property in order for the result to :logical_order_exception.

Link to this function

logical_order_exception?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :logical_order_exception.

For string parameters, all codepoints in the string must have the :logical_order_exception property in order for the result to be true.

Returns :lowercase or nil indicating if the codepoint or string has the property :lowercase.

For string parameters, all codepoints in the string must have the :lowercase property in order for the result to :lowercase.

Returns a boolean indicating if the codepoint or string has the property :lowercase.

For string parameters, all codepoints in the string must have the :lowercase property in order for the result to be true.

Returns :math or nil indicating if the codepoint or string has the property :math.

For string parameters, all codepoints in the string must have the :math property in order for the result to :math.

Returns a boolean indicating if the codepoint or string has the property :math.

For string parameters, all codepoints in the string must have the :math property in order for the result to be true.

Link to this function

noncharacter_code_point(codepoint)

View Source

Returns :noncharacter_code_point or nil indicating if the codepoint or string has the property :noncharacter_code_point.

For string parameters, all codepoints in the string must have the :noncharacter_code_point property in order for the result to :noncharacter_code_point.

Link to this function

noncharacter_code_point?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :noncharacter_code_point.

For string parameters, all codepoints in the string must have the :noncharacter_code_point property in order for the result to be true.

Link to this function

numeric(codepoint_or_binary)

View Source

Returns :numeric or nil based upon whether the given codepoint or binary is all numeric characters.

This is useful when the desired result is truthy or falsy

Example

iex> Unicode.Property.numeric "123"
:numeric
iex> Unicode.Property.numeric "123a"
nil

Returns a boolean based upon whether the given codepoint or binary is all numeric characters.

Example

iex> Unicode.Property.numeric? "123"
true
iex> Unicode.Property.numeric? "123a"
false
Link to this function

other_alphabetic(codepoint)

View Source

Returns :other_alphabetic or nil indicating if the codepoint or string has the property :other_alphabetic.

For string parameters, all codepoints in the string must have the :other_alphabetic property in order for the result to :other_alphabetic.

Link to this function

other_alphabetic?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_alphabetic.

For string parameters, all codepoints in the string must have the :other_alphabetic property in order for the result to be true.

Link to this function

other_default_ignorable_code_point(codepoint)

View Source

Returns :other_default_ignorable_code_point or nil indicating if the codepoint or string has the property :other_default_ignorable_code_point.

For string parameters, all codepoints in the string must have the :other_default_ignorable_code_point property in order for the result to :other_default_ignorable_code_point.

Link to this function

other_default_ignorable_code_point?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_default_ignorable_code_point.

For string parameters, all codepoints in the string must have the :other_default_ignorable_code_point property in order for the result to be true.

Link to this function

other_grapheme_extend(codepoint)

View Source

Returns :other_grapheme_extend or nil indicating if the codepoint or string has the property :other_grapheme_extend.

For string parameters, all codepoints in the string must have the :other_grapheme_extend property in order for the result to :other_grapheme_extend.

Link to this function

other_grapheme_extend?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_grapheme_extend.

For string parameters, all codepoints in the string must have the :other_grapheme_extend property in order for the result to be true.

Link to this function

other_id_continue(codepoint)

View Source

Returns :other_id_continue or nil indicating if the codepoint or string has the property :other_id_continue.

For string parameters, all codepoints in the string must have the :other_id_continue property in order for the result to :other_id_continue.

Link to this function

other_id_continue?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_id_continue.

For string parameters, all codepoints in the string must have the :other_id_continue property in order for the result to be true.

Link to this function

other_id_start(codepoint)

View Source

Returns :other_id_start or nil indicating if the codepoint or string has the property :other_id_start.

For string parameters, all codepoints in the string must have the :other_id_start property in order for the result to :other_id_start.

Link to this function

other_id_start?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_id_start.

For string parameters, all codepoints in the string must have the :other_id_start property in order for the result to be true.

Link to this function

other_lowercase(codepoint)

View Source

Returns :other_lowercase or nil indicating if the codepoint or string has the property :other_lowercase.

For string parameters, all codepoints in the string must have the :other_lowercase property in order for the result to :other_lowercase.

Link to this function

other_lowercase?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_lowercase.

For string parameters, all codepoints in the string must have the :other_lowercase property in order for the result to be true.

Returns :other_math or nil indicating if the codepoint or string has the property :other_math.

For string parameters, all codepoints in the string must have the :other_math property in order for the result to :other_math.

Returns a boolean indicating if the codepoint or string has the property :other_math.

For string parameters, all codepoints in the string must have the :other_math property in order for the result to be true.

Link to this function

other_uppercase(codepoint)

View Source

Returns :other_uppercase or nil indicating if the codepoint or string has the property :other_uppercase.

For string parameters, all codepoints in the string must have the :other_uppercase property in order for the result to :other_uppercase.

Link to this function

other_uppercase?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :other_uppercase.

For string parameters, all codepoints in the string must have the :other_uppercase property in order for the result to be true.

Link to this function

pattern_syntax(codepoint)

View Source

Returns :pattern_syntax or nil indicating if the codepoint or string has the property :pattern_syntax.

For string parameters, all codepoints in the string must have the :pattern_syntax property in order for the result to :pattern_syntax.

Link to this function

pattern_syntax?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :pattern_syntax.

For string parameters, all codepoints in the string must have the :pattern_syntax property in order for the result to be true.

Link to this function

pattern_white_space(codepoint)

View Source

Returns :pattern_white_space or nil indicating if the codepoint or string has the property :pattern_white_space.

For string parameters, all codepoints in the string must have the :pattern_white_space property in order for the result to :pattern_white_space.

Link to this function

pattern_white_space?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :pattern_white_space.

For string parameters, all codepoints in the string must have the :pattern_white_space property in order for the result to be true.

Link to this function

prepended_concatenation_mark(codepoint)

View Source

Returns :prepended_concatenation_mark or nil indicating if the codepoint or string has the property :prepended_concatenation_mark.

For string parameters, all codepoints in the string must have the :prepended_concatenation_mark property in order for the result to :prepended_concatenation_mark.

Link to this function

prepended_concatenation_mark?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :prepended_concatenation_mark.

For string parameters, all codepoints in the string must have the :prepended_concatenation_mark property in order for the result to be true.

Returns the map of Unicode properties.

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

Specs

properties(string_or_codepoint()) :: [atom(), ...] | [[atom(), ...], ...]

Returns the property name(s) for the given binary or codepoint.

In the case of a codepoint, a single list of properties for that codepoint name is returned.

For a binary a list of list for each codepoint in the binary is returned.

Link to this function

quotation_mark(codepoint)

View Source

Returns :quotation_mark or nil indicating if the codepoint or string has the property :quotation_mark.

For string parameters, all codepoints in the string must have the :quotation_mark property in order for the result to :quotation_mark.

Link to this function

quotation_mark?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :quotation_mark.

For string parameters, all codepoints in the string must have the :quotation_mark property in order for the result to be true.

Returns :radical or nil indicating if the codepoint or string has the property :radical.

For string parameters, all codepoints in the string must have the :radical property in order for the result to :radical.

Returns a boolean indicating if the codepoint or string has the property :radical.

For string parameters, all codepoints in the string must have the :radical property in order for the result to be true.

Link to this function

regional_indicator(codepoint)

View Source

Returns :regional_indicator or nil indicating if the codepoint or string has the property :regional_indicator.

For string parameters, all codepoints in the string must have the :regional_indicator property in order for the result to :regional_indicator.

Link to this function

regional_indicator?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :regional_indicator.

For string parameters, all codepoints in the string must have the :regional_indicator property in order for the result to be true.

Link to this function

sentence_terminal(codepoint)

View Source

Returns :sentence_terminal or nil indicating if the codepoint or string has the property :sentence_terminal.

For string parameters, all codepoints in the string must have the :sentence_terminal property in order for the result to :sentence_terminal.

Link to this function

sentence_terminal?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :sentence_terminal.

For string parameters, all codepoints in the string must have the :sentence_terminal property in order for the result to be true.

Returns a map of properties to the module that serves that property.

Returns :soft_dotted or nil indicating if the codepoint or string has the property :soft_dotted.

For string parameters, all codepoints in the string must have the :soft_dotted property in order for the result to :soft_dotted.

Returns a boolean indicating if the codepoint or string has the property :soft_dotted.

For string parameters, all codepoints in the string must have the :soft_dotted property in order for the result to be true.

Link to this function

terminal_punctuation(codepoint)

View Source

Returns :terminal_punctuation or nil indicating if the codepoint or string has the property :terminal_punctuation.

For string parameters, all codepoints in the string must have the :terminal_punctuation property in order for the result to :terminal_punctuation.

Link to this function

terminal_punctuation?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :terminal_punctuation.

For string parameters, all codepoints in the string must have the :terminal_punctuation property in order for the result to be true.

Link to this function

unified_ideograph(codepoint)

View Source

Returns :unified_ideograph or nil indicating if the codepoint or string has the property :unified_ideograph.

For string parameters, all codepoints in the string must have the :unified_ideograph property in order for the result to :unified_ideograph.

Link to this function

unified_ideograph?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :unified_ideograph.

For string parameters, all codepoints in the string must have the :unified_ideograph property in order for the result to be true.

Returns :uppercase or nil indicating if the codepoint or string has the property :uppercase.

For string parameters, all codepoints in the string must have the :uppercase property in order for the result to :uppercase.

Returns a boolean indicating if the codepoint or string has the property :uppercase.

For string parameters, all codepoints in the string must have the :uppercase property in order for the result to be true.

Link to this function

variation_selector(codepoint)

View Source

Returns :variation_selector or nil indicating if the codepoint or string has the property :variation_selector.

For string parameters, all codepoints in the string must have the :variation_selector property in order for the result to :variation_selector.

Link to this function

variation_selector?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :variation_selector.

For string parameters, all codepoints in the string must have the :variation_selector property in order for the result to be true.

Returns :white_space or nil indicating if the codepoint or string has the property :white_space.

For string parameters, all codepoints in the string must have the :white_space property in order for the result to :white_space.

Returns a boolean indicating if the codepoint or string has the property :white_space.

For string parameters, all codepoints in the string must have the :white_space property in order for the result to be true.

Returns :xid_continue or nil indicating if the codepoint or string has the property :xid_continue.

For string parameters, all codepoints in the string must have the :xid_continue property in order for the result to :xid_continue.

Link to this function

xid_continue?(codepoint)

View Source

Returns a boolean indicating if the codepoint or string has the property :xid_continue.

For string parameters, all codepoints in the string must have the :xid_continue property in order for the result to be true.

Returns :xid_start or nil indicating if the codepoint or string has the property :xid_start.

For string parameters, all codepoints in the string must have the :xid_start property in order for the result to :xid_start.

Returns a boolean indicating if the codepoint or string has the property :xid_start.

For string parameters, all codepoints in the string must have the :xid_start property in order for the result to be true.