Unicode.alphabetic-question-mark
You're seeing just the function
alphabetic-question-mark
, go back to Unicode module for more information.
Specs
alphabetic?(codepoint_or_string()) :: boolean()
Returns true
if a single Unicode codepoint (or all characters in the
given string) adhere to the Derived Core Property Alphabetic
otherwise returns false
.
These are all characters that are usually used as representations of letters/syllabes in words/sentences.
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.alphabetic?(?a)
true
iex> Unicode.alphabetic?("A")
true
iex> Unicode.alphabetic?("Elixir")
true
iex> Unicode.alphabetic?("الإكسير")
true
# comma and whitespace
iex> Unicode.alphabetic?("foo, bar")
false
iex> Unicode.alphabetic?("42")
false
iex> Unicode.alphabetic?("龍王")
true
# Summation, ∑
iex> Unicode.alphabetic?("∑")
false
# Greek capital letter sigma, Σ
iex> Unicode.alphabetic?("Σ")
true