Enhancements - Nibbler upgrades.

- Enhancements to ensure that EOS conditions don't break calls.
This commit is contained in:
Paul Beckingham 2009-05-30 14:23:22 -04:00
parent 87ed7dad6c
commit dde044c3d7
6 changed files with 139 additions and 21 deletions

View file

@ -98,12 +98,12 @@ bool Att::parse (Nibbler& n)
mValue = "";
mMods.clear ();
if (n.getUntilChars (".:", mName))
if (n.getUntilOneOf (".:", mName))
{
while (n.skip ('.'))
{
std::string mod;
if (n.getUntilChars (".:", mod))
if (n.getUntilOneOf (".:", mod))
mMods.push_back (mod);
else
throw std::string ("Missing . or : after modifier");
@ -113,7 +113,7 @@ bool Att::parse (Nibbler& n)
{
if (n.getQuoted ('"', mValue))
return true;
else if (n.getUntilChar (' ', mValue))
else if (n.getUntil (' ', mValue))
return true;
throw std::string ("Missing attribute value");