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

Function extractClassName

tests/catch.hpp:11608–11619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11606 }
11607
11608 std::string extractClassName( StringRef const& classOrQualifiedMethodName ) {
11609 std::string className = classOrQualifiedMethodName;
11610 if( startsWith( className, '&' ) )
11611 {
11612 std::size_t lastColons = className.rfind( "::" );
11613 std::size_t penultimateColons = className.rfind( "::", lastColons-1 );
11614 if( penultimateColons == std::string::npos )
11615 penultimateColons = 1;
11616 className = className.substr( penultimateColons, lastColons-penultimateColons );
11617 }
11618 return className;
11619 }
11620
11621} // end namespace Catch
11622// end catch_test_case_registry_impl.cpp

Callers 1

AutoRegMethod · 0.85

Calls 2

startsWithFunction · 0.85
substrMethod · 0.80

Tested by

no test coverage detected