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

Function extractClassName

tutorials/external/catch.hpp:11885–11896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11883 }
11884
11885 std::string extractClassName( StringRef const& classOrQualifiedMethodName ) {
11886 std::string className = classOrQualifiedMethodName;
11887 if( startsWith( className, '&' ) )
11888 {
11889 std::size_t lastColons = className.rfind( "::" );
11890 std::size_t penultimateColons = className.rfind( "::", lastColons-1 );
11891 if( penultimateColons == std::string::npos )
11892 penultimateColons = 1;
11893 className = className.substr( penultimateColons, lastColons-penultimateColons );
11894 }
11895 return className;
11896 }
11897
11898} // end namespace Catch
11899// end catch_test_case_registry_impl.cpp

Callers 1

AutoRegMethod · 0.85

Calls 2

substrMethod · 0.80
startsWithFunction · 0.70

Tested by

no test coverage detected