stdinc: Drastically improve SDL_StepUTF8() and make it a public API.

Fixes #10105.
This commit is contained in:
Ryan C. Gordon
2024-06-26 21:32:45 -04:00
parent 9b8c5f642f
commit a9cfcf6bde
8 changed files with 211 additions and 58 deletions

View File

@@ -25,8 +25,6 @@
// most things you might need internally in here are public APIs, this is
// just a few special pieces right now.
Uint32 SDL_StepUTF8(const char **_str, const size_t slen);
// this expects `from` to be a Unicode codepoint, and `to` to point to AT LEAST THREE Uint32s.
int SDL_CaseFoldUnicode(const Uint32 from, Uint32 *to);