Char
classin packageklyn
public class Char implements ValueType:
Char
All Implemented Interfaces: ValueType

Represents a single Unicode character value.

letter = Char('a')
assert Char.toUpper(letter) == 'A'
Constructors
Modifier and Type Member Description
public native Char Builds the neutral Char value ('\0').
public native Char
Char(value: Char)
Creates a Char from another Char value.
public native Char
Char(value: Int)
Creates a Char from a signed integer code point.
public native Char
Char(value: Long)
Creates a Char from a signed long code point.
public native Char
Char(value: UInt)
Creates a Char from an unsigned integer code point.
public native Char
Char(value: ULong)
Creates a Char from an unsigned long code point.
Methods
Modifier and Type Member Description
public native static isAlnum
isAlnum(value as Char) as Boolean
Determines whether a character is alphabetic or a digit.
public native static isAlpha
isAlpha(value as Char) as Boolean
Determines whether a character belongs to a Unicode alphabetic class.
public native static isDigit
isDigit(value as Char) as Boolean
Determines whether a character is a Unicode digit.
public native toInt
toInt() as Int
Returns the Unicode code point of this character.
public native static toLower
toLower(value as Char) as Char
Converts a character to lowercase when a lowercase mapping exists.
public native static toUpper
toUpper(value as Char) as Char
Converts a character to uppercase when an uppercase mapping exists.