comparison 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
comparison
equal deleted inserted replaced
4753:11b0a6a3eb4d 4754:2072fed2f583
468 #else 468 #else
469 extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, 469 extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src,
470 size_t maxlen); 470 size_t maxlen);
471 #endif 471 #endif
472 472
473 extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(char *dst, const char *src,
474 size_t dst_bytes);
475
473 #ifdef HAVE_STRLCAT 476 #ifdef HAVE_STRLCAT
474 #define SDL_strlcat strlcat 477 #define SDL_strlcat strlcat
475 #else 478 #else
476 extern DECLSPEC size_t SDLCALL SDL_strlcat(char *dst, const char *src, 479 extern DECLSPEC size_t SDLCALL SDL_strlcat(char *dst, const char *src,
477 size_t maxlen); 480 size_t maxlen);