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:

  1. Check if a character is assigned:

    julia> is_assigned_char('a')
    true
  2. Check if an integer is assigned:

    julia> is_assigned_char(42)
    true
  3. Check if a Unicode character is assigned:

    julia> is_assigned_char('\U0001F600')
    true
  4. Check if a Unicode code point is assigned:

    julia> is_assigned_char(0x00A9)
    true
  5. Check if a Unicode emoji is assigned:

    julia> is_assigned_char('❤')
    true
  6. Check if a Unicode regional indicator symbol is assigned:

    julia> is_assigned_char(0x1F1FA)
    true
  7. Check if an unassigned Unicode code point is assigned:

    julia> is_assigned_char(0x123456)
    false
  8. 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.

*Required Field
Details

Checking you are not a robot: