Char (original) (raw)

Represents a 16-bit Unicode character.

Since Kotlin

1.0

Represents a 16-bit Unicode character.

Since Kotlin

1.1

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.0

Represents a 16-bit Unicode character.

Since Kotlin

1.3

Represents a 16-bit Unicode character.

Since Kotlin

1.8

Represents a 16-bit Unicode character.

Since Kotlin

1.8

Constructors

Types

Properties

Returns the Unicode general category of this character.

Returns the Unicode general category of this character.

Returns the Unicode general category of this character.

Returns the Unicode general category of this character.

Returns the Unicode general category of this character.

Returns the Unicode general category of this character.

Returns the code of this Char.

Returns the Unicode directionality property for the given character.

Functions

Compares this value with the specified value for order.

Compares this value with the specified value for order.

Compares this value with the specified value for order.

actual open operator external override fun compareTo(other: Char): Int

Compares this value with the specified value for order.

Compares this value with the specified value for order.

Compares this value with the specified value for order.

Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other.

expect operator fun dec(): Char

Returns this value decremented by one.

actual operator fun dec(): Char

Returns this value decremented by one.

Returns this value decremented by one.

actual operator external fun dec(): Char

Returns this value decremented by one.

actual inline operator fun dec(): Char

Returns this value decremented by one.

actual inline operator fun dec(): Char

Returns this value decremented by one.

Returns the numeric value of the decimal digit that this Char represents. Throws an exception if this Char is not a valid decimal digit.

Returns the numeric value of the digit that this Char represents in the specified radix. Throws an exception if the radix is not in the range 2..36 or if this Char is not a valid digit in the specified radix.

Returns the numeric value of the decimal digit that this Char represents, or null if this Char is not a valid decimal digit.

Returns the numeric value of the digit that this Char represents in the specified radix, or null if this Char is not a valid digit in the specified radix. Throws an exception if the radix is not in the range 2..36.

Returns a progression from this value down to and including the specified to value with the step -1.

Returns true if this character is equal to the other character, optionally ignoring character case.

expect operator fun inc(): Char

Returns this value incremented by one.

actual operator fun inc(): Char

Returns this value incremented by one.

Returns this value incremented by one.

actual operator external fun inc(): Char

Returns this value incremented by one.

actual inline operator fun inc(): Char

Returns this value incremented by one.

actual inline operator fun inc(): Char

Returns this value incremented by one.

Returns true if this character (Unicode code point) is defined in Unicode.

Returns true if this character (Unicode code point) is defined in Unicode.

Returns true if this character (Unicode code point) is defined in Unicode.

Returns true if this character (Unicode code point) is defined in Unicode.

Returns true if this character (Unicode code point) is defined in Unicode.

Returns true if this character (Unicode code point) is defined in Unicode.

Returns true if this character is a digit.

Returns true if this character is a digit.

Returns true if this character is a digit.

Returns true if this character is a digit.

Returns true if this character is a digit.

Returns true if this character is a digit.

Returns true if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).

Returns true if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).

Returns true if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).

Returns true if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).

Returns true if this character is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).

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 is an ISO control character.

Returns true if this character is an ISO control character.

Returns true if this character is an ISO control character.

Returns true if this character is an ISO control character.

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.

Returns true if this character is a letter.

Returns true if this character is a letter.

Returns true if this character is a letter.

Returns true if this character is a letter.

Returns true if this character is a letter.

Returns true if this character is a letter or digit.

Returns true if this character is a letter or digit.

Returns true if this character is a letter or digit.

Returns true if this character is a letter or digit.

Returns true if this character is a letter or digit.

Returns true if this character is a letter or digit.

Returns true if this character is lower case.

Returns true if this character is lower case.

Returns true if this character is lower case.

Returns true if this character is lower case.

Returns true if this character is lower case.

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 low-surrogate code unit (also known as trailing-surrogate code unit).

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 low-surrogate code unit (also known as trailing-surrogate code unit).

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 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 title case letter.

Returns true if this character is a title case letter.

Returns true if this character is a title case letter.

Returns true if this character is a title case letter.

Returns true if this character is a title case letter.

Returns true if this character is a title case letter.

Returns true if this character is upper case.

Returns true if this character is upper case.

Returns true if this character is upper case.

Returns true if this character is upper case.

Returns true if this character is upper case.

Returns true if this character is upper case.

Determines whether a character is whitespace.

Determines whether a character is whitespace.

