* nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call. (free_pwd...
[glibc.git] / iconv / gconv_builtin.h
blob554989be6b1f44fd7150a51472ddd9b64a0f6bd9
1 /* Builtin transformations.
2 Copyright (C) 1997, 1998 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,
33 4, 4, 4, 4)
34 BUILTIN_TRANSFORMATION (NULL, "ISO-10646/UCS4/", 15,
35 "INTERNAL", 1, "=ucs4->INTERNAL",
36 __gconv_transform_internal_ucs4, NULL, NULL,
37 4, 4, 4, 4)
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 ("OSF05010001//", "ISO-10646/UTF8/")
44 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8,
45 "ISO-10646/UTF8/", 1, "=INTERNAL->utf8",
46 __gconv_transform_internal_utf8, NULL, NULL,
47 4, 4, 1, 6)
49 BUILTIN_TRANSFORMATION ("ISO-10646/UTF-?8/", "ISO-10646/UTF", 13,
50 "INTERNAL", 1, "=utf8->INTERNAL",
51 __gconv_transform_utf8_internal, NULL, NULL,
52 1, 6, 4, 4)
54 BUILTIN_ALIAS ("UCS2//", "ISO-10646/UCS2/")
55 BUILTIN_ALIAS ("UCS-2//", "ISO-10646/UCS2/")
56 BUILTIN_ALIAS ("UNICODE//", "ISO-10646/UCS2/")
57 BUILTIN_ALIAS ("UNICODEBIG//", "ISO-10646/UCS2/")
58 BUILTIN_ALIAS ("OSF00010100//", "ISO-10646/UCS2/")
59 BUILTIN_ALIAS ("OSF00010101//", "ISO-10646/UCS2/")
60 BUILTIN_ALIAS ("OSF00010102//", "ISO-10646/UCS2/")
62 BUILTIN_TRANSFORMATION (NULL, "ISO-10646/UCS2/", 15, "INTERNAL",
63 1, "=ucs2->INTERNAL",
64 __gconv_transform_ucs2_internal, NULL, NULL,
65 2, 2, 4, 4)
67 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8, "ISO-10646/UCS2/",
68 1, "=INTERNAL->ucs2",
69 __gconv_transform_internal_ucs2, NULL, NULL,
70 4, 4, 2, 2)
73 BUILTIN_TRANSFORMATION (NULL, "UNICODELITTLE//", 15, "INTERNAL",
74 1, "=ucs2little->INTERNAL",
75 __gconv_transform_ucs2little_internal, NULL, NULL,
76 2, 2, 4, 4)
78 BUILTIN_TRANSFORMATION (NULL, "INTERNAL", 8, "UNICODELITTLE//",
79 1, "=INTERNAL->ucs2little",
80 __gconv_transform_internal_ucs2little, NULL, NULL,
81 4, 4, 2, 2)
84 BUILTIN_TRANSFORMATION ("(.*)", NULL, 0, "\\1", 1, "=dummy",
85 __gconv_transform_dummy, NULL, NULL,
86 1, 1, 1, 1)