enc/mktable.c File Reference

#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 Documentation

#define __USE_ISOC99

Definition at line 34 of file mktable.c.

#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

Definition at line 50 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_11   12

Definition at line 51 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_13   13

Definition at line 52 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_14   14

Definition at line 53 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_15   15

Definition at line 54 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_16   16

Definition at line 55 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_2   3

Definition at line 42 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_3   4

Definition at line 43 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_4   5

Definition at line 44 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_5   6

Definition at line 45 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_6   7

Definition at line 46 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_7   8

Definition at line 47 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_8   9

Definition at line 48 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define ISO_8859_9   10

Definition at line 49 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define KOI8   17

Definition at line 56 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define KOI8_R   18

Definition at line 57 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().

#define NCOL   8

Referenced by exec().

#define UNICODE_ISO_8859_1   1

Definition at line 40 of file mktable.c.

Referenced by IsAlpha(), IsBlank(), IsCntrl(), IsGraph(), IsLower(), IsPrint(), IsPunct(), IsSpace(), IsUpper(), and IsWord().


Function Documentation

static int exec ( FILE fp,
ENC_INFO einfo 
) [static]

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]

Definition at line 1094 of file mktable.c.

Referenced by exec().

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]

Definition at line 345 of file mktable.c.

Referenced by exec().

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]

Definition at line 1100 of file mktable.c.

Referenced by exec().

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]

Definition at line 901 of file mktable.c.

References ASCII.

Referenced by exec().

int main ( int argc  ARG_UNUSED,
char *argv[]  ARG_UNUSED 
)

Definition at line 1146 of file mktable.c.

References exec(), and Info.

Referenced by iseq_data_to_ary(), and WinMain().


Variable Documentation

ENC_INFO Info[] [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().


Generated on 19 Jul 2016 for Ruby by  doxygen 1.4.7