fun String(chars: CharArray): StringDeprecated: Use CharArray.concatToString() instead
Converts the characters in the specified array to a string.
fun String( chars: CharArray, offset: Int, length: Int ): StringDeprecated: Use CharArray.concatToString(startIndex, endIndex) instead
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.
bytes
- the source array for the conversion.
offset
- the offset in the array of the data to be converted.
length
- the number of bytes to be converted.
charset
- the character set to use.
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 a portion of the specified array of bytes to characters using the UTF-8 character set and returns the conversion result as a string.
bytes
- the source array for the conversion.
offset
- the offset in the array of the data to be converted.
length
- the number of bytes to be converted.
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.
Converts the contents of the specified StringBuffer to a string.
Converts the contents of the specified StringBuilder to a string.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/-string.html