Char

expect class Char : Comparable<Char> (source)

Represents a 16-bit Unicode character.

Since Kotlin

1.0
actual class Char : Comparable<Char> (source)

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
actual class Char : Comparable<Char> (source)

Represents a 16-bit Unicode character.

Since Kotlin

1.3
actual class Char : Comparable<Char> (source)

Represents a 16-bit Unicode character.

Since Kotlin

1.8
actual class Char : Comparable<Char> (source)

Represents a 16-bit Unicode character.

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor(code: UShort)

Types

Link copied to clipboard
expect object Companion
Since Kotlin 1.0
actual object Companion
Since Kotlin 1.1
object Companion
Since Kotlin 1.0
actual object Companion
Since Kotlin 1.3
actual object Companion
Since Kotlin 1.8
actual object Companion
Since Kotlin 1.8

Properties

Link copied to clipboard

Returns the Unicode general category of this character.

Since Kotlin 1.5

Returns the Unicode general category of this character.

Since Kotlin 1.5

Returns the Unicode general category of this character.

Since Kotlin 1.0

Returns the Unicode general category of this character.

Since Kotlin 1.3

Returns the Unicode general category of this character.

Since Kotlin 1.8

Returns the Unicode general category of this character.

Since Kotlin 1.8
Link copied to clipboard

Returns the code of this Char.

Since Kotlin 1.5
Link copied to clipboard

Returns the Unicode directionality property for the given character.

Since Kotlin 1.0

Functions

Link copied to clipboard
expect open operator override fun compareTo(other: Char): Int

Compares this value with the specified value for order.

Since Kotlin 1.0
actual open operator override fun compareTo(other: Char): Int

Compares this value with the specified value for order.

Since Kotlin 1.1
open operator override fun compareTo(other: Char): Int

Compares this value with the specified value for order.

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

Compares this value with the specified value for order.

Since Kotlin 1.3
actual open operator override fun compareTo(other: Char): Int

Compares this value with the specified value for order.

Since Kotlin 1.8
actual open operator override fun compareTo(other: Char): Int

Compares this value with the specified value for order.

Since Kotlin 1.8
Link copied to clipboard
infix inline fun <T> Comparable<T>.compareTo(other: T): Int

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.

Since Kotlin 1.6
Link copied to clipboard
expect operator fun dec(): Char

Returns this value decremented by one.

Since Kotlin 1.0
actual operator fun dec(): Char

Returns this value decremented by one.

Since Kotlin 1.1
operator fun dec(): Char

Returns this value decremented by one.

Since Kotlin 1.0
actual operator external fun dec(): Char

Returns this value decremented by one.

Since Kotlin 1.3
actual inline operator fun dec(): Char

Returns this value decremented by one.

Since Kotlin 1.8
actual inline operator fun dec(): Char

Returns this value decremented by one.

Since Kotlin 1.8
Link copied to clipboard

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

Since Kotlin 1.5
fun Char.digitToInt(radix: Int): Int

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.

Since Kotlin 1.5
Link copied to clipboard

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

Since Kotlin 1.5

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.

Since Kotlin 1.5
Link copied to clipboard

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

Since Kotlin 1.0
Link copied to clipboard
expect open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.0
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.1
open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.0
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.3
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.8
actual open operator override fun equals(other: Any?): Boolean
Since Kotlin 1.8
Link copied to clipboard
fun Char.equals(other: Char, ignoreCase: Boolean = false): Boolean

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

Since Kotlin 1.0
Link copied to clipboard
expect open override fun hashCode(): Int
Since Kotlin 1.0
actual open override fun hashCode(): Int
Since Kotlin 1.1
open override fun hashCode(): Int
Since Kotlin 1.0
actual open override fun hashCode(): Int
Since Kotlin 1.3
actual open override fun hashCode(): Int
Since Kotlin 1.8
actual open override fun hashCode(): Int
Since Kotlin 1.8
Link copied to clipboard
expect operator fun inc(): Char

Returns this value incremented by one.

Since Kotlin 1.0
actual operator fun inc(): Char

Returns this value incremented by one.

Since Kotlin 1.1
operator fun inc(): Char

Returns this value incremented by one.

Since Kotlin 1.0
actual operator external fun inc(): Char

Returns this value incremented by one.

Since Kotlin 1.3
actual inline operator fun inc(): Char

Returns this value incremented by one.

Since Kotlin 1.8
actual inline operator fun inc(): Char

Returns this value incremented by one.

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.isDefined(): Boolean

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

Since Kotlin 1.5
actual fun Char.isDefined(): Boolean

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

Since Kotlin 1.5
actual inline fun Char.isDefined(): Boolean

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

Since Kotlin 1.0
actual fun Char.isDefined(): Boolean

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

Since Kotlin 1.3
actual fun Char.isDefined(): Boolean

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

Since Kotlin 1.8
actual fun Char.isDefined(): Boolean

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

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.isDigit(): Boolean

Returns true if this character is a digit.

Since Kotlin 1.5
actual fun Char.isDigit(): Boolean

Returns true if this character is a digit.

Since Kotlin 1.5
actual inline fun Char.isDigit(): Boolean

Returns true if this character is a digit.

Since Kotlin 1.0
actual fun Char.isDigit(): Boolean

Returns true if this character is a digit.

Since Kotlin 1.3
actual fun Char.isDigit(): Boolean

Returns true if this character is a digit.

Since Kotlin 1.8
actual fun Char.isDigit(): Boolean

Returns true if this character is a digit.

Since Kotlin 1.8
Link copied to clipboard

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

Since Kotlin 1.0

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

Since Kotlin 1.1
actual inline fun Char.isHighSurrogate(): Boolean

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

Since Kotlin 1.0
actual external fun Char.isHighSurrogate(): Boolean

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

Since Kotlin 1.3

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

Since Kotlin 1.8

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

Since Kotlin 1.8
Link copied to clipboard

Returns true if this character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.

Since Kotlin 1.0
Link copied to clipboard
expect fun Char.isISOControl(): Boolean

Returns true if this character is an ISO control character.

Since Kotlin 1.5
actual fun Char.isISOControl(): Boolean

Returns true if this character is an ISO control character.

Since Kotlin 1.5
actual inline fun Char.isISOControl(): Boolean

Returns true if this character is an ISO control character.

Since Kotlin 1.0
actual external fun Char.isISOControl(): Boolean

Returns true if this character is an ISO control character.

Since Kotlin 1.3
actual fun Char.isISOControl(): Boolean

Returns true if this character is an ISO control character.

Since Kotlin 1.8
actual fun Char.isISOControl(): Boolean

Returns true if this character is an ISO control character.

Since Kotlin 1.8
Link copied to clipboard

Returns true if this character (Unicode code point) may be part of a Java identifier as other than the first character.

Since Kotlin 1.0
Link copied to clipboard

Returns true if this character is permissible as the first character in a Java identifier.

Since Kotlin 1.0
Link copied to clipboard
expect fun Char.isLetter(): Boolean

Returns true if this character is a letter.

Since Kotlin 1.5
actual fun Char.isLetter(): Boolean

Returns true if this character is a letter.

Since Kotlin 1.5
actual inline fun Char.isLetter(): Boolean

Returns true if this character is a letter.

Since Kotlin 1.0
actual fun Char.isLetter(): Boolean

Returns true if this character is a letter.

Since Kotlin 1.3
actual fun Char.isLetter(): Boolean

Returns true if this character is a letter.

Since Kotlin 1.8
actual fun Char.isLetter(): Boolean

Returns true if this character is a letter.

Since Kotlin 1.8
Link copied to clipboard

Returns true if this character is a letter or digit.

Since Kotlin 1.5

Returns true if this character is a letter or digit.

Since Kotlin 1.5
actual inline fun Char.isLetterOrDigit(): Boolean

Returns true if this character is a letter or digit.

Since Kotlin 1.0

Returns true if this character is a letter or digit.

Since Kotlin 1.3

Returns true if this character is a letter or digit.

Since Kotlin 1.8

Returns true if this character is a letter or digit.

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.isLowerCase(): Boolean

Returns true if this character is lower case.

Since Kotlin 1.5
actual fun Char.isLowerCase(): Boolean

Returns true if this character is lower case.

Since Kotlin 1.5
actual inline fun Char.isLowerCase(): Boolean

Returns true if this character is lower case.

Since Kotlin 1.0
actual fun Char.isLowerCase(): Boolean

Returns true if this character is lower case.

Since Kotlin 1.3
actual fun Char.isLowerCase(): Boolean

Returns true if this character is lower case.

Since Kotlin 1.8
actual fun Char.isLowerCase(): Boolean

Returns true if this character is lower case.

Since Kotlin 1.8
Link copied to clipboard

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

Since Kotlin 1.0

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

Since Kotlin 1.1
actual inline fun Char.isLowSurrogate(): Boolean

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

Since Kotlin 1.0
actual external fun Char.isLowSurrogate(): Boolean

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

Since Kotlin 1.3

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

Since Kotlin 1.8

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

Since Kotlin 1.8
Link copied to clipboard

Returns true if this character is a Unicode surrogate code unit.

Since Kotlin 1.0
Link copied to clipboard
expect fun Char.isTitleCase(): Boolean

Returns true if this character is a title case letter.

Since Kotlin 1.5
actual fun Char.isTitleCase(): Boolean

Returns true if this character is a title case letter.

Since Kotlin 1.5
actual inline fun Char.isTitleCase(): Boolean

Returns true if this character is a title case letter.

Since Kotlin 1.0
actual fun Char.isTitleCase(): Boolean

Returns true if this character is a title case letter.

Since Kotlin 1.5
actual fun Char.isTitleCase(): Boolean

Returns true if this character is a title case letter.

Since Kotlin 1.8
actual fun Char.isTitleCase(): Boolean

Returns true if this character is a title case letter.

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.isUpperCase(): Boolean

Returns true if this character is upper case.

Since Kotlin 1.5
actual fun Char.isUpperCase(): Boolean

Returns true if this character is upper case.

Since Kotlin 1.5
actual inline fun Char.isUpperCase(): Boolean

Returns true if this character is upper case.

Since Kotlin 1.0
actual fun Char.isUpperCase(): Boolean

Returns true if this character is upper case.

Since Kotlin 1.3
actual fun Char.isUpperCase(): Boolean

Returns true if this character is upper case.

Since Kotlin 1.8
actual fun Char.isUpperCase(): Boolean

Returns true if this character is upper case.

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.isWhitespace(): Boolean

Determines whether a character is whitespace.

Since Kotlin 1.0
actual fun Char.isWhitespace(): Boolean

Determines whether a character is whitespace.

Since Kotlin 1.1
actual fun Char.isWhitespace(): Boolean

Determines whether a character is whitespace.

Since Kotlin 1.0
actual fun Char.isWhitespace(): Boolean

Determines whether a character is whitespace.

Since Kotlin 1.3
actual fun Char.isWhitespace(): Boolean

Determines whether a character is whitespace.

Since Kotlin 1.8
actual fun Char.isWhitespace(): Boolean

Determines whether a character is whitespace.

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.lowercase(): String

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

Since Kotlin 1.5
actual inline fun Char.lowercase(): String

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

Since Kotlin 1.5
actual inline fun Char.lowercase(): String

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

Since Kotlin 1.5
fun Char.lowercase(locale: Locale): String

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

Since Kotlin 1.5
actual fun Char.lowercase(): String

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

Since Kotlin 1.5
actual fun Char.lowercase(): String

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

Since Kotlin 1.8
actual fun Char.lowercase(): String

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

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.lowercaseChar(): Char

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

Since Kotlin 1.5
actual inline fun Char.lowercaseChar(): Char

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

Since Kotlin 1.5
actual inline fun Char.lowercaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.lowercaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.lowercaseChar(): Char

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

Since Kotlin 1.8
actual fun Char.lowercaseChar(): Char

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

Since Kotlin 1.8
Link copied to clipboard
expect operator fun minus(other: Char): Int

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

Since Kotlin 1.0
expect operator fun minus(other: Int): Char

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

Since Kotlin 1.0
actual operator fun minus(other: Char): Int

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

Since Kotlin 1.1
actual operator fun minus(other: Int): Char

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

Since Kotlin 1.1
operator fun minus(other: Char): Int

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

Since Kotlin 1.0
operator fun minus(other: Int): Char

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

Since Kotlin 1.0
actual inline operator fun minus(other: Char): Int

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

Since Kotlin 1.3
actual inline operator fun minus(other: Int): Char

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

Since Kotlin 1.3
actual inline operator fun minus(other: Char): Int

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

Since Kotlin 1.8
actual inline operator fun minus(other: Int): Char

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

Since Kotlin 1.8
actual inline operator fun minus(other: Char): Int

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

Since Kotlin 1.8
actual inline operator fun minus(other: Int): Char

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

Since Kotlin 1.8
Link copied to clipboard
expect operator fun plus(other: Int): Char

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

Since Kotlin 1.0
actual operator fun plus(other: Int): Char

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

Since Kotlin 1.1
operator fun plus(other: Int): Char

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

Since Kotlin 1.0
actual inline operator fun plus(other: Int): Char

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

Since Kotlin 1.3
actual inline operator fun plus(other: Int): Char

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

Since Kotlin 1.8
actual inline operator fun plus(other: Int): Char

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

Since Kotlin 1.8
Link copied to clipboard
inline operator fun Char.plus(other: String): String

Concatenates this Char and a String.

Since Kotlin 1.0
Link copied to clipboard
expect operator fun rangeTo(other: Char): CharRange

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

Since Kotlin 1.0
actual operator fun rangeTo(other: Char): CharRange

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

Since Kotlin 1.1
operator fun rangeTo(other: Char): CharRange

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

Since Kotlin 1.0
actual operator fun rangeTo(other: Char): CharRange

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

Since Kotlin 1.3
actual operator fun rangeTo(other: Char): CharRange

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

Since Kotlin 1.8
actual operator fun rangeTo(other: Char): CharRange

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

Since Kotlin 1.8
Link copied to clipboard
expect operator fun rangeUntil(other: Char): CharRange

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

Since Kotlin 1.9
actual operator fun rangeUntil(other: Char): CharRange

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

Since Kotlin 1.9
operator fun rangeUntil(other: Char): CharRange

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

Since Kotlin 1.9
actual operator fun rangeUntil(other: Char): CharRange

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

Since Kotlin 1.9
actual operator fun rangeUntil(other: Char): CharRange

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

Since Kotlin 1.9
actual operator fun rangeUntil(other: Char): CharRange

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

Since Kotlin 1.9
Link copied to clipboard

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

Since Kotlin 1.5
fun Char.titlecase(locale: Locale): String

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

Since Kotlin 1.5
Link copied to clipboard
expect fun Char.titlecaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.titlecaseChar(): Char

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

Since Kotlin 1.5
actual inline fun Char.titlecaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.titlecaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.titlecaseChar(): Char

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

Since Kotlin 1.8
actual fun Char.titlecaseChar(): Char

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

Since Kotlin 1.8
Link copied to clipboard
expect fun toByte(): Byte

Returns the value of this character as a Byte.

Since Kotlin 1.0
actual fun toByte(): Byte

Returns the value of this character as a Byte.

Since Kotlin 1.1
fun toByte(): Byte

Returns the value of this character as a Byte.

Since Kotlin 1.0
actual external fun toByte(): Byte

Returns the value of this character as a Byte.

Since Kotlin 1.3
actual inline fun toByte(): Byte

Returns the value of this character as a Byte.

Since Kotlin 1.8
actual inline fun toByte(): Byte

Returns the value of this character as a Byte.

Since Kotlin 1.8
Link copied to clipboard
expect fun toChar(): Char

Returns the value of this character as a Char.

Since Kotlin 1.0
actual fun toChar(): Char

Returns the value of this character as a Char.

Since Kotlin 1.1
fun toChar(): Char

Returns the value of this character as a Char.

Since Kotlin 1.0
actual inline fun toChar(): Char

Returns the value of this character as a Char.

Since Kotlin 1.3
actual inline fun toChar(): Char

Returns the value of this character as a Char.

Since Kotlin 1.8
actual inline fun toChar(): Char

Returns the value of this character as a Char.

Since Kotlin 1.8
Link copied to clipboard
expect fun toDouble(): Double

Returns the value of this character as a Double.

Since Kotlin 1.0
actual fun toDouble(): Double

Returns the value of this character as a Double.

Since Kotlin 1.1

Returns the value of this character as a Double.

Since Kotlin 1.0
actual external fun toDouble(): Double

Returns the value of this character as a Double.

Since Kotlin 1.3
actual inline fun toDouble(): Double

Returns the value of this character as a Double.

Since Kotlin 1.8
actual inline fun toDouble(): Double

Returns the value of this character as a Double.

Since Kotlin 1.8
Link copied to clipboard
expect fun toFloat(): Float

Returns the value of this character as a Float.

Since Kotlin 1.0
actual fun toFloat(): Float

Returns the value of this character as a Float.

Since Kotlin 1.1
fun toFloat(): Float

Returns the value of this character as a Float.

Since Kotlin 1.0
actual external fun toFloat(): Float

Returns the value of this character as a Float.

Since Kotlin 1.3
actual inline fun toFloat(): Float

Returns the value of this character as a Float.

Since Kotlin 1.8
actual inline fun toFloat(): Float

Returns the value of this character as a Float.

Since Kotlin 1.8
Link copied to clipboard
expect fun toInt(): Int

Returns the value of this character as a Int.

Since Kotlin 1.0
actual fun toInt(): Int

Returns the value of this character as a Int.

Since Kotlin 1.1
fun toInt(): Int

Returns the value of this character as a Int.

Since Kotlin 1.0
actual external fun toInt(): Int

Returns the value of this character as a Int.

Since Kotlin 1.3
actual fun toInt(): Int

Returns the value of this character as a Int.

Since Kotlin 1.8
actual fun toInt(): Int

Returns the value of this character as a Int.

Since Kotlin 1.8
Link copied to clipboard
expect fun toLong(): Long

Returns the value of this character as a Long.

Since Kotlin 1.0
actual fun toLong(): Long

Returns the value of this character as a Long.

Since Kotlin 1.1
fun toLong(): Long

Returns the value of this character as a Long.

Since Kotlin 1.0
actual external fun toLong(): Long

Returns the value of this character as a Long.

Since Kotlin 1.3
actual inline fun toLong(): Long

Returns the value of this character as a Long.

Since Kotlin 1.8
actual inline fun toLong(): Long

Returns the value of this character as a Long.

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.toLowerCase(): Char

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

Since Kotlin 1.0
actual inline fun Char.toLowerCase(): Char

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

Since Kotlin 1.1
actual inline fun Char.toLowerCase(): Char

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

Since Kotlin 1.0
actual fun Char.toLowerCase(): Char

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

Since Kotlin 1.3
actual fun Char.toLowerCase(): Char

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

Since Kotlin 1.8
actual fun Char.toLowerCase(): Char

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

Since Kotlin 1.8
Link copied to clipboard
expect fun toShort(): Short

Returns the value of this character as a Short.

Since Kotlin 1.0
actual fun toShort(): Short

Returns the value of this character as a Short.

Since Kotlin 1.1
fun toShort(): Short

Returns the value of this character as a Short.

Since Kotlin 1.0
actual external fun toShort(): Short

Returns the value of this character as a Short.

Since Kotlin 1.3
actual inline fun toShort(): Short

Returns the value of this character as a Short.

Since Kotlin 1.8
actual inline fun toShort(): Short

Returns the value of this character as a Short.

Since Kotlin 1.8
Link copied to clipboard
expect open override fun toString(): String
Since Kotlin 1.0
actual open override fun toString(): String
Since Kotlin 1.1
open override fun toString(): String
Since Kotlin 1.0
actual open external override fun toString(): String
Since Kotlin 1.3
actual open override fun toString(): String
Since Kotlin 1.8
actual open override fun toString(): String
Since Kotlin 1.8
Link copied to clipboard
inline fun Char.toTitleCase(): Char

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

Since Kotlin 1.0
Link copied to clipboard
expect fun Char.toUpperCase(): Char

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

Since Kotlin 1.0
actual inline fun Char.toUpperCase(): Char

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

Since Kotlin 1.1
actual inline fun Char.toUpperCase(): Char

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

Since Kotlin 1.0
actual fun Char.toUpperCase(): Char

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

Since Kotlin 1.3
actual fun Char.toUpperCase(): Char

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

Since Kotlin 1.8
actual fun Char.toUpperCase(): Char

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

Since Kotlin 1.8
Link copied to clipboard
infix fun Char.until(to: Char): CharRange

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

Since Kotlin 1.0
Link copied to clipboard
expect fun Char.uppercase(): String

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

Since Kotlin 1.5
actual inline fun Char.uppercase(): String

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

Since Kotlin 1.5
actual inline fun Char.uppercase(): String

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

Since Kotlin 1.5
fun Char.uppercase(locale: Locale): String

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

Since Kotlin 1.5
actual fun Char.uppercase(): String

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

Since Kotlin 1.5
actual fun Char.uppercase(): String

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

Since Kotlin 1.8
actual fun Char.uppercase(): String

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

Since Kotlin 1.8
Link copied to clipboard
expect fun Char.uppercaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.uppercaseChar(): Char

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

Since Kotlin 1.5
actual inline fun Char.uppercaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.uppercaseChar(): Char

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

Since Kotlin 1.5
actual fun Char.uppercaseChar(): Char

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

Since Kotlin 1.8
actual fun Char.uppercaseChar(): Char

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

Since Kotlin 1.8