Cpp/ForthWrapper/CppPhysicsEngine/Cpp11/car.cpp
static bool isInteger(std::string const& word, int& val)
{
    bool isNumber = true;
    for(std::string::const_iterator k = word.begin(); k != word.end(); ++k)
        isNumber = (isNumber && isdigit(*k));

    if (isNumber)
        val = strtol(word.c_str(), nullptr, 10);

    return isNumber;
}
// QQ is the given string (word) a number ? If yes return its value + true
QQ is the given string (word) a number . If yes return its value + true
QQ is the given string ( word ) a number . If yes return its value + true
static bool isInteger(std::string const& word, int& val)
{
    bool isNumber = true;
    for(std::string::const_iterator k = word.begin(); k != word.end(); ++k)
        isNumber = (isNumber && isdigit(*k));
    if (isNumber)
        val = strtol(word.c_str(), nullptr, 10);
    return isNumber;
}
static bool isInteger ( std :: string const & word , int & val ) { bool isNumber = true ; for ( std :: string :: const_iterator k = word . begin ( ) ; k != word . end ( ) ; ++ k ) isNumber = ( isNumber && isdigit ( * k ) ) ; if ( isNumber ) val = strtol ( word . c_str ( ) , nullptr , 10 ) ; return isNumber ; }
QQ is the given string (word) a number ?
QQ is the given string ( word ) a number ?