| 17408 | } |
| 17409 | |
| 17410 | ada_owned_string ada_idna_to_unicode(const char* input, size_t length) { |
| 17411 | std::string out = ada::idna::to_unicode(std::string_view(input, length)); |
| 17412 | ada_owned_string owned{}; |
| 17413 | owned.length = out.length(); |
| 17414 | owned.data = new char[owned.length]; |
| 17415 | memcpy((void*)owned.data, out.data(), owned.length); |
| 17416 | return owned; |
| 17417 | } |
| 17418 | |
| 17419 | ada_owned_string ada_idna_to_ascii(const char* input, size_t length) { |
| 17420 | std::string out = ada::idna::to_ascii(std::string_view(input, length)); |
nothing calls this directly
no test coverage detected