Packages

class CharArrayReader extends CharSequenceReader

A character array reader reads a stream of characters (keeping track of their positions) from an array.

Source
CharArrayReader.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharArrayReader
  2. CharSequenceReader
  3. Reader
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CharArrayReader(chars: Array[Char])
  2. new CharArrayReader(chars: Array[Char], index: Int)

    chars

    an array of characters

    index

    starting offset into the array; the first element returned will be source(index)

Value Members

  1. def atEnd: Boolean

    true iff there are no more elements in this reader (except for trailing EofCh's)

    true iff there are no more elements in this reader (except for trailing EofCh's)

    Definition Classes
    CharSequenceReaderReader
  2. def drop(n: Int): CharSequenceReader

    Returns an abstract reader consisting of all elements except the first n elements.

    Returns an abstract reader consisting of all elements except the first n elements.

    Definition Classes
    CharSequenceReaderReader
  3. def first: Char

    Returns the first element of the reader, or EofCh if reader is at its end.

    Returns the first element of the reader, or EofCh if reader is at its end.

    Definition Classes
    CharSequenceReaderReader
  4. val offset: Int
    Definition Classes
    CharSequenceReaderReader
  5. def pos: Position

    The position of the first element in the reader.

    The position of the first element in the reader.

    Definition Classes
    CharSequenceReaderReader
  6. def rest: CharSequenceReader

    Returns a CharSequenceReader consisting of all elements except the first.

    Returns a CharSequenceReader consisting of all elements except the first.

    returns

    If atEnd is true, the result will be this; otherwise, it's a CharSequenceReader containing the rest of input.

    Definition Classes
    CharSequenceReaderReader
  7. val source: CharSequence
    Definition Classes
    CharSequenceReaderReader