Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 3997:6a4f3a32c2e6 SDL-1.2
Fixed bug #349
Solaris doesn't support the LATIN1 character set alias.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 04 Jul 2007 04:27:47 +0000 |
parents | b74530a1dad6 |
children | 098ac044cd2f |
comparison
equal
deleted
inserted
replaced
3996:5f463dddee36 | 3997:6a4f3a32c2e6 |
---|---|
582 extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); | 582 extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); |
583 /* This function converts a string between encodings in one pass, returning a | 583 /* This function converts a string between encodings in one pass, returning a |
584 string that must be freed with SDL_free() or NULL on error. | 584 string that must be freed with SDL_free() or NULL on error. |
585 */ | 585 */ |
586 extern DECLSPEC char * SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft); | 586 extern DECLSPEC char * SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft); |
587 #define SDL_iconv_utf8_ascii(S) SDL_iconv_string("ASCII", "UTF-8", S, SDL_strlen(S)+1) | 587 #define SDL_iconv_utf8_ascii(S) SDL_iconv_string("646", "UTF-8", S, SDL_strlen(S)+1) |
588 #define SDL_iconv_utf8_latin1(S) SDL_iconv_string("LATIN1", "UTF-8", S, SDL_strlen(S)+1) | 588 #define SDL_iconv_utf8_latin1(S) SDL_iconv_string("8859-1", "UTF-8", S, SDL_strlen(S)+1) |
589 #define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1) | 589 #define SDL_iconv_utf8_ucs2(S) (Uint16 *)SDL_iconv_string("UCS-2", "UTF-8", S, SDL_strlen(S)+1) |
590 #define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1) | 590 #define SDL_iconv_utf8_ucs4(S) (Uint32 *)SDL_iconv_string("UCS-4", "UTF-8", S, SDL_strlen(S)+1) |
591 | 591 |
592 /* Ends C function definitions when using C++ */ | 592 /* Ends C function definitions when using C++ */ |
593 #ifdef __cplusplus | 593 #ifdef __cplusplus |