is_assigned_char
is_assigned_char(c) -> Bool
Returns true
if the given char or integer is an assigned Unicode code point.
Examples
julia> is_assigned_char('a')
true
julia> is_assigned_char(42)
true
julia> is_assigned_char('\U0001F600')
true
julia> is_assigned_char(0x00A9)
true
julia> is_assigned_char('❤')
true
julia> is_assigned_char(0x1F1FA)
true
julia> is_assigned_char(0x123456)
false
julia> is_assigned_char(' ')
true
In the examples above, is_assigned_char
is used to determine whether a given character or integer represents an assigned Unicode code point. It returns true
if the character or integer corresponds to an assigned Unicode code point and false
otherwise.
Some common examples include:
-
Check if a character is assigned:
julia> is_assigned_char('a') true
-
Check if an integer is assigned:
julia> is_assigned_char(42) true
-
Check if a Unicode character is assigned:
julia> is_assigned_char('\U0001F600') true
-
Check if a Unicode code point is assigned:
julia> is_assigned_char(0x00A9) true
-
Check if a Unicode emoji is assigned:
julia> is_assigned_char('❤') true
-
Check if a Unicode regional indicator symbol is assigned:
julia> is_assigned_char(0x1F1FA) true
-
Check if an unassigned Unicode code point is assigned:
julia> is_assigned_char(0x123456) false
- Check if a space character is assigned:
julia> is_assigned_char(' ') true
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.