| 6754 | constexpr void url::set_protocol_as_file() { type = ada::scheme::type::FILE; } |
| 6755 | |
| 6756 | inline 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 | |
| 6764 | constexpr void url::copy_scheme(ada::url &&u) noexcept { |
| 6765 | non_special_scheme = u.non_special_scheme; |
nothing calls this directly
no test coverage detected