MCPcopy Create free account
hub / github.com/Profactor/cv-plot / extractClassName

Function extractClassName

CvPlot/ext/catch2/inc/catch.hpp:14039–14050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14037 }
14038
14039 std::string extractClassName( StringRef const& classOrQualifiedMethodName ) {
14040 std::string className(classOrQualifiedMethodName);
14041 if( startsWith( className, '&' ) )
14042 {
14043 std::size_t lastColons = className.rfind( "::" );
14044 std::size_t penultimateColons = className.rfind( "::", lastColons-1 );
14045 if( penultimateColons == std::string::npos )
14046 penultimateColons = 1;
14047 className = className.substr( penultimateColons, lastColons-penultimateColons );
14048 }
14049 return className;
14050 }
14051
14052} // end namespace Catch
14053// 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