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