diff options
| author | Max Horn | 2012-02-20 16:03:39 +0100 |
|---|---|---|
| committer | Max Horn | 2012-02-20 16:18:27 +0100 |
| commit | 4f8665fc836898ebf54fc73b1061125b748183bc (patch) | |
| tree | ae393cd0822fab01bdcc38bd003ab186955eb270 /engines/mohawk | |
| parent | 658080deeda79d20ea40643569fbcb072573e7cf (diff) | |
| download | scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.tar.gz scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.tar.bz2 scummvm-rg350-4f8665fc836898ebf54fc73b1061125b748183bc.zip | |
COMMON: Move isFoo functions to namespace Common, add doxygen comments
Diffstat (limited to 'engines/mohawk')
| -rw-r--r-- | engines/mohawk/livingbooks_code.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp index b961e20f78..bb8f7a0d05 100644 --- a/engines/mohawk/livingbooks_code.cpp +++ b/engines/mohawk/livingbooks_code.cpp @@ -1766,7 +1766,7 @@ uint LBCode::parseCode(const Common::String &source) { { Common::String tempString; while (pos < source.size()) { - if (!isAlpha(source[pos]) && !isDigit(source[pos])) + if (!Common::isAlpha(source[pos]) && !Common::isDigit(source[pos])) break; tempString += source[pos++]; } @@ -1777,7 +1777,7 @@ uint LBCode::parseCode(const Common::String &source) { } break; default: - if (isDigit(token)) { + if (Common::isDigit(token)) { const char *in = source.c_str() + pos - 1; // FIXME: handle floats? char *endptr; @@ -1792,11 +1792,11 @@ uint LBCode::parseCode(const Common::String &source) { WRITE_BE_UINT16(tmp, (int16)intValue); code.push_back(tmp[0]); code.push_back(tmp[1]); - } else if (isAlpha(token)) { + } else if (Common::isAlpha(token)) { Common::String tempString; tempString += token; while (pos < source.size()) { - if (!isAlpha(source[pos]) && !isDigit(source[pos])) + if (!Common::isAlpha(source[pos]) && !Common::isDigit(source[pos])) break; tempString += source[pos++]; } |
