Char
Represents a 16-bit Unicode character.
On the JVM, non-nullable values of this type are represented as values of the primitive type char
.
Since Kotlin
1.1Represents a 16-bit Unicode character.
On the JVM, non-nullable values of this type are represented as values of the primitive type char
.
Since Kotlin
1.0Types
Properties
Functions
Returns true
if this character is equal to the other character, optionally ignoring character case.
Returns true
if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
Returns true
if this character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
Returns true
if this character is an ISO control character.
Returns true
if this character (Unicode code point) may be part of a Java identifier as other than the first character.
Returns true
if this character is permissible as the first character in a Java identifier.
Returns true
if this character is a letter or digit.
Returns true
if this character is lower case.
Returns true
if this character is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
Returns true
if this character is a Unicode surrogate code unit.
Returns true
if this character is a Unicode surrogate code unit.
Returns true
if this character is a title case letter.
Returns true
if this character is upper case.
Determines whether a character is whitespace according to the Unicode standard. Returns true
if the character is whitespace.
Determines whether a character is whitespace according to the Unicode standard. Returns true
if the character is whitespace.
Subtracts the other Char value from this value resulting an Int.
Subtracts the other Int value from this value resulting a Char.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Converts this character to lower case using Unicode mapping rules of the invariant locale.
Converts this character to title case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.
Converts this character to upper case using Unicode mapping rules of the invariant locale.