MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / normaliseOpt

Function normaliseOpt

tests/catch.hpp:7254–7261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7252 };
7253
7254 inline auto normaliseOpt( std::string const &optName ) -> std::string {
7255#ifdef CATCH_PLATFORM_WINDOWS
7256 if( optName[0] == '/' )
7257 return "-" + optName.substr( 1 );
7258 else
7259#endif
7260 return optName;
7261 }
7262
7263 class Opt : public ParserRefImpl<Opt> {
7264 protected:

Callers 1

isMatchMethod · 0.85

Calls 1

substrMethod · 0.80

Tested by

no test coverage detected