toShort

Deprecated

Warning since 1.5

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

Replace with

this.code.toShort()

Returns the value of this character as a Short.

Since Kotlin

1.0

Deprecated

Warning since 1.5

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

Replace with

this.code.toShort()

Returns the value of this character as a Short.

Since Kotlin

1.1
external fun toShort(): Short(source)

Deprecated

Warning since 1.5

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

Replace with

this.code.toShort()

Returns the value of this character as a Short.

Since Kotlin

1.3
inline fun toShort(): Short(source)

Deprecated

Warning since 1.5

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

Replace with

this.code.toShort()

Returns the value of this character as a Short.

Since Kotlin

1.8
inline fun toShort(): Short(source)

Deprecated

Warning since 1.5

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

Replace with

this.code.toShort()

Returns the value of this character as a Short.

Since Kotlin

1.8