COMMON: Move isFoo functions to namespace Common, add doxygen comments

This commit is contained in:
Max Horn 2012-02-20 16:03:39 +01:00
parent 658080deed
commit 4f8665fc83
34 changed files with 131 additions and 83 deletions

View file

@ -1558,7 +1558,7 @@ void ResourceManager::readResourcePatches() {
name = (*x)->getName();
// SCI1 scheme
if (isDigit(name[0])) {
if (Common::isDigit(name[0])) {
char *end = 0;
resourceNr = strtol(name.c_str(), &end, 10);
bAdd = (*end == '.'); // Ensure the next character is the period
@ -1566,7 +1566,7 @@ void ResourceManager::readResourcePatches() {
// SCI0 scheme
int resname_len = strlen(szResType);
if (scumm_strnicmp(name.c_str(), szResType, resname_len) == 0
&& !isAlpha(name[resname_len + 1])) {
&& !Common::isAlpha(name[resname_len + 1])) {
resourceNr = atoi(name.c_str() + resname_len + 1);
bAdd = true;
}