MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getFirstComponent

Method getFirstComponent

valdi_core/src/valdi_core/cpp/Utils/PathUtils.cpp:148–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148std::string Path::getFirstComponent() const {
149 if (_components.empty()) {
150 return std::string();
151 }
152 return _components[0];
153}
154
155std::string_view Path::getLastComponent() const {
156 if (_components.empty()) {

Callers 2

pathToResourceIdFunction · 0.80
resolveResourceIdMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected