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

Function ada_set_search

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

* Update the search/query of the URL. * * If a URL has `?` as the search value, passing empty string to this function * does not remove the attribute. If you need to remove it, please use * `ada_clear_search` method. */

Source from the content-addressed store, hash-verified

17272 * `ada_clear_search` method.
17273 */
17274void ada_set_search(ada_url result, const char* input, size_t length) noexcept {
17275 ada::result<ada::url_aggregator>& r = get_instance(result);
17276 if (r) {
17277 r->set_search(std::string_view(input, length));
17278 }
17279}
17280
17281/**
17282 * Update the hash/fragment of the URL.

Callers

nothing calls this directly

Calls 1

set_searchMethod · 0.80

Tested by

no test coverage detected