sdlIconvUtf8Ucs2 function
const SDL_iconv_utf8_ucs2 = (S) (Uint16 *)SDL_iconv_string('UCS-2-INTERNAL', 'UTF-8', S, SDL_strlen(S)+1);
Implementation
Pointer<Uint16> sdlIconvUtf8Ucs2(String s) {
return sdlIconvString('UCS-2-INTERNAL', 'UTF-8', s, sdlStrlen(s) + 1)
.cast<Uint16>();
}