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

Method getLastComponent

valdi_core/src/valdi_core/cpp/Utils/PathUtils.cpp:155–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155std::string_view Path::getLastComponent() const {
156 if (_components.empty()) {
157 return std::string_view();
158 }
159 return _components[_components.size() - 1];
160}
161
162Path& Path::removeLastComponent() {
163 if (!_components.empty()) {

Callers 2

sanitizeAssetFilenameMethod · 0.45

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected