MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / normaliseOpt

Function normaliseOpt

unittests/catch.hpp:6143–6150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6141 };
6142
6143 inline auto normaliseOpt( std::string const &optName ) -> std::string {
6144#ifdef CATCH_PLATFORM_WINDOWS
6145 if( optName[0] == '/' )
6146 return "-" + optName.substr( 1 );
6147 else
6148#endif
6149 return optName;
6150 }
6151
6152 class Opt : public ParserRefImpl<Opt> {
6153 protected:

Callers 1

isMatchMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected