1 /* Builtin transformations.
2 Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
6 The GNU C Library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public License as
8 published by the Free Software Foundation; either version 2 of the
9 License, or (at your option) any later version.
11 The GNU C Library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public
17 License along with the GNU C Library; see the file COPYING.LIB. If not,
18 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 BUILTIN_ALIAS ("UCS4//", "ISO-10646/UCS4/")
22 BUILTIN_ALIAS ("UCS-4//", "ISO-10646/UCS4/")
23 BUILTIN_ALIAS ("ISO-10646//", "ISO-10646/UCS4/")
24 BUILTIN_ALIAS ("10646-1:1993//", "ISO-10646/UCS4/")
25 BUILTIN_ALIAS ("10646-1:1993/UCS4/", "ISO-10646/UCS4/")
26 BUILTIN_ALIAS ("OSF00010104//", "ISO-10646/UCS4/")
27 BUILTIN_ALIAS ("OSF00010105//", "ISO-10646/UCS4/")
28 BUILTIN_ALIAS ("OSF00010106//", "ISO-10646/UCS4/")
30 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8,
31 "ISO-10646/UCS4/", 1, "=INTERNAL->ucs4",
32 __gconv_transform_internal_ucs4, NULL, NULL,
34 BUILTIN_TRANSFORMATION (NULL, "ISO-10646/UCS4/", 15,
35 "INTERNAL", 1, "=ucs4->INTERNAL",
36 __gconv_transform_internal_ucs4, NULL, NULL,
38 /* Please note that we need only one function for both direction. */
40 BUILTIN_ALIAS ("UTF8//", "ISO-10646/UTF8/")
41 BUILTIN_ALIAS ("UTF-8//", "ISO-10646/UTF8/")
42 BUILTIN_ALIAS ("ISO-IR-193//", "ISO-10646/UTF8/")
43 BUILTIN_ALIAS ("OSF05010001//", "ISO-10646/UTF8/")
45 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8,
46 "ISO-10646/UTF8/", 1, "=INTERNAL->utf8",
47 __gconv_transform_internal_utf8, NULL, NULL,
50 BUILTIN_TRANSFORMATION ("ISO-10646/UTF-?8/", "ISO-10646/UTF", 13,
51 "INTERNAL", 1, "=utf8->INTERNAL",
52 __gconv_transform_utf8_internal, NULL, NULL,
55 BUILTIN_ALIAS ("UCS2//", "ISO-10646/UCS2/")
56 BUILTIN_ALIAS ("UCS-2//", "ISO-10646/UCS2/")
57 BUILTIN_ALIAS ("UNICODE//", "ISO-10646/UCS2/")
58 BUILTIN_ALIAS ("UNICODEBIG//", "ISO-10646/UCS2/")
59 BUILTIN_ALIAS ("OSF00010100//", "ISO-10646/UCS2/")
60 BUILTIN_ALIAS ("OSF00010101//", "ISO-10646/UCS2/")
61 BUILTIN_ALIAS ("OSF00010102//", "ISO-10646/UCS2/")
63 BUILTIN_TRANSFORMATION (NULL, "ISO-10646/UCS2/", 15, "INTERNAL",
65 __gconv_transform_ucs2_internal, NULL, NULL,
68 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8, "ISO-10646/UCS2/",
70 __gconv_transform_internal_ucs2, NULL, NULL,
74 BUILTIN_TRANSFORMATION (NULL, "UNICODELITTLE//", 15, "INTERNAL",
75 1, "=ucs2little->INTERNAL",
76 __gconv_transform_ucs2little_internal, NULL, NULL,
79 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8, "UNICODELITTLE//",
80 1, "=INTERNAL->ucs2little",
81 __gconv_transform_internal_ucs2little, NULL, NULL,
84 BUILTIN_ALIAS ("UTF-16//", "UTF16//")
86 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8, "UTF16//",
87 1, "=INTERNAL->utf16",
88 __gconv_transform_internal_utf16, NULL, NULL,
91 BUILTIN_TRANSFORMATION (NULL, "UTF16//", 7, "INTERNAL",
92 1, "=utf16->INTERNAL",
93 __gconv_transform_utf16_internal, NULL, NULL,