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

Function ada_get_hostname

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

Source from the content-addressed store, hash-verified

17144}
17145
17146ada_string ada_get_hostname(ada_url result) noexcept {
17147 ada::result<ada::url_aggregator>& r = get_instance(result);
17148 if (!r) {
17149 return ada_string_create(nullptr, 0);
17150 }
17151 std::string_view out = r->get_hostname();
17152 return ada_string_create(out.data(), out.length());
17153}
17154
17155ada_string ada_get_pathname(ada_url result) noexcept {
17156 ada::result<ada::url_aggregator>& r = get_instance(result);

Callers

nothing calls this directly

Calls 4

ada_string_createFunction · 0.85
get_hostnameMethod · 0.60
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected