| 12020 | namespace ada { |
| 12021 | |
| 12022 | bool 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 | |
| 12035 | bool url::parse_ipv4(std::string_view input) { |
| 12036 | ada_log("parse_ipv4 ", input, " [", input.size(), " bytes]"); |
nothing calls this directly
no test coverage detected