Introduce Char.MIN_VALUE and MAX_VALUE constants (KT-21763)

Add Char.MIN_VALUE and Char.MAX_VALUE implementations in primitive companion objects.
Update builtins test data and public API.

Co-authored-by: Oskar Drozda <themppsplx@gmail.com>
This commit is contained in:
Ilya Gorbunov
2018-06-22 21:24:55 +03:00
parent 5ee3cc59b3
commit 07a0cb91d4
9 changed files with 40 additions and 0 deletions
+12
View File
@@ -62,6 +62,18 @@ public class Char private constructor() : Comparable<Char> {
public fun toDouble(): Double
companion object {
/**
* The minimum value of a character code unit.
*/
@SinceKotlin("1.3")
public const val MIN_VALUE: Char = '\u0000'
/**
* The maximum value of a character code unit.
*/
@SinceKotlin("1.3")
public const val MAX_VALUE: Char = '\uFFFF'
/**
* The minimum value of a Unicode high-surrogate code unit.
*/