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

Method parse_opaque_host

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

Source from the content-addressed store, hash-verified

12020namespace ada {
12021
12022bool url::parse_opaque_host(std::string_view input) {
12023 ada_log("parse_opaque_host ", input, " [", input.size(), " bytes]");
12024 if (std::ranges::any_of(input, ada::unicode::is_forbidden_host_code_point)) {
12025 return is_valid = false;
12026 }
12027
12028 // Return the result of running UTF-8 percent-encode on input using the C0
12029 // control percent-encode set.
12030 host = ada::unicode::percent_encode(
12031 input, ada::character_sets::C0_CONTROL_PERCENT_ENCODE);
12032 return true;
12033}
12034
12035bool url::parse_ipv4(std::string_view input) {
12036 ada_log("parse_ipv4 ", input, " [", input.size(), " bytes]");

Callers

nothing calls this directly

Calls 4

percent_encodeFunction · 0.85
overlapsFunction · 0.85
percent_encode_indexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected