MCPcopy Create free account
hub / github.com/DFIR-ORC/dfir-orc / IsNumber

Function IsNumber

tools/rcedit/src/cmd/validators.cpp:16–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14const std::string kInvalidArgument( "Invalid argument" );
15
16bool 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

Callers 2

ValidateOptionTypeOrNameFunction · 0.85
ValidateOptionLangFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected