replaced std::isdigit with is_digit, to avoid asserts on windows and locale dependency. Fixes #484

This commit is contained in:
Arvid Norberg
2009-02-18 06:01:24 +00:00
parent 25dd5c86b9
commit afd04635e9
6 changed files with 23 additions and 32 deletions

View File

@@ -69,6 +69,16 @@ namespace libtorrent
return ret;
}
bool is_digit(char c)
{
return c >= '0' && c <= '9';
}
bool isprint(char c)
{
return c >= 32 && c < 127;
}
std::string unescape_string(std::string const& s)
{
std::string ret;