Merge from libexpr

- Incorporated Nibbler changes from libexpr.
This commit is contained in:
Paul Beckingham 2013-12-08 16:19:38 -05:00
parent 4efe5d4a52
commit efae57d56b
3 changed files with 107 additions and 2 deletions

View file

@ -63,6 +63,10 @@ public:
bool getN (const int, std::string&);
bool getQuoted (char, std::string&, bool quote = false);
bool getDigit (int&);
bool getDigit6 (int&);
bool getDigit4 (int&);
bool getDigit3 (int&);
bool getDigit2 (int&);
bool getInt (int&);
bool getHex (int&);
bool getUnsignedInt (int&);
@ -76,8 +80,8 @@ public:
bool getUUID (std::string&);
bool getPartialUUID (std::string&);
bool getDateISO (time_t&);
#ifdef NIBBLER_FEATURE_DATE
bool parseDigits(std::string::size_type&, int&, unsigned int, bool strict = true);
#ifdef NIBBLER_FEATURE_DATE
bool getDate (const std::string&, time_t&);
#endif
bool getOneOf (const std::vector <std::string>&, std::string&);