#include <byte_stream.h>
A Byte stream class, very crude. The only purpose of this class is to walk in a byte stream, available at construction time.
TinyXPath::byte_stream::byte_stream | ( | const char * | cp_in | ) | [inline] |
constructor
References bp_current, bp_end, bp_in, o_valid, and u_length.
TinyXPath::byte_stream::~byte_stream | ( | ) | [inline] |
destructor
References bp_in.
_byte_ TinyXPath::byte_stream::b_top | ( | ) | [inline] |
Returns the byte on top.
References bp_current.
Referenced by TinyXPath::xpath_stream::v_lexico_decode().
_byte_ TinyXPath::byte_stream::b_pop | ( | ) | [inline] |
Consumes one byte.
References bp_current, bp_end, o_is_valid(), and o_valid.
Referenced by TinyXPath::xpath_stream::v_lexico_decode().
bool TinyXPath::byte_stream::o_is_valid | ( | ) | [inline] |
unsigned TinyXPath::byte_stream::u_remain | ( | ) | [inline] |
number of bytes still to consume
References bp_current, and bp_end.
Referenced by b_forward().
_byte_ TinyXPath::byte_stream::b_forward | ( | unsigned | u_nb_char | ) | [inline] |
peek a byte a little further down the stream
References bp_current, and u_remain().
Referenced by TinyXPath::xpath_stream::v_lexico_decode().
const _byte_* TinyXPath::byte_stream::bp_get_backward | ( | unsigned | u_amount | ) | [inline] |
get a byte backward pointer to the stream
References bp_current.
Referenced by TinyXPath::xpath_stream::v_lexico_decode().
unsigned TinyXPath::byte_stream::u_length [private] |
Length of the total string, + 1.
Referenced by byte_stream().
_byte_* TinyXPath::byte_stream::bp_in [private] |
Total string.
Referenced by byte_stream(), and ~byte_stream().
_byte_* TinyXPath::byte_stream::bp_current [private] |
Current read position.
Referenced by b_forward(), b_pop(), b_top(), bp_get_backward(), byte_stream(), and u_remain().
_byte_* TinyXPath::byte_stream::bp_end [private] |
First invalid position.
Referenced by b_pop(), byte_stream(), and u_remain().
bool TinyXPath::byte_stream::o_valid [private] |
true when there are still some byte to read
Referenced by b_pop(), byte_stream(), and o_is_valid().