molecule.parsers

ascii

package ascii

Character buffer parsers

These parsers work for ASCII and ASCII compatible encodings, i.e. (1) the byte representation of a character corresponds with the ASCII value, or (2) the byte representation of a character is a single byte > 128, or (3) the byte representation of a character is multiple bytes, all > 128 (cfr UTF-8 for non-ASCII characters) As argument for these parsers though only pure ASCII characters should be used, but any type may appear in the ByteBuffer that is being parsed.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ascii
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class StringBuilder extends AnyRef

    An immutable class that creates a String by prepending character buffers

Value Members

  1. object StringBuilder

  2. val anyChar: Parser[ByteBuffer, Char]

    Parser that accepts any ASCII character

  3. val bbParsers: Parsers[ByteBuffer]

  4. final def buffer(range: (Char, Char), ranges: (Char, Char)*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all bytes that fall in the specified ranges.

    Annotations
    @inline()
  5. final def buffer(char: Char, cs: Char*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all specified chars.

    Annotations
    @inline()
  6. final def buffer1(range: (Char, Char), ranges: (Char, Char)*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all bytes that fall in the specified ranges; the buffer must be at least one character long.

    Annotations
    @inline()
  7. final def buffer1(char: Char, cs: Char*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all specified chars; the buffer must be at least one character long.

    Annotations
    @inline()
  8. final def bufferUntil(range: (Char, Char), ranges: (Char, Char)*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer until the received byte falls in one of the the specified ranges.

    Annotations
    @inline()
  9. final def bufferUntil(c: Char, cs: Char*): Parser[ByteBuffer, ByteBuffer]

    Parser from ByteBuffer to ByteBuffer.

    Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer until byte c or any of bytes cs is found.

    Annotations
    @inline()
  10. implicit def char(c: Char): Parser[ByteBuffer, Char]

    Parser that succeeds if it matches a single ascii character

  11. def line(maxLength: Int): Parser[ByteBuffer, String]

    Parse a line.

    Parse a line. A line is a sequence of characters ending with either a carriage-return character ('\r') or a newline character ('\n'). In addition, a carriage-return character followed immediately by a newline character is * treated as a single end-of-line token.

    maxLength

    The maximum length of the line accepted by this parser.

Inherited from AnyRef

Inherited from Any

Ungrouped