#include <stdlib.h>#include <stdio.h>#include <locale.h>#include <ctype.h>#include "regenc.h"Go to the source code of this file.
Data Structures | |
| struct | ENC_INFO |
Defines | |
| #define | __USE_ISOC99 |
| #define | ASCII 0 |
| #define | UNICODE_ISO_8859_1 1 |
| #define | ISO_8859_1 2 |
| #define | ISO_8859_2 3 |
| #define | ISO_8859_3 4 |
| #define | ISO_8859_4 5 |
| #define | ISO_8859_5 6 |
| #define | ISO_8859_6 7 |
| #define | ISO_8859_7 8 |
| #define | ISO_8859_8 9 |
| #define | ISO_8859_9 10 |
| #define | ISO_8859_10 11 |
| #define | ISO_8859_11 12 |
| #define | ISO_8859_13 13 |
| #define | ISO_8859_14 14 |
| #define | ISO_8859_15 15 |
| #define | ISO_8859_16 16 |
| #define | KOI8 17 |
| #define | KOI8_R 18 |
| #define | NCOL 8 |
Functions | |
| static int | IsAlpha (int enc, int c) |
| static int | IsBlank (int enc, int c) |
| static int | IsCntrl (int enc, int c) |
| static int | IsDigit (int enc ARG_UNUSED, int c) |
| static int | IsGraph (int enc, int c) |
| static int | IsLower (int enc, int c) |
| static int | IsPrint (int enc, int c) |
| static int | IsPunct (int enc, int c) |
| static int | IsSpace (int enc, int c) |
| static int | IsUpper (int enc, int c) |
| static int | IsXDigit (int enc, int c) |
| static int | IsWord (int enc, int c) |
| static int | IsAscii (int enc ARG_UNUSED, int c) |
| static int | IsNewline (int enc ARG_UNUSED, int c) |
| static int | exec (FILE *fp, ENC_INFO *einfo) |
| int | main (int argc ARG_UNUSED, char *argv[] ARG_UNUSED) |
Variables | |
| static ENC_INFO | Info [] |
| #define ASCII 0 |
Definition at line 39 of file mktable.c.
Referenced by broken_getc(), e_oconv(), IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), IsWord(), IsXDigit(), j_oconv(), kanji_convert(), mime_getc(), mime_prechar(), rb_enc_init(), reinit(), and s_oconv().
| #define ISO_8859_1 2 |
Definition at line 41 of file mktable.c.
Referenced by e_iconv(), e_oconv(), IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), IsWord(), j_oconv(), kanji_convert(), mime_prechar(), options(), output_escape_sequence(), rot_conv(), s_oconv(), set_input_encoding(), and w_oconv32().
| #define ISO_8859_10 11 |
| #define ISO_8859_11 12 |
| #define ISO_8859_13 13 |
| #define ISO_8859_14 14 |
| #define ISO_8859_15 15 |
| #define ISO_8859_16 16 |
| #define ISO_8859_2 3 |
| #define ISO_8859_3 4 |
| #define ISO_8859_4 5 |
| #define ISO_8859_5 6 |
| #define ISO_8859_6 7 |
| #define ISO_8859_7 8 |
| #define ISO_8859_8 9 |
| #define ISO_8859_9 10 |
| #define KOI8 17 |
| #define KOI8_R 18 |
| #define NCOL 8 |
Referenced by exec().
| #define UNICODE_ISO_8859_1 1 |
Definition at line 1106 of file mktable.c.
References BIT_CTYPE_ALNUM, BIT_CTYPE_ALPHA, BIT_CTYPE_ASCII, BIT_CTYPE_BLANK, BIT_CTYPE_CNTRL, BIT_CTYPE_DIGIT, BIT_CTYPE_GRAPH, BIT_CTYPE_LOWER, BIT_CTYPE_NEWLINE, BIT_CTYPE_PRINT, BIT_CTYPE_PUNCT, BIT_CTYPE_SPACE, BIT_CTYPE_UPPER, BIT_CTYPE_WORD, BIT_CTYPE_XDIGIT, IsAlpha(), IsAscii(), IsBlank(), IsCntrl(), IsDigit(), IsGraph(), IsLower(), IsNewline(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), IsWord(), IsXDigit(), ENC_INFO::name, NCOL, ENC_INFO::num, and val.
Referenced by main().
| static int IsAlpha | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 87 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsAscii | ( | int enc | ARG_UNUSED, | |
| int | c | |||
| ) | [static] |
| static int IsBlank | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 264 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsCntrl | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 303 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsDigit | ( | int enc | ARG_UNUSED, | |
| int | c | |||
| ) | [static] |
| static int IsGraph | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 351 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsLower | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 423 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsNewline | ( | int enc | ARG_UNUSED, | |
| int | c | |||
| ) | [static] |
| static int IsPrint | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 555 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsPunct | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 633 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsSpace | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 732 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsUpper | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 774 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsWord | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Definition at line 912 of file mktable.c.
References ASCII, ISO_8859_1, ISO_8859_10, ISO_8859_11, ISO_8859_13, ISO_8859_14, ISO_8859_15, ISO_8859_16, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KOI8, KOI8_R, and UNICODE_ISO_8859_1.
Referenced by exec().
| static int IsXDigit | ( | int | enc, | |
| int | c | |||
| ) | [static] |
Initial value:
{
{ ASCII, "ASCII" },
{ UNICODE_ISO_8859_1, "UNICODE_ISO_8859_1" },
{ ISO_8859_1, "ISO_8859_1" },
{ ISO_8859_2, "ISO_8859_2" },
{ ISO_8859_3, "ISO_8859_3" },
{ ISO_8859_4, "ISO_8859_4" },
{ ISO_8859_5, "ISO_8859_5" },
{ ISO_8859_6, "ISO_8859_6" },
{ ISO_8859_7, "ISO_8859_7" },
{ ISO_8859_8, "ISO_8859_8" },
{ ISO_8859_9, "ISO_8859_9" },
{ ISO_8859_10, "ISO_8859_10" },
{ ISO_8859_11, "ISO_8859_11" },
{ ISO_8859_13, "ISO_8859_13" },
{ ISO_8859_14, "ISO_8859_14" },
{ ISO_8859_15, "ISO_8859_15" },
{ ISO_8859_16, "ISO_8859_16" },
{ KOI8, "KOI8" },
{ KOI8_R, "KOI8_R" }
}
Definition at line 64 of file mktable.c.
Referenced by main().
1.4.7