Enhancements - Complete Record parsing

- Enhanced Record unit tests
- Fixed broken Att unit tests
- Fixed broken Att
This commit is contained in:
Paul Beckingham 2009-06-01 01:25:07 -04:00
parent 75c220c352
commit a98951a8c3
5 changed files with 54 additions and 77 deletions

View file

@ -114,19 +114,16 @@ bool Att::parse (Nibbler& n)
if (n.skip (':'))
{
if (n.getQuoted ('"', mValue))
return true;
// This is here to tolerate unquoted values.
// Both quoted and unquoted Att's are accepted.
// Consider removing this for a stricter parse.
if (n.getUntil (' ', mValue))
if (n.getQuoted ('"', mValue) ||
n.getUntil (' ', mValue))
{
dequote (mValue);
decode (mValue);
return true;
}
throw std::string ("Missing attribute value");
else
throw std::string ("Missing attribute value");
}
else
throw std::string ("Missing : after attribute name");