TxtState

class TxtState(val txt: String, val newLine: Char) extends CommonState[Char]

Txt State extends Common State trait. It special for text content analyst. Txt state could mark a status point in which line.

Version

1.0.0

Companion
object
class CommonState[Char]
trait State[Char]
class Object
trait Matchable
class Any

Type members

Inherited types

type Index
Inherited from
State
override type Status = Int
Inherited from
CommonState
override type Tran = Int
Inherited from
CommonState

Value members

Concrete methods

def lineByIndex(index: Int): Int

Inherited methods

def begin(tran: Tran): Tran
Inherited from
CommonState
def begin(): Tran
Inherited from
CommonState
def commit(tran: Tran): Unit
Inherited from
CommonState
def eof[U >: Char]: Parsec[U, Unit]
Inherited from
State
def next(): Try[Char]
Inherited from
CommonState
def pack[T, U >: Char](item: T): Parsec[U, T]
Inherited from
State
def rollback(tran: Tran): Unit
Inherited from
CommonState
Inherited from
CommonState
def trap[T](message: String): Failure[T]
Inherited from
State

Concrete fields

val lines: SortedMap[Int, Int]
val newLine: Char
val txt: String

Inherited fields

val content: Seq[Char]
Inherited from
CommonState
var current: Int
Inherited from
CommonState
var tran: Int
Inherited from
CommonState