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

Function normaliseOpt

extlibs/catch/include/catch/catch.hpp:9048–9055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9046 };
9047
9048 inline auto normaliseOpt( std::string const &optName ) -> std::string {
9049#ifdef CATCH_PLATFORM_WINDOWS
9050 if( optName[0] == '/' )
9051 return "-" + optName.substr( 1 );
9052 else
9053#endif
9054 return optName;
9055 }
9056
9057 class Opt : public ParserRefImpl<Opt> {
9058 protected:

Callers 1

isMatchMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected