Mercurial > sdl-ios-xcode
diff include/SDL_stdinc.h @ 4754:2072fed2f583
Added SDL_utf8strlcpy to copy at UTF-8 character boundaries.
Changed SDL_SendKeyboardText and SDL_SendEditingText to use SDL_utf8strlcpy.
author | dewyatt |
---|---|
date | Tue, 13 Jul 2010 15:05:45 -0400 |
parents | f7b03b6838cb |
children | 436183eb30c8 |
line wrap: on
line diff
--- a/include/SDL_stdinc.h Mon Jul 12 14:17:43 2010 -0400 +++ b/include/SDL_stdinc.h Tue Jul 13 15:05:45 2010 -0400 @@ -470,6 +470,9 @@ size_t maxlen); #endif +extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(char *dst, const char *src, + size_t dst_bytes); + #ifdef HAVE_STRLCAT #define SDL_strlcat strlcat #else