Skip to content

Commit

Permalink
Sync SDL3 wiki -> header
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
SDLWikiBot committed Oct 9, 2024
1 parent f8eac30 commit 02f3a96
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions include/SDL3/SDL_stdinc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2472,8 +2472,8 @@ extern SDL_DECLSPEC char * SDLCALL SDL_strpbrk(const char *str, const char *brea
/**
* The Unicode REPLACEMENT CHARACTER codepoint.
*
* SDL_StepUTF8() and SDL_StepBackUTF8() report this codepoint when they encounter a UTF-8 string
* with encoding errors.
* SDL_StepUTF8() and SDL_StepBackUTF8() report this codepoint when they
* encounter a UTF-8 string with encoding errors.
*
* This tends to render as something like a question mark in most places.
*
Expand Down Expand Up @@ -2532,9 +2532,11 @@ extern SDL_DECLSPEC Uint32 SDLCALL SDL_StepUTF8(const char **pstr, size_t *pslen
/**
* Decode a UTF-8 string in reverse, one Unicode codepoint at a time.
*
* This will go to the start of the previous Unicode codepoint in the string, move `*pstr` to that location and return that codepoint.
* This will go to the start of the previous Unicode codepoint in the string,
* move `*pstr` to that location and return that codepoint.
*
* If the resulting codepoint is zero (already at the start of the string), it will not advance `*pstr` at all.
* If the resulting codepoint is zero (already at the start of the string), it
* will not advance `*pstr` at all.
*
* Generally this function is called in a loop until it returns zero,
* adjusting its parameter each iteration.
Expand Down

0 comments on commit 02f3a96

Please sign in to comment.