SDL_tolower(3)
π SDL_tolower(3) β the SDL3 FUNCTIONS girlies' guide π
okay bestie, sit down, hydrate, and let's talk about SDL_tolower β she's a tiny little function with main character energy and exactly zero drama. β¨
πΈ NAME πΈ
SDL_tolower β Convert low-ASCII English letters to lowercase.
(yes that's it. she does one thing and she does it well. π )
π SYNOPSIS π
#include <SDL3/SDL_stdinc.h>
int SDL_tolower(int x);
π¦ DESCRIPTION π¦
β οΈ WARNING: Regardless of system locale, this will only convert ASCII values'A'through'Z'to lowercase.
like, read that again, fr fr. no matter what your locale is doing, this girl is ONLY touching 'A' through 'Z'. she is not doing accented letters, she is not doing your fancy Unicode stuff, she is not reading your environment variables. ASCII uppercase English letters only. that's the whole vibe. π
This function returns the lowercase equivalent of x. π·
And if a character cannot be converted, or is already lowercase, this function returns x β like, it just hands you back exactly what you gave it. no notes, no changes, no judgement. π
π FUNCTION PARAMETERS π
xβ character value to check. π
β RETURN VALUE β
Returns lowercase version of x, or x if no conversion available.
so basically: you get a lowercase letter back, or you get your original character back unchanged. either way you're getting something back, she would never ghost you. π«Ά
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. π§
go off, call her from literally anywhere, she's chill like that. no locks, no waiting, no "hold on bestie I'm busy". π
β¨ AVAILABILITY β¨
This function is available since SDL 3.2.0. π
if you're on something older than that, she simply does not exist yet and you're gonna have to cope. π
and that's the whole page!! short, sweet, iconic, ate and left no crumbs. πβ¨ππ¦πΈπ π«Ά
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_tolower(3) β mwah, love u, go lowercase something ππβ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms