poco::data vs100 project updates

This commit is contained in:
Marian Krivos
2011-09-14 13:09:29 +00:00
parent c13df6f828
commit f65f178b54
10 changed files with 1099 additions and 946 deletions

View File

@@ -35,7 +35,7 @@
#include "Poco/Data/ArchiveStrategy.h"
#include "Poco/Ascii.h"
namespace Poco {
namespace Data {
@@ -43,7 +43,6 @@ namespace Data {
using namespace Keywords;
//
// ArchiveStrategy
//
@@ -142,11 +141,11 @@ void ArchiveByAgeStrategy::setThreshold(const std::string& age)
std::string::const_iterator it = age.begin();
std::string::const_iterator end = age.end();
int n = 0;
while (it != end && std::isspace(*it)) ++it;
while (it != end && std::isdigit(*it)) { n *= 10; n += *it++ - '0'; }
while (it != end && std::isspace(*it)) ++it;
while (it != end && Ascii::isSpace(*it)) ++it;
while (it != end && Ascii::isDigit(*it)) { n *= 10; n += *it++ - '0'; }
while (it != end && Ascii::isSpace(*it)) ++it;
std::string unit;
while (it != end && std::isalpha(*it)) unit += *it++;
while (it != end && Ascii::isAlpha(*it)) unit += *it++;
Timespan::TimeDiff factor = Timespan::SECONDS;
if (unit == "minutes")