ConsString

A lazily flattened rope of two character sequences. Repeated string concatenation builds a tree of these instead of copying, and the tree is flattened once, on the first read.

KMP: upstream synchronizes flatten. Dropped under the single-thread contract (D-3).

Constructors

Link copied to clipboard
constructor(str1: CharSequence, str2: CharSequence)

Properties

Link copied to clipboard
open override val length: Int

Functions

Link copied to clipboard
open operator override fun get(index: Int): Char
Link copied to clipboard
open override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
Link copied to clipboard
open override fun toString(): String