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

Function ada_get_pathname

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

Source from the content-addressed store, hash-verified

17153}
17154
17155ada_string ada_get_pathname(ada_url result) noexcept {
17156 ada::result<ada::url_aggregator>& r = get_instance(result);
17157 if (!r) {
17158 return ada_string_create(nullptr, 0);
17159 }
17160 std::string_view out = r->get_pathname();
17161 return ada_string_create(out.data(), out.length());
17162}
17163
17164ada_string ada_get_search(ada_url result) noexcept {
17165 ada::result<ada::url_aggregator>& r = get_instance(result);

Callers

nothing calls this directly

Calls 4

ada_string_createFunction · 0.85
get_pathnameMethod · 0.80
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected