Exemplo n.º 1
0
bool stUtfTools::isInteger(const StString& theString) {
    StUtf8Iter anIter = theString.iterator();
    // TODO (Kirill Gavrilov#9) + and - should be followed by numbers!
    if(!isNumChar(*anIter) && (*anIter != stUtf32_t('+')) && (*anIter != stUtf32_t('-'))) {
        return false;
    }
    ++anIter;
    for(; *anIter != 0; ++anIter) {
        if(!isNumChar(*anIter)) {
            return false;
        }
    }
    return true;
}
Exemplo n.º 2
0
Arquivo: update.c Projeto: jxv/finite
bool isAlphaNumChar(char c)
{
    return isAlphaChar(c) || isNumChar(c);
}