| 12668 | } |
| 12669 | |
| 12670 | [[nodiscard]] std::string url::get_hash() const noexcept { |
| 12671 | // If this's URL's fragment is either null or the empty string, then return |
| 12672 | // the empty string. Return U+0023 (#), followed by this's URL's fragment. |
| 12673 | return (!hash.has_value() || (hash.value().empty())) ? "" |
| 12674 | : "#" + hash.value(); |
| 12675 | } |
| 12676 | |
| 12677 | template <bool override_hostname> |
| 12678 | bool url::set_host_or_hostname(const std::string_view input) { |
no test coverage detected