KT-23356 Cross-platform function to convert CharArray slice to String
Signed-off-by: Valeriy Zhirnov <neonailol@gmail.com>
This commit is contained in:
@@ -260,14 +260,14 @@ public inline fun String(bytes: ByteArray): String =
|
||||
* Converts the characters in the specified array to a string.
|
||||
*/
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun String(chars: CharArray): String =
|
||||
public actual inline fun String(chars: CharArray): String =
|
||||
java.lang.String(chars) as String
|
||||
|
||||
/**
|
||||
* Converts the characters from a portion of the specified array to a string.
|
||||
*/
|
||||
@kotlin.internal.InlineOnly
|
||||
public inline fun String(chars: CharArray, offset: Int, length: Int): String =
|
||||
public actual inline fun String(chars: CharArray, offset: Int, length: Int): String =
|
||||
java.lang.String(chars, offset, length) as String
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user