* Update the hash/fragment of the URL. * * If a URL has `#` as the hash value, passing empty string to this function * does not remove the attribute. If you need to remove it, please use * `ada_clear_hash` method. */
| 17286 | * `ada_clear_hash` method. |
| 17287 | */ |
| 17288 | void ada_set_hash(ada_url result, const char* input, size_t length) noexcept { |
| 17289 | ada::result<ada::url_aggregator>& r = get_instance(result); |
| 17290 | if (r) { |
| 17291 | r->set_hash(std::string_view(input, length)); |
| 17292 | } |
| 17293 | } |
| 17294 | |
| 17295 | void ada_clear_port(ada_url result) noexcept { |
| 17296 | ada::result<ada::url_aggregator>& r = get_instance(result); |