| 17144 | } |
| 17145 | |
| 17146 | ada_string ada_get_hostname(ada_url result) noexcept { |
| 17147 | ada::result<ada::url_aggregator>& r = get_instance(result); |
| 17148 | if (!r) { |
| 17149 | return ada_string_create(nullptr, 0); |
| 17150 | } |
| 17151 | std::string_view out = r->get_hostname(); |
| 17152 | return ada_string_create(out.data(), out.length()); |
| 17153 | } |
| 17154 | |
| 17155 | ada_string ada_get_pathname(ada_url result) noexcept { |
| 17156 | ada::result<ada::url_aggregator>& r = get_instance(result); |
nothing calls this directly
no test coverage detected