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

Method get_protocol

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

Source from the content-addressed store, hash-verified

12623}
12624
12625[[nodiscard]] std::string url::get_protocol() const noexcept {
12626 if (is_special()) {
12627 return helpers::concat(ada::scheme::details::is_special_list[type], ":");
12628 }
12629 // We only move the 'scheme' if it is non-special.
12630 return helpers::concat(non_special_scheme, ":");
12631}
12632
12633[[nodiscard]] std::string url::get_host() const noexcept {
12634 // If url's host is null, then return the empty string.

Callers 6

get_originMethod · 0.60
parse_url_implFunction · 0.60
copy_schemeMethod · 0.60
processMethod · 0.60
canonicalize_protocolFunction · 0.60
ada_get_protocolFunction · 0.60

Calls 2

is_specialFunction · 0.85
concatFunction · 0.85

Tested by

no test coverage detected