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

Function ada_set_hash

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

* Update the hash/fragment of the URL. * * If a URL has `#` as the hash value, passing empty string to this function * does not remove the attribute. If you need to remove it, please use * `ada_clear_hash` method. */

Source from the content-addressed store, hash-verified

17286 * `ada_clear_hash` method.
17287 */
17288void ada_set_hash(ada_url result, const char* input, size_t length) noexcept {
17289 ada::result<ada::url_aggregator>& r = get_instance(result);
17290 if (r) {
17291 r->set_hash(std::string_view(input, length));
17292 }
17293}
17294
17295void ada_clear_port(ada_url result) noexcept {
17296 ada::result<ada::url_aggregator>& r = get_instance(result);

Callers

nothing calls this directly

Calls 1

set_hashMethod · 0.80

Tested by

no test coverage detected