MCPcopy Create free account
hub / github.com/RenderKit/embree / normaliseOpt

Function normaliseOpt

tutorials/external/catch.hpp:7473–7480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7471 };
7472
7473 inline auto normaliseOpt( std::string const &optName ) -> std::string {
7474#ifdef CATCH_PLATFORM_WINDOWS
7475 if( optName[0] == '/' )
7476 return "-" + optName.substr( 1 );
7477 else
7478#endif
7479 return optName;
7480 }
7481
7482 class Opt : public ParserRefImpl<Opt> {
7483 protected:

Callers 1

isMatchMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected