Home | History | Annotate | Line # | Download | only in locale
runetable.c revision 1.11
      1  1.11  tshiozak /*	$NetBSD: runetable.c,v 1.11 2003/03/05 20:18:16 tshiozak Exp $	*/
      2   1.2    itojun 
      3   1.2    itojun /*-
      4   1.2    itojun  * Copyright (c) 1993
      5   1.2    itojun  *	The Regents of the University of California.  All rights reserved.
      6   1.2    itojun  *
      7   1.2    itojun  * This code is derived from software contributed to Berkeley by
      8   1.2    itojun  * Paul Borman at Krystal Technologies.
      9   1.2    itojun  *
     10   1.2    itojun  * Redistribution and use in source and binary forms, with or without
     11   1.2    itojun  * modification, are permitted provided that the following conditions
     12   1.2    itojun  * are met:
     13   1.2    itojun  * 1. Redistributions of source code must retain the above copyright
     14   1.2    itojun  *    notice, this list of conditions and the following disclaimer.
     15   1.2    itojun  * 2. Redistributions in binary form must reproduce the above copyright
     16   1.2    itojun  *    notice, this list of conditions and the following disclaimer in the
     17   1.2    itojun  *    documentation and/or other materials provided with the distribution.
     18   1.2    itojun  * 3. All advertising materials mentioning features or use of this software
     19   1.2    itojun  *    must display the following acknowledgement:
     20   1.2    itojun  *	This product includes software developed by the University of
     21   1.2    itojun  *	California, Berkeley and its contributors.
     22   1.2    itojun  * 4. Neither the name of the University nor the names of its contributors
     23   1.2    itojun  *    may be used to endorse or promote products derived from this software
     24   1.2    itojun  *    without specific prior written permission.
     25   1.2    itojun  *
     26   1.2    itojun  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     27   1.2    itojun  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     28   1.2    itojun  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     29   1.2    itojun  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     30   1.2    itojun  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     31   1.2    itojun  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     32   1.2    itojun  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     33   1.2    itojun  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     34   1.2    itojun  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     35   1.2    itojun  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     36   1.2    itojun  * SUCH DAMAGE.
     37   1.2    itojun  *
     38   1.2    itojun  * $FreeBSD: src/lib/libc/locale/table.c,v 1.13 2000/02/08 07:43:25 obrien Exp $
     39   1.2    itojun  */
     40   1.2    itojun 
     41   1.2    itojun #include <sys/cdefs.h>
     42   1.2    itojun #if defined(LIBC_SCCS) && !defined(lint)
     43   1.2    itojun #if 0
     44   1.2    itojun static char sccsid[] = "@(#)table.c	8.1 (Berkeley) 6/27/93";
     45   1.2    itojun #else
     46  1.11  tshiozak __RCSID("$NetBSD: runetable.c,v 1.11 2003/03/05 20:18:16 tshiozak Exp $");
     47   1.2    itojun #endif
     48   1.2    itojun #endif /* LIBC_SCCS and not lint */
     49   1.2    itojun 
     50   1.8  tshiozak #include <stdlib.h>
     51   1.2    itojun #include <ctype.h>
     52   1.2    itojun #include <locale.h>
     53   1.8  tshiozak #include <assert.h>
     54  1.11  tshiozak #include <wchar.h>
     55   1.8  tshiozak #include <citrus/citrus_module.h>
     56   1.8  tshiozak #include <citrus/citrus_ctype.h>
     57   1.2    itojun #include "rune.h"
     58   1.8  tshiozak #include "rune_local.h"
     59   1.2    itojun #include <stdlib.h>
     60   1.2    itojun 
     61   1.2    itojun _RuneLocale _DefaultRuneLocale = {
     62   1.2    itojun     _RUNE_MAGIC_1,
     63   1.2    itojun     "NONE",
     64   1.7       jmc     _DEFAULT_INVALID_RUNE,
     65   1.2    itojun 
     66   1.2    itojun     {	/*00*/	_CTYPE_C,
     67   1.2    itojun 		_CTYPE_C,
     68   1.2    itojun 		_CTYPE_C,
     69   1.2    itojun 		_CTYPE_C,
     70   1.2    itojun 		_CTYPE_C,
     71   1.2    itojun 		_CTYPE_C,
     72   1.2    itojun 		_CTYPE_C,
     73   1.2    itojun 		_CTYPE_C,
     74   1.2    itojun 	/*08*/	_CTYPE_C,
     75   1.2    itojun 		_CTYPE_C|_CTYPE_S|_CTYPE_B,
     76   1.2    itojun 		_CTYPE_C|_CTYPE_S,
     77   1.2    itojun 		_CTYPE_C|_CTYPE_S,
     78   1.2    itojun 		_CTYPE_C|_CTYPE_S,
     79   1.2    itojun 		_CTYPE_C|_CTYPE_S,
     80   1.2    itojun 		_CTYPE_C,
     81   1.2    itojun 		_CTYPE_C,
     82   1.2    itojun 	/*10*/	_CTYPE_C,
     83   1.2    itojun 		_CTYPE_C,
     84   1.2    itojun 		_CTYPE_C,
     85   1.2    itojun 		_CTYPE_C,
     86   1.2    itojun 		_CTYPE_C,
     87   1.2    itojun 		_CTYPE_C,
     88   1.2    itojun 		_CTYPE_C,
     89   1.2    itojun 		_CTYPE_C,
     90   1.2    itojun 	/*18*/	_CTYPE_C,
     91   1.2    itojun 		_CTYPE_C,
     92   1.2    itojun 		_CTYPE_C,
     93   1.2    itojun 		_CTYPE_C,
     94   1.2    itojun 		_CTYPE_C,
     95   1.2    itojun 		_CTYPE_C,
     96   1.2    itojun 		_CTYPE_C,
     97   1.2    itojun 		_CTYPE_C,
     98   1.5    itojun 	/*20*/	_CTYPE_S|_CTYPE_B|_CTYPE_R|_CTYPE_SW1,
     99   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    100   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    101   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    102   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    103   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    104   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    105   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    106   1.5    itojun 	/*28*/	_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    107   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    108   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    109   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    110   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    111   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    112   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    113   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    114   1.5    itojun 	/*30*/	_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|0,
    115   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|1,
    116   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|2,
    117   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|3,
    118   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|4,
    119   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|5,
    120   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|6,
    121   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|7,
    122   1.5    itojun 	/*38*/	_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|8,
    123   1.5    itojun 		_CTYPE_D|_CTYPE_R|_CTYPE_G|_CTYPE_X|_CTYPE_SW1|9,
    124   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    125   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    126   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    127   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    128   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    129   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    130   1.5    itojun 	/*40*/	_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    131   1.5    itojun 		_CTYPE_U|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|10,
    132   1.5    itojun 		_CTYPE_U|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|11,
    133   1.5    itojun 		_CTYPE_U|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|12,
    134   1.5    itojun 		_CTYPE_U|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|13,
    135   1.5    itojun 		_CTYPE_U|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|14,
    136   1.5    itojun 		_CTYPE_U|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|15,
    137   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    138   1.5    itojun 	/*48*/	_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    139   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    140   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    141   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    142   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    143   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    144   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    145   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    146   1.5    itojun 	/*50*/	_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    147   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    148   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    149   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    150   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    151   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    152   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    153   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    154   1.5    itojun 	/*58*/	_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    155   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    156   1.5    itojun 		_CTYPE_U|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    157   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    158   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    159   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    160   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    161   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    162   1.5    itojun 	/*60*/	_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    163   1.5    itojun 		_CTYPE_L|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|10,
    164   1.5    itojun 		_CTYPE_L|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|11,
    165   1.5    itojun 		_CTYPE_L|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|12,
    166   1.5    itojun 		_CTYPE_L|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|13,
    167   1.5    itojun 		_CTYPE_L|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|14,
    168   1.5    itojun 		_CTYPE_L|_CTYPE_X|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1|15,
    169   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    170   1.5    itojun 	/*68*/	_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    171   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    172   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    173   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    174   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    175   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    176   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    177   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    178   1.5    itojun 	/*70*/	_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    179   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    180   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    181   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    182   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    183   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    184   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    185   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    186   1.5    itojun 	/*78*/	_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    187   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    188   1.5    itojun 		_CTYPE_L|_CTYPE_R|_CTYPE_G|_CTYPE_A|_CTYPE_SW1,
    189   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    190   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    191   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    192   1.5    itojun 		_CTYPE_P|_CTYPE_R|_CTYPE_G|_CTYPE_SW1,
    193   1.2    itojun 		_CTYPE_C,
    194   1.2    itojun     },
    195   1.2    itojun     {	0x00,	0x01,	0x02,	0x03,	0x04,	0x05,	0x06,	0x07,
    196   1.2    itojun      	0x08,	0x09,	0x0a,	0x0b,	0x0c,	0x0d,	0x0e,	0x0f,
    197   1.2    itojun 	0x10,	0x11,	0x12,	0x13,	0x14,	0x15,	0x16,	0x17,
    198   1.2    itojun      	0x18,	0x19,	0x1a,	0x1b,	0x1c,	0x1d,	0x1e,	0x1f,
    199   1.2    itojun 	0x20,	0x21,	0x22,	0x23,	0x24,	0x25,	0x26,	0x27,
    200   1.2    itojun      	0x28,	0x29,	0x2a,	0x2b,	0x2c,	0x2d,	0x2e,	0x2f,
    201   1.2    itojun 	0x30,	0x31,	0x32,	0x33,	0x34,	0x35,	0x36,	0x37,
    202   1.2    itojun      	0x38,	0x39,	0x3a,	0x3b,	0x3c,	0x3d,	0x3e,	0x3f,
    203   1.2    itojun 	0x40,	'a',	'b',	'c',	'd',	'e',	'f',	'g',
    204   1.2    itojun      	'h',	'i',	'j',	'k',	'l',	'm',	'n',	'o',
    205   1.2    itojun 	'p',	'q',	'r',	's',	't',	'u',	'v',	'w',
    206   1.2    itojun      	'x',	'y',	'z',	0x5b,	0x5c,	0x5d,	0x5e,	0x5f,
    207   1.2    itojun 	0x60,	'a',	'b',	'c',	'd',	'e',	'f',	'g',
    208   1.2    itojun      	'h',	'i',	'j',	'k',	'l',	'm',	'n',	'o',
    209   1.2    itojun 	'p',	'q',	'r',	's',	't',	'u',	'v',	'w',
    210   1.2    itojun      	'x',	'y',	'z',	0x7b,	0x7c,	0x7d,	0x7e,	0x7f,
    211   1.2    itojun 	0x80,	0x81,	0x82,	0x83,	0x84,	0x85,	0x86,	0x87,
    212   1.2    itojun      	0x88,	0x89,	0x8a,	0x8b,	0x8c,	0x8d,	0x8e,	0x8f,
    213   1.2    itojun 	0x90,	0x91,	0x92,	0x93,	0x94,	0x95,	0x96,	0x97,
    214   1.2    itojun      	0x98,	0x99,	0x9a,	0x9b,	0x9c,	0x9d,	0x9e,	0x9f,
    215   1.2    itojun 	0xa0,	0xa1,	0xa2,	0xa3,	0xa4,	0xa5,	0xa6,	0xa7,
    216   1.2    itojun      	0xa8,	0xa9,	0xaa,	0xab,	0xac,	0xad,	0xae,	0xaf,
    217   1.2    itojun 	0xb0,	0xb1,	0xb2,	0xb3,	0xb4,	0xb5,	0xb6,	0xb7,
    218   1.2    itojun      	0xb8,	0xb9,	0xba,	0xbb,	0xbc,	0xbd,	0xbe,	0xbf,
    219   1.2    itojun 	0xc0,	0xc1,	0xc2,	0xc3,	0xc4,	0xc5,	0xc6,	0xc7,
    220   1.2    itojun      	0xc8,	0xc9,	0xca,	0xcb,	0xcc,	0xcd,	0xce,	0xcf,
    221   1.2    itojun 	0xd0,	0xd1,	0xd2,	0xd3,	0xd4,	0xd5,	0xd6,	0xd7,
    222   1.2    itojun      	0xd8,	0xd9,	0xda,	0xdb,	0xdc,	0xdd,	0xde,	0xdf,
    223   1.2    itojun 	0xe0,	0xe1,	0xe2,	0xe3,	0xe4,	0xe5,	0xe6,	0xe7,
    224   1.2    itojun      	0xe8,	0xe9,	0xea,	0xeb,	0xec,	0xed,	0xee,	0xef,
    225   1.2    itojun 	0xf0,	0xf1,	0xf2,	0xf3,	0xf4,	0xf5,	0xf6,	0xf7,
    226   1.2    itojun      	0xf8,	0xf9,	0xfa,	0xfb,	0xfc,	0xfd,	0xfe,	0xff,
    227   1.2    itojun     },
    228   1.2    itojun     {	0x00,	0x01,	0x02,	0x03,	0x04,	0x05,	0x06,	0x07,
    229   1.2    itojun      	0x08,	0x09,	0x0a,	0x0b,	0x0c,	0x0d,	0x0e,	0x0f,
    230   1.2    itojun 	0x10,	0x11,	0x12,	0x13,	0x14,	0x15,	0x16,	0x17,
    231   1.2    itojun      	0x18,	0x19,	0x1a,	0x1b,	0x1c,	0x1d,	0x1e,	0x1f,
    232   1.2    itojun 	0x20,	0x21,	0x22,	0x23,	0x24,	0x25,	0x26,	0x27,
    233   1.2    itojun      	0x28,	0x29,	0x2a,	0x2b,	0x2c,	0x2d,	0x2e,	0x2f,
    234   1.2    itojun 	0x30,	0x31,	0x32,	0x33,	0x34,	0x35,	0x36,	0x37,
    235   1.2    itojun      	0x38,	0x39,	0x3a,	0x3b,	0x3c,	0x3d,	0x3e,	0x3f,
    236   1.2    itojun 	0x40,	'A',	'B',	'C',	'D',	'E',	'F',	'G',
    237   1.2    itojun      	'H',	'I',	'J',	'K',	'L',	'M',	'N',	'O',
    238   1.2    itojun 	'P',	'Q',	'R',	'S',	'T',	'U',	'V',	'W',
    239   1.2    itojun      	'X',	'Y',	'Z',	0x5b,	0x5c,	0x5d,	0x5e,	0x5f,
    240   1.2    itojun 	0x60,	'A',	'B',	'C',	'D',	'E',	'F',	'G',
    241   1.2    itojun      	'H',	'I',	'J',	'K',	'L',	'M',	'N',	'O',
    242   1.2    itojun 	'P',	'Q',	'R',	'S',	'T',	'U',	'V',	'W',
    243   1.2    itojun      	'X',	'Y',	'Z',	0x7b,	0x7c,	0x7d,	0x7e,	0x7f,
    244   1.2    itojun 	0x80,	0x81,	0x82,	0x83,	0x84,	0x85,	0x86,	0x87,
    245   1.2    itojun      	0x88,	0x89,	0x8a,	0x8b,	0x8c,	0x8d,	0x8e,	0x8f,
    246   1.2    itojun 	0x90,	0x91,	0x92,	0x93,	0x94,	0x95,	0x96,	0x97,
    247   1.2    itojun      	0x98,	0x99,	0x9a,	0x9b,	0x9c,	0x9d,	0x9e,	0x9f,
    248   1.2    itojun 	0xa0,	0xa1,	0xa2,	0xa3,	0xa4,	0xa5,	0xa6,	0xa7,
    249   1.2    itojun      	0xa8,	0xa9,	0xaa,	0xab,	0xac,	0xad,	0xae,	0xaf,
    250   1.2    itojun 	0xb0,	0xb1,	0xb2,	0xb3,	0xb4,	0xb5,	0xb6,	0xb7,
    251   1.2    itojun      	0xb8,	0xb9,	0xba,	0xbb,	0xbc,	0xbd,	0xbe,	0xbf,
    252   1.2    itojun 	0xc0,	0xc1,	0xc2,	0xc3,	0xc4,	0xc5,	0xc6,	0xc7,
    253   1.2    itojun      	0xc8,	0xc9,	0xca,	0xcb,	0xcc,	0xcd,	0xce,	0xcf,
    254   1.2    itojun 	0xd0,	0xd1,	0xd2,	0xd3,	0xd4,	0xd5,	0xd6,	0xd7,
    255   1.2    itojun      	0xd8,	0xd9,	0xda,	0xdb,	0xdc,	0xdd,	0xde,	0xdf,
    256   1.2    itojun 	0xe0,	0xe1,	0xe2,	0xe3,	0xe4,	0xe5,	0xe6,	0xe7,
    257   1.2    itojun      	0xe8,	0xe9,	0xea,	0xeb,	0xec,	0xed,	0xee,	0xef,
    258   1.2    itojun 	0xf0,	0xf1,	0xf2,	0xf3,	0xf4,	0xf5,	0xf6,	0xf7,
    259   1.2    itojun      	0xf8,	0xf9,	0xfa,	0xfb,	0xfc,	0xfd,	0xfe,	0xff,
    260   1.2    itojun     },
    261   1.2    itojun     { 0, NULL },
    262   1.2    itojun     { 0, NULL },
    263   1.2    itojun     { 0, NULL },
    264  1.11  tshiozak     NULL, 0,
    265   1.8  tshiozak     "646",
    266   1.8  tshiozak     &_citrus_ctype_default,
    267  1.10  tshiozak     {
    268  1.10  tshiozak 	    { NULL, NULL, NULL },
    269  1.10  tshiozak 	    { NULL, NULL, NULL },
    270  1.10  tshiozak     },
    271  1.10  tshiozak     {
    272  1.10  tshiozak 	    { "alnum", _CTYPE_A|_CTYPE_D },
    273  1.10  tshiozak 	    { "alpha", _CTYPE_A },
    274  1.10  tshiozak 	    { "blank", _CTYPE_B },
    275  1.10  tshiozak 	    { "cntrl", _CTYPE_C },
    276  1.10  tshiozak 	    { "digit", _CTYPE_D },
    277  1.10  tshiozak 	    { "graph", _CTYPE_G },
    278  1.10  tshiozak 	    { "lower", _CTYPE_L },
    279  1.10  tshiozak 	    { "print", _CTYPE_R },
    280  1.10  tshiozak 	    { "punct", _CTYPE_P },
    281  1.10  tshiozak 	    { "space", _CTYPE_S },
    282  1.10  tshiozak 	    { "upper", _CTYPE_U },
    283  1.10  tshiozak 	    { "xdigit", _CTYPE_X },
    284  1.10  tshiozak     }
    285   1.2    itojun };
    286   1.2    itojun 
    287   1.2    itojun _RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale;
    288   1.2    itojun 
    289   1.2    itojun char	*_PathLocale;
    290