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

Method set_scheme

test-app/runtime/src/main/cpp/ada/ada.h:6756–6762  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6754constexpr void url::set_protocol_as_file() { type = ada::scheme::type::FILE; }
6755
6756inline void url::set_scheme(std::string &&new_scheme) noexcept {
6757 type = ada::scheme::get_scheme_type(new_scheme);
6758 // We only move the 'scheme' if it is non-special.
6759 if (!is_special()) {
6760 non_special_scheme = std::move(new_scheme);
6761 }
6762}
6763
6764constexpr void url::copy_scheme(ada::url &&u) noexcept {
6765 non_special_scheme = u.non_special_scheme;

Callers

nothing calls this directly

Calls 2

get_scheme_typeFunction · 0.85
is_specialFunction · 0.85

Tested by

no test coverage detected