Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (43 sloc) 1.73 KB
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
package kotlin
import kotlin.native.internal.ExportTypeInfo
import kotlin.native.internal.Frozen
public final class String : Comparable<String>, CharSequence {
public companion object {
external public override fun hashCode(): Int
public operator fun plus(other: Any?): String {
return plusImpl(other.toString())
override public fun toString(): String {
return this
public override val length: Int
get() = getStringLength()
* Returns the character of this string at the specified [index].
* If the [index] is out of bounds of this string, throws an [IndexOutOfBoundsException].
external override public fun get(index: Int): Char
external override public fun subSequence(startIndex: Int, endIndex: Int): CharSequence
override external public fun compareTo(other: String): Int
external private fun getStringLength(): Int
external private fun plusImpl(other: String): String
external public override fun equals(other: Any?): Boolean
public inline operator fun kotlin.String?.plus(other: kotlin.Any?): kotlin.String =
(this?.toString() ?: "null").plus(other?.toString() ?: "null")
public inline fun Any?.toString() = this?.toString() ?: "null"
You can’t perform that action at this time.