Sync SDL3 wiki -> header

This commit is contained in:
SDL Wiki Bot
2024-07-04 15:12:07 +00:00
parent c3bf874abf
commit b43f1688d9

View File

@@ -1321,14 +1321,15 @@ extern SDL_DECLSPEC Uint32 SDLCALL SDL_StepUTF8(const char **pstr, size_t *pslen
* either case, plan to have a buffer of _more_ than 4 bytes!). * either case, plan to have a buffer of _more_ than 4 bytes!).
* *
* If `codepoint` is an invalid value (outside the Unicode range, or a UTF-16 * If `codepoint` is an invalid value (outside the Unicode range, or a UTF-16
* surrogate value, etc), this will use U+FFFD (REPLACEMENT CHARACTER) for * surrogate value, etc), this will use U+FFFD (REPLACEMENT CHARACTER) for the
* the codepoint instead, and not set an error. * codepoint instead, and not set an error.
* *
* If `dst` is NULL, this returns NULL immediately without writing to the * If `dst` is NULL, this returns NULL immediately without writing to the
* pointer and without setting an error. * pointer and without setting an error.
* *
* \param codepoint a Unicode codepoint to convert to UTF-8. * \param codepoint a Unicode codepoint to convert to UTF-8.
* \param dst the location to write the encoded UTF-8. Must point to at least 4 bytes! * \param dst the location to write the encoded UTF-8. Must point to at least
* 4 bytes!
* \returns the first byte past the newly-written UTF-8 sequence. * \returns the first byte past the newly-written UTF-8 sequence.
* *
* \threadsafety It is safe to call this function from any thread. * \threadsafety It is safe to call this function from any thread.