Unicode.math-question-mark
You're seeing just the function
math-question-mark
, go back to Unicode module for more information.
Specs
math?(codepoint_or_string()) :: boolean()
Returns true
if a single Unicode codepoint (or all characters
in the given string) the category :Sm
otherwise returns false
.
These are all characters whose primary usage is in mathematical concepts (and not in alphabets). Notice that the numerical digits are not part of this group.
Arguments
codepoint_or_string
is a single integer codepoint or aString.t
.
Returns
true
orfalse
For the string-version, the result will be true only if all codepoints in the string adhere to the property.
Examples
iex> Unicode.math?(?=)
true
iex> Unicode.math?("=")
true
iex> Unicode.math?("1+1=2") # Digits do not have the `:math` property.
false
iex> Unicode.math?("परिस")
false
iex> Unicode.math?("∑") # Summation, \u2211
true
iex> Unicode.math?("Σ") # Greek capital letter sigma, \u03a3
false