Enhancement/Fixes - Duration

- Reorganized Duration::valid and Duration::parse to use the same list
  of supported constructs.
- Added missing copy constructor.
- Added missing ctor initializer list.
- Corrected handling of negative time_t values.
- Added support for more duration formats.
- Corrected autoComplete use.
- Added Duration::negative.
- Corrected unit test descriptions.
This commit is contained in:
Paul Beckingham 2010-07-25 22:05:02 -04:00
parent cb4fe4fffb
commit 123a46eef9
4 changed files with 313 additions and 285 deletions

View file

@ -195,8 +195,8 @@ int autoComplete (
}
// Maintain a list of partial matches.
if (length <= item->length () &&
partial == item->substr (0, length))
else if (length <= item->length () &&
partial == item->substr (0, length))
matches.push_back (*item);
}
}