MCPcopy Create free account
hub / github.com/RenderKit/oidn / extractClassName

Function extractClassName

external/catch.hpp:14320–14331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14318 }
14319
14320 std::string extractClassName( StringRef const& classOrQualifiedMethodName ) {
14321 std::string className(classOrQualifiedMethodName);
14322 if( startsWith( className, '&' ) )
14323 {
14324 std::size_t lastColons = className.rfind( "::" );
14325 std::size_t penultimateColons = className.rfind( "::", lastColons-1 );
14326 if( penultimateColons == std::string::npos )
14327 penultimateColons = 1;
14328 className = className.substr( penultimateColons, lastColons-penultimateColons );
14329 }
14330 return className;
14331 }
14332
14333} // end namespace Catch
14334// 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