include/SDL_stdinc.h
changeset 2142 ca80c942e69c
parent 2135 0313af081a84
child 2143 e906da4414a3
equal deleted inserted replaced
2141:e1a70460c354 2142:ca80c942e69c
   654 */
   654 */
   655 extern DECLSPEC char *SDLCALL SDL_iconv_string(const char *tocode,
   655 extern DECLSPEC char *SDLCALL SDL_iconv_string(const char *tocode,
   656                                                const char *fromcode,
   656                                                const char *fromcode,
   657                                                const char *inbuf,
   657                                                const char *inbuf,
   658                                                size_t inbytesleft);
   658                                                size_t inbytesleft);
   659 #define SDL_iconv_utf8_ascii(S)		SDL_iconv_string("ASCII", "UTF-8", S, SDL_strlen(S)+1)
   659 #define SDL_iconv_utf8_ascii(S)		SDL_iconv_string("646", "UTF-8", S, SDL_strlen(S)+1)
   660 #define SDL_iconv_utf8_latin1(S)	SDL_iconv_string("LATIN1", "UTF-8", S, SDL_strlen(S)+1)
   660 #define SDL_iconv_utf8_latin1(S)	SDL_iconv_string("8859-1", "UTF-8", S, SDL_strlen(S)+1)
   661 #define SDL_iconv_utf8_ucs2(S)		(Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1)
   661 #define SDL_iconv_utf8_ucs2(S)		(Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1)
   662 #define SDL_iconv_utf8_ucs4(S)		(Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1)
   662 #define SDL_iconv_utf8_ucs4(S)		(Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1)
   663 
   663 
   664 /* Ends C function definitions when using C++ */
   664 /* Ends C function definitions when using C++ */
   665 #ifdef __cplusplus
   665 #ifdef __cplusplus