abstract class CharArrayReader

Constructors

CharArrayReader ( )

Members

[+] val buf : Array [ Char ]
[+] var ch : Char

the last read character

the last read character

[+] var charOffset : Int

The offset one past the last read character

The offset one past the last read character

[+] var lastCharOffset : Int

The offset before the last read character

The offset before the last read character

[+] var lastLineStartOffset : Int

The start offset of the line before the current one

The start offset of the line before the current one

[+] private var lastUnicodeOffset : Int
[+] var lineStartOffset : Int

The start offset of the current line

The start offset of the current line

[+] def ch_= ( x$1: Char ) : Unit

the last read character

the last read character

[+] def charOffset_= ( x$1: Int ) : Unit

The offset one past the last read character

The offset one past the last read character

[+] protected def decodeUni : Boolean

Switch whether unicode should be decoded

Switch whether unicode should be decoded

[+] 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.

[+] def getc ( ) : Char
[+] def isAtEnd : Boolean
[+] def isUnicodeEscape : Boolean

Is last character a unicode escape \uxxxx?

Is last character a unicode escape \uxxxx?

[+] def lastCharOffset_= ( x$1: Int ) : Unit

The offset before the last read character

The offset before the last read character

[+] def lastLineStartOffset_= ( x$1: Int ) : Unit

The start offset of the line before the current one

The start offset of the line before the current one

[+] private def lastUnicodeOffset_= ( x$1: Int ) : Unit
[+] def lineStartOffset_= ( x$1: Int ) : Unit

The start offset of the current line

The start offset of the current line

[+] def lookaheadReader : CharArrayLookaheadReader

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.

[+] private def potentialLineEnd ( ) : Unit

Handle line ends

Handle line ends

[+] private def potentialUnicode ( ) : Unit

Interpret \uxxxx escapes

Interpret \uxxxx escapes

[+] private def skipCR ( ) : Unit

replace CR;LF by LF

replace CR;LF by LF

[+] protected def startFrom : Int