encodings.defn
来自「实时测量与控制模块-v8.0-254M.zip」· DEFN 代码 · 共 861 行 · 第 1/3 页
DEFN
861 行
/* Copyright (C) 1999-2002 Free Software Foundation, Inc.
This file is part of the GNU LIBICONV Library.
The GNU LIBICONV Library is free software; you can redistribute it
and/or modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
The GNU LIBICONV Library is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU LIBICONV Library; see the file COPYING.LIB.
If not, write to the Free Software Foundation, Inc., 59 Temple Place -
Suite 330, Boston, MA 02111-1307, USA. */
/* The list of all system independent user-visible encodings. */
/* By convention, an encoding named FOOBAR or FOO_BAR or FOO-BAR is defined
in a file named "foobar.h" through the functions foobar_mbtowc and
foobar_wctomb (and possibly foobar_reset). */
/* DEFENCODING(( name, alias1, ..., ),
xxx,
{ xxx_mbtowc, xxx_flushwc },
{ xxx_wctomb, xxx_reset })
defines an encoding with the given name and aliases. (There is no
difference between a name and an alias. By convention, the name is chosen
as the preferred MIME name or the standard name.)
All names and aliases must be in ASCII. Case is not significant, but
for the "cs*" aliases mixed case is preferred, otherwise UPPERCASE is
preferred. For all names and aliases, note where it comes from.
xxx is the name as used in the C code (lowercase).
*/
DEFENCODING((
#if !LIB_TINY
"US-ASCII", /* IANA */
#endif //!LIB_TINY
"ASCII", /* IANA, JDK 1.1 */
#if !LIB_TINY
"ISO646-US", /* IANA */
"ISO_646.IRV:1991", /* IANA */
"ISO-IR-6", /* IANA */
"ANSI_X3.4-1968", /* IANA */
"ANSI_X3.4-1986", /* IANA */
"CP367", /* IANA */
"IBM367", /* IANA */
"US", /* IANA */
"csASCII", /* IANA */
/*"ISO646.1991-IRV", X11R6.4 */
#endif //!LIB_TINY
),
ascii,
{ ascii_mbtowc, NULL }, { ascii_wctomb, NULL })
/* General multi-byte encodings */
#if !LIB_TINY
DEFENCODING(( "UTF-8", /* IANA, RFC 2279 */
/*"UTF8", JDK 1.1 */
),
utf8,
{ utf8_mbtowc, NULL }, { utf8_wctomb, NULL })
DEFENCODING(( "UCS-2", /* glibc */
"ISO-10646-UCS-2", /* IANA */
"csUnicode", /* IANA */
),
ucs2,
{ ucs2_mbtowc, NULL }, { ucs2_wctomb, NULL })
DEFENCODING(( "UCS-2BE", /* glibc */
"UNICODEBIG", /* glibc */
"UNICODE-1-1", /* IANA */
"csUnicode11", /* IANA */
),
ucs2be,
{ ucs2be_mbtowc, NULL }, { ucs2be_wctomb, NULL })
DEFENCODING(( "UCS-2LE", /* glibc */
"UNICODELITTLE", /* glibc */
),
ucs2le,
{ ucs2le_mbtowc, NULL }, { ucs2le_wctomb, NULL })
DEFENCODING(( "UCS-4", /* glibc */
"ISO-10646-UCS-4", /* IANA */
"csUCS4", /* IANA */
),
ucs4,
{ ucs4_mbtowc, NULL }, { ucs4_wctomb, NULL })
DEFENCODING(( "UCS-4BE", /* glibc */
),
ucs4be,
{ ucs4be_mbtowc, NULL }, { ucs4be_wctomb, NULL })
DEFENCODING(( "UCS-4LE", /* glibc */
),
ucs4le,
{ ucs4le_mbtowc, NULL }, { ucs4le_wctomb, NULL })
#endif //!LIB_TINY
DEFENCODING(( "UTF-16", /* IANA, RFC 2781 */
),
utf16,
{ utf16_mbtowc, NULL }, { utf16_wctomb, NULL })
#if !LIB_TINY
DEFENCODING(( "UTF-16BE", /* IANA, RFC 2781 */
),
utf16be,
{ utf16be_mbtowc, NULL }, { utf16be_wctomb, NULL })
#endif //!LIB_TINY
DEFENCODING(( "UTF-16LE", /* IANA, RFC 2781 */
),
utf16le,
{ utf16le_mbtowc, NULL }, { utf16le_wctomb, NULL })
#if !LIB_TINY
DEFENCODING(( "UTF-32", /* Unicode 3.1 */
),
utf32,
{ utf32_mbtowc, NULL }, { utf32_wctomb, NULL })
DEFENCODING(( "UTF-32BE", /* Unicode 3.1 */
),
utf32be,
{ utf32be_mbtowc, NULL }, { utf32be_wctomb, NULL })
DEFENCODING(( "UTF-32LE", /* Unicode 3.1 */
),
utf32le,
{ utf32le_mbtowc, NULL }, { utf32le_wctomb, NULL })
DEFENCODING(( "UTF-7", /* IANA, RFC 2152 */
"UNICODE-1-1-UTF-7", /* IANA, RFC 1642 */
"csUnicode11UTF7", /* IANA */
),
utf7,
{ utf7_mbtowc, NULL }, { utf7_wctomb, utf7_reset })
DEFENCODING(( "UCS-2-INTERNAL", /* libiconv */
),
ucs2internal,
{ ucs2internal_mbtowc, NULL }, { ucs2internal_wctomb, NULL })
DEFENCODING(( "UCS-2-SWAPPED", /* libiconv */
),
ucs2swapped,
{ ucs2swapped_mbtowc, NULL }, { ucs2swapped_wctomb, NULL })
DEFENCODING(( "UCS-4-INTERNAL", /* libiconv */
),
ucs4internal,
{ ucs4internal_mbtowc, NULL },{ ucs4internal_wctomb, NULL })
DEFENCODING(( "UCS-4-SWAPPED", /* libiconv */
),
ucs4swapped,
{ ucs4swapped_mbtowc, NULL }, { ucs4swapped_wctomb, NULL })
DEFENCODING(( "C99",
),
c99,
{ c99_mbtowc, NULL }, { c99_wctomb, NULL })
DEFENCODING(( "JAVA",
),
java,
{ java_mbtowc, NULL }, { java_wctomb, NULL })
/* Standard 8-bit encodings */
#endif !LIB_TINY
DEFENCODING((
#if !LIB_TINY
"ISO-8859-1", /* IANA */
"ISO_8859-1", /* IANA */
"ISO_8859-1:1987", /* IANA */
"ISO-IR-100", /* IANA */
"CP819", /* IANA */
"IBM819", /* IANA */
"LATIN1", /* IANA */
#endif //!LIB_TINY
"L1", /* IANA */
#if !LIB_TINY
"csISOLatin1", /* IANA */
/*"ISO8859-1", X11R6.4, glibc */
/*"ISO8859_1", JDK 1.1 */
#endif //!LIB_TINY
),
iso8859_1,
{ iso8859_1_mbtowc, NULL }, { iso8859_1_wctomb, NULL })
#if !LIB_TINY
DEFENCODING(( "ISO-8859-2", /* IANA */
"ISO_8859-2", /* IANA */
"ISO_8859-2:1987", /* IANA */
"ISO-IR-101", /* IANA */
"LATIN2", /* IANA */
"L2", /* IANA */
"csISOLatin2", /* IANA */
/*"ISO8859-2", X11R6.4, glibc */
/*"ISO8859_2", JDK 1.1 */
),
iso8859_2,
{ iso8859_2_mbtowc, NULL }, { iso8859_2_wctomb, NULL })
DEFENCODING(( "ISO-8859-3", /* IANA */
"ISO_8859-3", /* IANA */
"ISO_8859-3:1988", /* IANA */
"ISO-IR-109", /* IANA */
"LATIN3", /* IANA */
"L3", /* IANA */
"csISOLatin3", /* IANA */
/*"ISO8859-3", X11R6.4, glibc */
/*"ISO8859_3", JDK 1.1 */
),
iso8859_3,
{ iso8859_3_mbtowc, NULL }, { iso8859_3_wctomb, NULL })
DEFENCODING(( "ISO-8859-4", /* IANA */
"ISO_8859-4", /* IANA */
"ISO_8859-4:1988", /* IANA */
"ISO-IR-110", /* IANA */
"LATIN4", /* IANA */
"L4", /* IANA */
"csISOLatin4", /* IANA */
/*"ISO8859-4", X11R6.4, glibc */
/*"ISO8859_4", JDK 1.1 */
),
iso8859_4,
{ iso8859_4_mbtowc, NULL }, { iso8859_4_wctomb, NULL })
DEFENCODING(( "ISO-8859-5", /* IANA */
"ISO_8859-5", /* IANA */
"ISO_8859-5:1988", /* IANA */
"ISO-IR-144", /* IANA */
"CYRILLIC", /* IANA */
"csISOLatinCyrillic", /* IANA */
/*"ISO8859-5", X11R6.4, glibc */
/*"ISO8859_5", JDK 1.1 */
),
iso8859_5,
{ iso8859_5_mbtowc, NULL }, { iso8859_5_wctomb, NULL })
DEFENCODING(( "ISO-8859-6", /* IANA */
"ISO_8859-6", /* IANA */
"ISO_8859-6:1987", /* IANA */
"ISO-IR-127", /* IANA */
"ECMA-114", /* IANA */
"ASMO-708", /* IANA */
"ARABIC", /* IANA */
"csISOLatinArabic", /* IANA */
/*"ISO8859-6", X11R6.4, glibc */
/*"ISO8859_6", JDK 1.1 */
),
iso8859_6,
{ iso8859_6_mbtowc, NULL }, { iso8859_6_wctomb, NULL })
DEFENCODING(( "ISO-8859-7", /* IANA, RFC 1947 */
"ISO_8859-7", /* IANA */
"ISO_8859-7:1987", /* IANA */
"ISO-IR-126", /* IANA */
"ECMA-118", /* IANA */
"ELOT_928", /* IANA */
"GREEK8", /* IANA */
"GREEK", /* IANA */
"csISOLatinGreek", /* IANA */
/*"ISO8859-7", X11R6.4, glibc */
/*"ISO8859_7", JDK 1.1 */
),
iso8859_7,
{ iso8859_7_mbtowc, NULL }, { iso8859_7_wctomb, NULL })
DEFENCODING(( "ISO-8859-8", /* IANA */
"ISO_8859-8", /* IANA */
"ISO_8859-8:1988", /* IANA */
"ISO-IR-138", /* IANA */
"HEBREW", /* IANA */
"csISOLatinHebrew", /* IANA */
/*"ISO8859-8", X11R6.4, glibc */
/*"ISO8859_8", JDK 1.1 */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?