MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / getLeafname

Function getLeafname

lib/core/utils.cc:110–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110std::string getLeafname(const std::string& value)
111{
112 constexpr char sep = '/';
113
114 size_t i = value.find_last_of(SEPARATORS);
115 if (i != std::string::npos)
116 {
117 return value.substr(i + 1, value.length() - i);
118 }
119
120 return value;
121}
122
123void testForEmergencyStop()
124{

Callers 2

insertFileFunction · 0.85
testLeafnameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected