final object FilterTools

A collection of helpers that to simpify the common case of building filters

Constructors

Members

val TS : TermState.type

Shorthand for pattern matching on [[TermState]]

Shorthand for pattern matching on [[TermState]]

val ansiRegex : String
[+] def Case ( s: String ) ( f: (Vector [ Char ], Int, TermInfo) => ( Vector [ Char ], Int ) ) : Filter

Shorthand to construct a filter in the common case where you're switching on the prefix of the input stream and want to run some transformation on the b...

Shorthand to construct a filter in the common case where you're switching on the prefix of the input stream and want to run some transformation on the buffer/cursor

def findChunks ( b: Vector [ Char ] , c: Int ) : ( Buffer [ Int ], Stream [ Int ], Int )
def firstRow ( cursor: Int , buffer: Vector [ Char ] , width: Int ) : Boolean
def lastRow ( cursor: Int , buffer: Vector [ Char ] , width: Int ) : Boolean
def offsetIndex ( buffer: Vector [ Char ] , in: Int ) : Int