CharSequenceView

A window over a range of another CharSequence that shares its characters instead of copying them. The view is only materialized by toString.

Parameters

base

the sequence this is a window of, never a CharSequenceView itself

start

inclusive start index within base

end

exclusive end index within base

Types

Link copied to clipboard
object Companion

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

Indents each line of this string by indent.

Link copied to clipboard
open override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
Link copied to clipboard
fun CharSequence.substringWithinBounds(startIndex: Int, endIndex: Int): String
Link copied to clipboard
fun CharSequence.takeLines(count: Int, addOmittedLinesSuffix: Boolean): String
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun CharSequence.view(start: Int, end: Int = length): CharSequence
Link copied to clipboard

Removes every comment, leaving the rest of the text untouched. A <!-- that never closes is text, not a comment, so it survives.