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

@ -39,7 +39,7 @@ namespace YAML
// grab string
std::string str;
for(int i=0;i<codeLength;i++)
str += in.GetChar();
str += in.get();
// get the value
unsigned value = ParseHex(str);
@ -67,10 +67,10 @@ namespace YAML
std::string Escape(Stream& in)
{
// eat slash
char escape = in.GetChar();
char escape = in.get();
// switch on escape character
char ch = in.GetChar();
char ch = in.get();
// first do single quote, since it's easier
if(escape == '\'' && ch == '\'')