| 14 | const std::string kInvalidArgument( "Invalid argument" ); |
| 15 | |
| 16 | bool IsNumber( const std::string& string ) |
| 17 | { |
| 18 | if( string.empty() ) |
| 19 | return false; |
| 20 | |
| 21 | return std::all_of( std::cbegin( string ), std::cend( string ), ::isdigit ); |
| 22 | } |
| 23 | |
| 24 | } // namespace |
| 25 |
no test coverage detected