Back to index

glibc  2.9
gconv_builtin.h
Go to the documentation of this file.
00001 /* Builtin transformations.
00002    Copyright (C) 1997-1999, 2000-2002, 2006 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
00005 
00006    The GNU C Library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License as published by the Free Software Foundation; either
00009    version 2.1 of the License, or (at your option) any later version.
00010 
00011    The GNU C Library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Lesser General Public License for more details.
00015 
00016    You should have received a copy of the GNU Lesser General Public
00017    License along with the GNU C Library; if not, write to the Free
00018    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00019    02111-1307 USA.  */
00020 
00021 /* All encoding named must be in upper case.  There must be no extra
00022    spaces.  */
00023 
00024 BUILTIN_ALIAS ("UCS4//", "ISO-10646/UCS4/")
00025 BUILTIN_ALIAS ("UCS-4//", "ISO-10646/UCS4/")
00026 BUILTIN_ALIAS ("UCS-4BE//", "ISO-10646/UCS4/")
00027 BUILTIN_ALIAS ("CSUCS4//", "ISO-10646/UCS4/")
00028 BUILTIN_ALIAS ("ISO-10646//", "ISO-10646/UCS4/")
00029 BUILTIN_ALIAS ("10646-1:1993//", "ISO-10646/UCS4/")
00030 BUILTIN_ALIAS ("10646-1:1993/UCS4/", "ISO-10646/UCS4/")
00031 BUILTIN_ALIAS ("OSF00010104//", "ISO-10646/UCS4/") /* level 1 */
00032 BUILTIN_ALIAS ("OSF00010105//", "ISO-10646/UCS4/") /* level 2 */
00033 BUILTIN_ALIAS ("OSF00010106//", "ISO-10646/UCS4/") /* level 3 */
00034 
00035 BUILTIN_TRANSFORMATION ("INTERNAL", "ISO-10646/UCS4/", 1, "=INTERNAL->ucs4",
00036                      __gconv_transform_internal_ucs4, NULL, 4, 4, 4, 4)
00037 BUILTIN_TRANSFORMATION ("ISO-10646/UCS4/", "INTERNAL", 1, "=ucs4->INTERNAL",
00038                      __gconv_transform_ucs4_internal, NULL, 4, 4, 4, 4)
00039 
00040 BUILTIN_TRANSFORMATION ("INTERNAL", "UCS-4LE//", 1, "=INTERNAL->ucs4le",
00041                      __gconv_transform_internal_ucs4le, NULL, 4, 4, 4, 4)
00042 BUILTIN_TRANSFORMATION ("UCS-4LE//", "INTERNAL", 1, "=ucs4le->INTERNAL",
00043                      __gconv_transform_ucs4le_internal, NULL, 4, 4, 4, 4)
00044 
00045 BUILTIN_ALIAS ("WCHAR_T//", "INTERNAL")
00046 
00047 BUILTIN_ALIAS ("UTF8//", "ISO-10646/UTF8/")
00048 BUILTIN_ALIAS ("UTF-8//", "ISO-10646/UTF8/")
00049 BUILTIN_ALIAS ("ISO-IR-193//", "ISO-10646/UTF8/")
00050 BUILTIN_ALIAS ("OSF05010001//", "ISO-10646/UTF8/")
00051 BUILTIN_ALIAS ("ISO-10646/UTF-8/", "ISO-10646/UTF8/")
00052 
00053 BUILTIN_TRANSFORMATION ("INTERNAL", "ISO-10646/UTF8/", 1, "=INTERNAL->utf8",
00054                      __gconv_transform_internal_utf8, NULL, 4, 4, 1, 6)
00055 
00056 BUILTIN_TRANSFORMATION ("ISO-10646/UTF8/", "INTERNAL", 1, "=utf8->INTERNAL",
00057                      __gconv_transform_utf8_internal, __gconv_btwoc_ascii,
00058                      1, 6, 4, 4)
00059 
00060 BUILTIN_ALIAS ("UCS2//", "ISO-10646/UCS2/")
00061 BUILTIN_ALIAS ("UCS-2//", "ISO-10646/UCS2/")
00062 BUILTIN_ALIAS ("OSF00010100//", "ISO-10646/UCS2/") /* level 1 */
00063 BUILTIN_ALIAS ("OSF00010101//", "ISO-10646/UCS2/") /* level 2 */
00064 BUILTIN_ALIAS ("OSF00010102//", "ISO-10646/UCS2/") /* level 3 */
00065 
00066 BUILTIN_TRANSFORMATION ("ISO-10646/UCS2/", "INTERNAL", 1, "=ucs2->INTERNAL",
00067                      __gconv_transform_ucs2_internal, NULL, 2, 2, 4, 4)
00068 
00069 BUILTIN_TRANSFORMATION ("INTERNAL", "ISO-10646/UCS2/", 1, "=INTERNAL->ucs2",
00070                      __gconv_transform_internal_ucs2, NULL, 4, 4, 2, 2)
00071 
00072 
00073 BUILTIN_ALIAS ("ANSI_X3.4//", "ANSI_X3.4-1968//")
00074 BUILTIN_ALIAS ("ISO-IR-6//", "ANSI_X3.4-1968//")
00075 BUILTIN_ALIAS ("ANSI_X3.4-1986//", "ANSI_X3.4-1968//")
00076 BUILTIN_ALIAS ("ISO_646.IRV:1991//", "ANSI_X3.4-1968//")
00077 BUILTIN_ALIAS ("ASCII//", "ANSI_X3.4-1968//")
00078 BUILTIN_ALIAS ("ISO646-US//", "ANSI_X3.4-1968//")
00079 BUILTIN_ALIAS ("US-ASCII//", "ANSI_X3.4-1968//")
00080 BUILTIN_ALIAS ("US//", "ANSI_X3.4-1968//")
00081 BUILTIN_ALIAS ("IBM367//", "ANSI_X3.4-1968//")
00082 BUILTIN_ALIAS ("CP367//", "ANSI_X3.4-1968//")
00083 BUILTIN_ALIAS ("CSASCII//", "ANSI_X3.4-1968//")
00084 BUILTIN_ALIAS ("OSF00010020//", "ANSI_X3.4-1968//")
00085 
00086 BUILTIN_TRANSFORMATION ("ANSI_X3.4-1968//", "INTERNAL", 1, "=ascii->INTERNAL",
00087                      __gconv_transform_ascii_internal, __gconv_btwoc_ascii,
00088                      4, 4, 1, 1)
00089 
00090 BUILTIN_TRANSFORMATION ("INTERNAL", "ANSI_X3.4-1968//", 1, "=INTERNAL->ascii",
00091                      __gconv_transform_internal_ascii, NULL, 4, 4, 1, 1)
00092 
00093 
00094 #if BYTE_ORDER == BIG_ENDIAN
00095 BUILTIN_ALIAS ("UNICODEBIG//", "ISO-10646/UCS2/")
00096 BUILTIN_ALIAS ("UCS-2BE//", "ISO-10646/UCS2/")
00097 
00098 BUILTIN_ALIAS ("UCS-2LE//", "UNICODELITTLE//")
00099 
00100 BUILTIN_TRANSFORMATION ("UNICODELITTLE//", "INTERNAL", 1,
00101                      "=ucs2reverse->INTERNAL",
00102                      __gconv_transform_ucs2reverse_internal, NULL,
00103                      2, 2, 4, 4)
00104 
00105 BUILTIN_TRANSFORMATION ("INTERNAL", "UNICODELITTLE//", 1,
00106                      "=INTERNAL->ucs2reverse",
00107                      __gconv_transform_internal_ucs2reverse, NULL,
00108                      4, 4, 2, 2)
00109 #else
00110 BUILTIN_ALIAS ("UNICODELITTLE//", "ISO-10646/UCS2/")
00111 BUILTIN_ALIAS ("UCS-2LE//", "ISO-10646/UCS2/")
00112 
00113 BUILTIN_ALIAS ("UCS-2BE//", "UNICODEBIG//")
00114 
00115 BUILTIN_TRANSFORMATION ("UNICODEBIG//", "INTERNAL", 1,
00116                      "=ucs2reverse->INTERNAL",
00117                      __gconv_transform_ucs2reverse_internal, NULL,
00118                      2, 2, 4, 4)
00119 
00120 BUILTIN_TRANSFORMATION ("INTERNAL", "UNICODEBIG//", 1,
00121                      "=INTERNAL->ucs2reverse",
00122                      __gconv_transform_internal_ucs2reverse, NULL,
00123                      4, 4, 2, 2)
00124 #endif