*** empty log message ***

This commit is contained in:
Arvid Norberg 2004-07-07 22:45:14 +00:00
parent 2125f52ea7
commit feebf4bbb3
1 changed files with 11 additions and 11 deletions

View File

@ -77,19 +77,19 @@ namespace
++i;
}
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.major_version = *i - '0';
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.minor_version = *i - '0';
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.revision_version = *i - '0';
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.tag_version = *i - '0';
++i;
@ -105,22 +105,22 @@ namespace
fingerprint ret("..", 0, 0, 0, 0);
peer_id::const_iterator i = id.begin();
if (!std::isprint(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.id[0] = *i;
ret.id[1] = 0;
++i;
if (std::equal(id.begin()+4, id.begin()+8, "----"))
{
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.major_version = *i - '0';
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.minor_version = *i - '0';
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.revision_version = *i - '0';
}
else if (id[8] == 0)
@ -156,21 +156,21 @@ namespace
ret.id[1] = 0;
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.major_version = *i - '0';
++i;
if (*i != '-') return boost::optional<fingerprint>();
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.minor_version = *i - '0';
++i;
if (*i != '-') return boost::optional<fingerprint>();
++i;
if (!std::isdigit(*i)) return boost::optional<fingerprint>();
if (*i < '0') return boost::optional<fingerprint>();
ret.revision_version = *i - '0';
++i;