An immutable class that creates a String by prepending character buffers
Parser that accepts any ASCII character
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.
Parser from ByteBuffer to ByteBuffer.
Parser from ByteBuffer to ByteBuffer. This parser will build a ByteBuffer accepting all specified chars.
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.
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.
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.
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.
Parser that succeeds if it matches a single ascii character
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.
The maximum length of the line accepted by this parser.
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.