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

Method isURL

valdi_core/src/valdi_core/cpp/Resources/Asset.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 std::optional<bool> rightToLeft)
19 : colorPalette(std::move(colorPalette)), platformType(platformType), rightToLeft(rightToLeft) {}
20
21bool Asset::needResolve() const {
22 return !getResolvedLocation().has_value();
23}
24
25bool Asset::isURL() const {
26 auto resolvedLocation = getResolvedLocation();
27 if (!resolvedLocation) {
28 return false;
29 }
30

Callers

nothing calls this directly

Calls 2

isLocalMethod · 0.80
valueMethod · 0.65

Tested by

no test coverage detected