toInt

fun toInt(): Int(source)

Deprecated

Warning since 1.5

Conversion of Char to Number is deprecated. Use Char.code property instead.

Replace with

this.code

Returns the value of this character as a Int.

Since Kotlin

1.0
fun toInt(): Int(source)

Deprecated

Warning since 1.5

Conversion of Char to Number is deprecated. Use Char.code property instead.

Replace with

this.code

Returns the value of this character as a Int.

Since Kotlin

1.1
external fun toInt(): Int(source)

Deprecated

Warning since 1.5

Conversion of Char to Number is deprecated. Use Char.code property instead.

Replace with

this.code

Returns the value of this character as a Int.

Since Kotlin

1.3
fun toInt(): Int(source)

Returns the value of this character as a Int.

Since Kotlin

1.8
fun toInt(): Int(source)

Returns the value of this character as a Int.

Since Kotlin

1.8