src/stdlib/SDL_iconv.c
changeset 2142 ca80c942e69c
parent 2136 5a1b6fe6e90f
child 2143 e906da4414a3
     1.1 --- a/src/stdlib/SDL_iconv.c	Tue Jul 03 09:55:29 2007 +0000
     1.2 +++ b/src/stdlib/SDL_iconv.c	Wed Jul 04 07:08:16 2007 +0000
     1.3 @@ -110,29 +110,33 @@
     1.4      const char *name;
     1.5      int format;
     1.6  } encodings[] = {
     1.7 -    {
     1.8 -    "ASCII", ENCODING_ASCII}, {
     1.9 -    "US-ASCII", ENCODING_ASCII}, {
    1.10 -    "LATIN1", ENCODING_LATIN1}, {
    1.11 -    "ISO-8859-1", ENCODING_LATIN1}, {
    1.12 -    "UTF8", ENCODING_UTF8}, {
    1.13 -    "UTF-8", ENCODING_UTF8}, {
    1.14 -    "UTF16", ENCODING_UTF16}, {
    1.15 -    "UTF-16", ENCODING_UTF16}, {
    1.16 -    "UTF16BE", ENCODING_UTF16BE}, {
    1.17 -    "UTF-16BE", ENCODING_UTF16BE}, {
    1.18 -    "UTF16LE", ENCODING_UTF16LE}, {
    1.19 -    "UTF-16LE", ENCODING_UTF16LE}, {
    1.20 -    "UTF32", ENCODING_UTF32}, {
    1.21 -    "UTF-32", ENCODING_UTF32}, {
    1.22 -    "UTF32BE", ENCODING_UTF32BE}, {
    1.23 -    "UTF-32BE", ENCODING_UTF32BE}, {
    1.24 -    "UTF32LE", ENCODING_UTF32LE}, {
    1.25 -    "UTF-32LE", ENCODING_UTF32LE}, {
    1.26 -    "UCS2", ENCODING_UCS2}, {
    1.27 -    "UCS-2", ENCODING_UCS2}, {
    1.28 -    "UCS4", ENCODING_UCS4}, {
    1.29 -"UCS-4", ENCODING_UCS4},};
    1.30 +/* *INDENT-OFF* */
    1.31 +    { "646", ENCODING_ASCII },
    1.32 +    { "ASCII", ENCODING_ASCII },
    1.33 +    { "US-ASCII", ENCODING_ASCII },
    1.34 +    { "LATIN1", ENCODING_LATIN1 },
    1.35 +    { "8859-1", ENCODING_LATIN1 },
    1.36 +    { "ISO-8859-1", ENCODING_LATIN1 },
    1.37 +    { "UTF8", ENCODING_UTF8 },
    1.38 +    { "UTF-8", ENCODING_UTF8 },
    1.39 +    { "UTF16", ENCODING_UTF16 },
    1.40 +    { "UTF-16", ENCODING_UTF16 },
    1.41 +    { "UTF16BE", ENCODING_UTF16BE },
    1.42 +    { "UTF-16BE", ENCODING_UTF16BE },
    1.43 +    { "UTF16LE", ENCODING_UTF16LE },
    1.44 +    { "UTF-16LE", ENCODING_UTF16LE },
    1.45 +    { "UTF32", ENCODING_UTF32 },
    1.46 +    { "UTF-32", ENCODING_UTF32 },
    1.47 +    { "UTF32BE", ENCODING_UTF32BE },
    1.48 +    { "UTF-32BE", ENCODING_UTF32BE },
    1.49 +    { "UTF32LE", ENCODING_UTF32LE },
    1.50 +    { "UTF-32LE", ENCODING_UTF32LE },
    1.51 +    { "UCS2", ENCODING_UCS2 },
    1.52 +    { "UCS-2", ENCODING_UCS2 },
    1.53 +    { "UCS4", ENCODING_UCS4 },
    1.54 +    { "UCS-4", ENCODING_UCS4 },
    1.55 +/* *INDENT-ON* */
    1.56 +};
    1.57  
    1.58  SDL_iconv_t
    1.59  SDL_iconv_open(const char *tocode, const char *fromcode)