Renamed the stream member functions get() and eat().

This commit is contained in:
Jesse Beder 2008-06-30 22:34:10 +00:00
parent 852e5b63e5
commit c1966ba3fc
8 changed files with 143 additions and 73 deletions

View file

@ -9,15 +9,15 @@ namespace YAML
{
Stream(std::istream& input_): input(input_), line(0), column(0) {}
char peek() { return input.peek(); }
int pos() const { return input.tellg(); }
operator std::istream& () { return input; }
operator bool() { return input.good(); }
bool operator !() { return !input; }
char GetChar();
std::string GetChar(int n);
void Eat(int n = 1);
char peek() { return input.peek(); }
char get();
std::string get(int n);
void eat(int n = 1);
std::istream& input;
int line, column;