sdlUtf8strlen function
extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str)
Implementation
int sdlUtf8strlen(String? str) {
final sdlUtf8strlenLookupFunction = libSdl2.lookupFunction<
Uint32 Function(Pointer<Utf8> str),
int Function(Pointer<Utf8> str)>('SDL_utf8strlen');
final strPointer = str != null ? str.toNativeUtf8() : nullptr;
final result = sdlUtf8strlenLookupFunction(strPointer);
calloc.free(strPointer);
return result;
}