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
@@ -103,6 +103,12 @@ private object ByteCompanionObject {
@JsName("CharCompanionObject")
private object CharCompanionObject {
@JsName("MIN_VALUE")
public const val MIN_VALUE: Char = '\u0000'
@JsName("MAX_VALUE")
public const val MAX_VALUE: Char = '\uFFFF'
@JsName("MIN_HIGH_SURROGATE")
public const val MIN_HIGH_SURROGATE: Char = '\uD800'
@@ -51,6 +51,8 @@ internal object ByteCompanionObject {
internal object CharCompanionObject {
const val MIN_VALUE: Char = '\u0000'
const val MAX_VALUE: Char = '\uFFFF'
const val MIN_HIGH_SURROGATE: Char = '\uD800'
const val MAX_HIGH_SURROGATE: Char = '\uDBFF'
const val MIN_LOW_SURROGATE: Char = '\uDC00'