class CharSequenceReader extends Reader[Char]

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

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

Instance Constructors

  1. new CharSequenceReader(source: CharSequence)

    Construct a CharSequenceReader with its first element at source(0) and position (1,1).

  2. new CharSequenceReader(source: CharSequence, offset: Int)

    source

    the source sequence

    offset

    starting offset.

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