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; }
bool isAlphaNumChar(char c) { return isAlphaChar(c) || isNumChar(c); }