MCPcopy Create free account
hub / github.com/NativeScript/android / ada_idna_to_unicode

Function ada_idna_to_unicode

test-app/runtime/src/main/cpp/ada/ada.cpp:17410–17417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17408}
17409
17410ada_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
17419ada_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));

Callers

nothing calls this directly

Calls 3

to_unicodeFunction · 0.85
lengthMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected