String
@DeprecatedSinceKotlin("1.4", "1.5") fun String(
chars: CharArray
): String
(Common source) (JS source) (Native source)
Converts the characters in the specified array to a string.
@DeprecatedSinceKotlin("1.4", "1.5") fun String(
chars: CharArray,
offset: Int,
length: Int
): String
(Common source) (JS source) (Native source)
Converts the data from a portion of the specified array of bytes to characters using the specified character set and returns the conversion result as a string.
Parameters
bytes
- the source array for the conversion.
offset
- the offset in the array of the data to be converted.
Converts the data from the specified array of bytes to characters using the specified character set and returns the conversion result as a string.
Converts the data from the specified array of bytes to characters using the UTF-8 character set and returns the conversion result as a string.
Converts the code points from a portion of the specified Unicode code point array to a string.