Util

object Util

Types

Link copied to clipboard
class ConcatIterator<T>(val it0: Iterator<Iterator<T>>, val joiner: () -> Iterator<T>) : Iterator<T>

Basically a fast, efficient .flatten or mkString for nested iterators

Functions

Link copied to clipboard
fun <T> concat(vararg isMatch: () -> Iterator<T>): Util.ConcatIterator<T>
Link copied to clipboard
fun escapeChar(c: Char, sb: StringBuilder, unicode: Boolean = true): StringBuilder
Link copied to clipboard
Link copied to clipboard
fun literalize(s: CharArray, unicode: Boolean = true): String
fun literalize(s: String, unicode: Boolean = true): String