CharArrayReader

abstract class CharArrayReader
class Object
trait Matchable
class Any

Type members

Value members

Abstract methods

protected def error(msg: String, offset: Int): Unit

An error routine to call on bad unicode escapes \uxxxx.

An error routine to call on bad unicode escapes \uxxxx.

Concrete methods

protected def decodeUni: Boolean

Switch whether unicode should be decoded

Switch whether unicode should be decoded

def getc(): Char

Is last character a unicode escape \uxxxx?

Is last character a unicode escape \uxxxx?

A new reader that takes off at the current character position

A new reader that takes off at the current character position

final def nextChar(): Unit

Advance one character; reducing CR;LF pairs to just LF

Advance one character; reducing CR;LF pairs to just LF

final def nextRawChar(): Unit

Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.

Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.

protected def startFrom: Int

Abstract fields

val buf: Array[Char]

Concrete fields

var ch: Char

the last read character

the last read character

The offset one past the last read character

The offset one past the last read character

The offset before the last read character

The offset before the last read character

The start offset of the current line

The start offset of the current line