MCPcopy Create free account
hub / github.com/NativeScript/android / get_hash

Method get_hash

test-app/runtime/src/main/cpp/ada/ada.cpp:12670–12675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12668}
12669
12670[[nodiscard]] std::string url::get_hash() const noexcept {
12671 // If this's URL's fragment is either null or the empty string, then return
12672 // the empty string. Return U+0023 (#), followed by this's URL's fragment.
12673 return (!hash.has_value() || (hash.value().empty())) ? ""
12674 : "#" + hash.value();
12675}
12676
12677template <bool override_hostname>
12678bool url::set_host_or_hostname(const std::string_view input) {

Callers 3

processMethod · 0.60
canonicalize_hashFunction · 0.60
ada_get_hashFunction · 0.60

Calls 4

valueMethod · 0.80
has_valueMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected