xref: /netbsd-src/external/gpl2/gettext/dist/gettext-runtime/gnulib-lib/mbchar.c (revision 946379e7b37692fc43f68eb0d1c10daa0a7f3b6c)
1*946379e7Schristos /* Copyright (C) 2001, 2006 Free Software Foundation, Inc.
2*946379e7Schristos 
3*946379e7Schristos    This program is free software; you can redistribute it and/or modify
4*946379e7Schristos    it under the terms of the GNU General Public License as published by
5*946379e7Schristos    the Free Software Foundation; either version 2, or (at your option)
6*946379e7Schristos    any later version.
7*946379e7Schristos 
8*946379e7Schristos    This program is distributed in the hope that it will be useful,
9*946379e7Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
10*946379e7Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11*946379e7Schristos    GNU General Public License for more details.
12*946379e7Schristos 
13*946379e7Schristos    You should have received a copy of the GNU General Public License
14*946379e7Schristos    along with this program; if not, write to the Free Software Foundation,
15*946379e7Schristos    Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
16*946379e7Schristos 
17*946379e7Schristos 
18*946379e7Schristos #include <config.h>
19*946379e7Schristos 
20*946379e7Schristos #include <limits.h>
21*946379e7Schristos 
22*946379e7Schristos #include "mbchar.h"
23*946379e7Schristos 
24*946379e7Schristos #if IS_BASIC_ASCII
25*946379e7Schristos 
26*946379e7Schristos /* Bit table of characters in the ISO C "basic character set".  */
27*946379e7Schristos const unsigned int is_basic_table [UCHAR_MAX / 32 + 1] =
28*946379e7Schristos {
29*946379e7Schristos   0x00001a00,		/* '\t' '\v' '\f' */
30*946379e7Schristos   0xffffffef,		/* ' '...'#' '%'...'?' */
31*946379e7Schristos   0xfffffffe,		/* 'A'...'Z' '[' '\\' ']' '^' '_' */
32*946379e7Schristos   0x7ffffffe		/* 'a'...'z' '{' '|' '}' '~' */
33*946379e7Schristos   /* The remaining bits are 0.  */
34*946379e7Schristos };
35*946379e7Schristos 
36*946379e7Schristos #endif /* IS_BASIC_ASCII */
37