Straighten Char-to-code and Char-to-digit conversions out #KT-23451
This commit is contained in:
@@ -12,7 +12,12 @@ package kotlin
|
||||
// TODO: KT-35100
|
||||
//@Suppress("NON_PUBLIC_PRIMARY_CONSTRUCTOR_OF_INLINE_CLASS")
|
||||
//public inline class Char internal constructor (val value: Int) : Comparable<Char> {
|
||||
public class Char internal constructor(private val value: Int) : Comparable<Char> {
|
||||
public class Char
|
||||
@OptIn(ExperimentalUnsignedTypes::class)
|
||||
@ExperimentalStdlibApi
|
||||
@SinceKotlin("1.4")
|
||||
constructor(code: UShort) : Comparable<Char> {
|
||||
private val value: Int = code.toInt()
|
||||
|
||||
/**
|
||||
* Compares this value with the specified value for order.
|
||||
|
||||
Reference in New Issue
Block a user