sdlIconvUtf8Ucs2 function

Pointer<Uint16> sdlIconvUtf8Ucs2(
  1. String s
)
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>();
}