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

@ -153,13 +153,13 @@ namespace YAML
while(1) {
// first eat whitespace
while(IsWhitespaceToBeEaten(INPUT.peek()))
INPUT.Eat(1);
INPUT.eat(1);
// then eat a comment
if(Exp::Comment.Matches(INPUT)) {
// eat until line break
while(INPUT && !Exp::Break.Matches(INPUT))
INPUT.Eat(1);
INPUT.eat(1);
}
// if it's NOT a line break, then we're done!
@ -168,7 +168,7 @@ namespace YAML
// otherwise, let's eat the line break and keep going
int n = Exp::Break.Match(INPUT);
INPUT.Eat(n);
INPUT.eat(n);
// oh yeah, and let's get rid of that simple key
VerifySimpleKey();