Char
Definitions
Get the primitive Char value from its object representation, i.e., java.lang.Character.
This function is expected to be used when marshaling Chars from Java. Generally in Flix
code you should not need to use java.lang.Character.
Returns the integer value Char c represents with respect to radix. E.g.
digit(radix = 10, '1') => Some(1)
digit(radix = 16, 'a') => Some(11)
Returns None if c does not represent a number.
Returns a character representation of the integer n with respect to radix. E.g.
forDigit(radix = 10, 1) => Some('1')
forDigit(radix = 16, 11) => Some('a')
Returns None if n is not representable as single character in the radix.
Returns the integer value the Char c represents (e.g. '1' => Some(1)``) or Noneifc` does not represent a number.
This function cannot handle supplementary characters.
Returns true if the given char c is strictly in the range of ASCII digits 0...9.
Returns true if the given char c is defined either as a entry in the
UnicodeData file or a value within a range defined in the UnicodeData file.
Returns true if the given char c is a recognized Unicode digit.
This includes the ASCII range 0..9 but also Arabic-Indic digits, Devagari digits and Fullwidth digits.
Returns true if the given char c is in the range 0...9, A...F, or a...f.
Returns true if the given char c is an ISO control character.
Returns true if the given char c is a recognized Unicode letter or digit.
Returns true if the given characters high and low represent a valid
Unicode surrogate pair.
Returns true if the given char c is titlecase, i.e. in the Unicode
category of title case letters.
Converts a letter to its lowercase version.
Returns the original character if it does not have a lowercase version.
Returns the supplementary code point value of the surrogate pair high and low.
Caution - this function does no validation, use isSurrogatePair to check high and low are valid.
Converts a letter to its titlecase version.
Returns the original character if it does not have either a titlecase version or a mapping to uppercase.
Converts a letter to its uppercase version.
Returns the original character if it does not have a uppercase version.