add support for priorities (queueing)

This commit is contained in:
Andrzej Rybczak
2012-08-14 16:09:45 +02:00
parent d51edfd262
commit bab756c579
17 changed files with 112 additions and 8 deletions

View File

@@ -481,3 +481,14 @@ std::basic_string<my_char_t> Scroller(const std::basic_string<my_char_t> &str, s
result = s;
return result;
}
bool isInteger(const char *s)
{
assert(s);
if (*s == '\0')
return false;
for (const char *it = s; *it != '\0'; ++it)
if (!isdigit(*it) && (it != s || *it != '-'))
return false;
return true;
}