CharArrayReader

dotty.tools.dotc.parsing.CharArrayReader
abstract class CharArrayReader

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
Self type

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any

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.

Attributes

Concrete methods

protected def decodeUni: Boolean

Switch whether unicode should be decoded

Switch whether unicode should be decoded

Attributes

def getc(): Char

Is last character a unicode escape \uxxxx?

Is last character a unicode escape \uxxxx?

Attributes

A new reader that takes off at the current character position

A new reader that takes off at the current character position

Attributes

final def nextChar(): Unit

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

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

Attributes

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.

Attributes

protected def startFrom: Int

Abstract fields

val buf: Array[Char]

Concrete fields

var ch: Char

the last read character

the last read character

Attributes

The offset one past the last read character

The offset one past the last read character

Attributes

The offset before the last read character

The offset before the last read character

Attributes

The start offset of the current line

The start offset of the current line

Attributes