Packages

c

scala.tools.nsc.util.CharArrayReader

CharArrayLookaheadReader

class CharArrayLookaheadReader extends CharArrayReader

Source
CharArrayReader.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharArrayLookaheadReader
  2. CharArrayReader
  3. CharArrayReaderData
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CharArrayLookaheadReader()

Type Members

  1. class CharArrayLookaheadReader extends CharArrayReader
    Definition Classes
    CharArrayReader

Value Members

  1. val buf: Array[Char]
  2. val ch: Char

    the last read character

    the last read character

    Definition Classes
    CharArrayReaderData
  3. val charOffset: Int

    The offset one past the last read character

    The offset one past the last read character

    Definition Classes
    CharArrayReaderData
  4. def copyFrom(cd: CharArrayReaderData): CharArrayLookaheadReader.this.type
    Definition Classes
    CharArrayReaderData
  5. def getc(): Char

    A mystery why CharArrayReader.nextChar() returns Unit

  6. val lastLineStartOffset: Int

    The start offset of the line before the current one

    The start offset of the line before the current one

    Definition Classes
    CharArrayReaderData
  7. val lineStartOffset: Int

    The start offset of the current line

    The start offset of the current line

    Definition Classes
    CharArrayReaderData
  8. 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

    Definition Classes
    CharArrayReader
  9. final def nextChar(): Unit

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

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

    Definition Classes
    CharArrayReader
  10. final def nextRawChar(): Unit

    Advance one character, leaving CR;LF pairs intact.

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

    Definition Classes
    CharArrayReader