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

Method toAbsolutePath

valdi_core/src/valdi_core/cpp/Resources/ResourceId.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::string ResourceId::toAbsolutePath() const {
40 if (bundleName.isEmpty()) {
41 return resourcePath.slowToString();
42 }
43
44 std::string out;
45 out.reserve(bundleName.length() + resourcePath.length() + 1);
46 out.append(bundleName.toStringView());
47 out += '/';
48 out.append(resourcePath.toStringView());
49
50 return out;
51}
52
53std::ostream& operator<<(std::ostream& os, const ResourceId& d) noexcept {
54 return os << d.toAbsolutePath();

Callers 3

toStringMethod · 0.45
ResourceId.cppFile · 0.45
loadLibsFromJarPathMethod · 0.45

Calls 6

slowToStringMethod · 0.80
appendMethod · 0.65
isEmptyMethod · 0.45
reserveMethod · 0.45
lengthMethod · 0.45
toStringViewMethod · 0.45

Tested by

no test coverage detected