sdlTolower function

int sdlTolower(
  1. int x
)

Convert low-ASCII English letters to lowercase.

WARNING: Regardless of system locale, this will only convert ASCII values 'A' through 'Z' to lowercase.

This function returns the lowercase equivalent of x. If a character cannot be converted, or is already lowercase, this function returns x.

\param x character value to check. \returns lowercase version of x, or x if no conversion available.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC int SDLCALL SDL_tolower(int x)

Implementation

int sdlTolower(int x) {
  final sdlTolowerLookupFunction =
      libSdl3.lookupFunction<Int32 Function(Int32 x), int Function(int x)>(
          'SDL_tolower');
  return sdlTolowerLookupFunction(x);
}