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

Function ValidateOptionLang

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

Source from the content-addressed store, hash-verified

50}
51
52std::string ValidateOptionLang( const std::string& lang )
53{
54 if( IsNumber( lang ) == false ) {
55 return kInvalidArgument;
56 }
57
58 try {
59 std::ignore = std::stoi( lang );
60 }
61 catch( const std::exception& e ) {
62 return e.what();
63 }
64
65 return {};
66}
67
68} // namespace rcedit

Callers

nothing calls this directly

Calls 2

IsNumberFunction · 0.85
whatMethod · 0.80

Tested by

no test coverage detected