| 17135 | } |
| 17136 | |
| 17137 | ada_string ada_get_host(ada_url result) noexcept { |
| 17138 | ada::result<ada::url_aggregator>& r = get_instance(result); |
| 17139 | if (!r) { |
| 17140 | return ada_string_create(nullptr, 0); |
| 17141 | } |
| 17142 | std::string_view out = r->get_host(); |
| 17143 | return ada_string_create(out.data(), out.length()); |
| 17144 | } |
| 17145 | |
| 17146 | ada_string ada_get_hostname(ada_url result) noexcept { |
| 17147 | ada::result<ada::url_aggregator>& r = get_instance(result); |
nothing calls this directly
no test coverage detected