Determines whether a character is whitespace.

Determines whether a character is whitespace.

Determines whether a character is whitespace.

Determines whether a character is whitespace.

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 lower case using Unicode mapping rules of the invariant locale.

Converts this character to lower case using Unicode mapping rules of the specified locale.

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 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 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 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 lower case using Unicode mapping rules of the invariant locale.

Subtracts the other Char value from this value resulting an Int.

Subtracts the other Int value from this value resulting a Char.

Subtracts the other Char value from this value resulting an Int.

Subtracts the other Int value from this value resulting a Char.

Subtracts the other Char value from this value resulting an Int.

Subtracts the other Int value from this value resulting a Char.

actual inline operator fun minus(other: Char): Int

Subtracts the other Char value from this value resulting an Int.

actual inline operator fun minus(other: Int): Char

Subtracts the other Int value from this value resulting a Char.

actual inline operator fun minus(other: Char): Int

Subtracts the other Char value from this value resulting an Int.

actual inline operator fun minus(other: Int): Char

Subtracts the other Int value from this value resulting a Char.

actual inline operator fun minus(other: Char): Int

Subtracts the other Char value from this value resulting an Int.

actual inline operator fun minus(other: Int): Char

Subtracts the other Int value from this value resulting a Char.

Adds the other Int value to this value resulting a Char.

Adds the other Int value to this value resulting a Char.

Adds the other Int value to this value resulting a Char.

actual inline operator fun plus(other: Int): Char

Adds the other Int value to this value resulting a Char.

actual inline operator fun plus(other: Int): Char

Adds the other Int value to this value resulting a Char.

actual inline operator fun plus(other: Int): Char

Adds the other Int value to this value resulting a Char.

Concatenates this Char and a String.

Creates a range from this value to the specified other value.

Creates a range from this value to the specified other value.

Creates a range from this value to the specified other value.

Creates a range from this value to the specified other value.

Creates a range from this value to the specified other value.

Creates a range from this value to the specified other value.

Creates a range from this value up to but excluding the specified other value.

Creates a range from this value up to but excluding the specified other value.

Creates a range from this value up to but excluding the specified other value.

Creates a range from this value up to but excluding the specified other value.

Creates a range from this value up to but excluding the specified other value.

Creates a range from this value up to but excluding the specified other value.

Converts this character to title case using Unicode mapping rules of the invariant locale.

Converts this character to title case using Unicode mapping rules of the specified locale.

Converts this character to title 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 title 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 title case using Unicode mapping rules of the invariant locale.

Converts this character to title case using Unicode mapping rules of the invariant locale.

Returns the value of this character as a Byte.

Returns the value of this character as a Byte.

Returns the value of this character as a Byte.

Returns the value of this character as a Byte.

Returns the value of this character as a Byte.

Returns the value of this character as a Byte.

Returns the value of this character as a Char.

Returns the value of this character as a Char.

Returns the value of this character as a Char.

Returns the value of this character as a Char.

Returns the value of this character as a Char.

Returns the value of this character as a Char.

Returns the value of this character as a Double.

Returns the value of this character as a Double.

Returns the value of this character as a Double.

Returns the value of this character as a Double.

Returns the value of this character as a Double.

Returns the value of this character as a Double.

Returns the value of this character as a Float.

Returns the value of this character as a Float.

Returns the value of this character as a Float.

Returns the value of this character as a Float.

Returns the value of this character as a Float.

Returns the value of this character as a Float.

Returns the value of this character as a Int.

Returns the value of this character as a Int.

Returns the value of this character as a Int.

Returns the value of this character as a Int.

Returns the value of this character as a Int.

Returns the value of this character as a Int.

Returns the value of this character as a Long.

Returns the value of this character as a Long.

Returns the value of this character as a Long.

Returns the value of this character as a Long.

Returns the value of this character as a Long.

Returns the value of this character as a Long.

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 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 lower case using Unicode mapping rules of the invariant locale.

Converts this character to lower case using Unicode mapping rules of the invariant locale.

Returns the value of this character as a Short.

Returns the value of this character as a Short.

Returns the value of this character as a Short.

Returns the value of this character as a Short.

Returns the value of this character as a Short.

Returns the value of this character as a Short.

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.

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.

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.

Returns a range from this value up to but excluding the specified to value.

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.

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 specified 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.

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.

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.

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.

Converts this character to upper case using Unicode mapping rules of the invariant locale.