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/sci/engine | |
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/sci/engine')
-rw-r--r-- | engines/sci/engine/kstring.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/kstring.cpp b/engines/sci/engine/kstring.cpp index 735b1b2187..fe8d631497 100644 --- a/engines/sci/engine/kstring.cpp +++ b/engines/sci/engine/kstring.cpp @@ -147,7 +147,7 @@ reg_t kReadNumber(EngineState *s, int argc, reg_t *argv) { Common::String source_str = s->_segMan->getString(argv[0]); const char *source = source_str.c_str(); - while (isSpace(*source)) + while (Common::isSpace(*source)) source++; /* Skip whitespace */ int16 result = 0; @@ -246,14 +246,14 @@ reg_t kFormat(EngineState *s, int argc, reg_t *argv) { /* int writelength; -- unused atm */ - if (xfer && (isDigit(xfer) || xfer == '-' || xfer == '=')) { + if (xfer && (Common::isDigit(xfer) || xfer == '-' || xfer == '=')) { char *destp; if (xfer == '0') fillchar = '0'; else if (xfer == '=') align = ALIGN_CENTER; - else if (isDigit(xfer) || (xfer == '-')) + else if (Common::isDigit(xfer) || (xfer == '-')) source--; // Go to start of length argument strLength = strtol(source, &destp, 10); |