1117397Skan// Locale support -*- C++ -*- 2117397Skan 3169691Skan// Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004 4132720Skan// Free Software Foundation, Inc. 5117397Skan// 6117397Skan// This file is part of the GNU ISO C++ Library. This library is free 7117397Skan// software; you can redistribute it and/or modify it under the 8117397Skan// terms of the GNU General Public License as published by the 9117397Skan// Free Software Foundation; either version 2, or (at your option) 10117397Skan// any later version. 11117397Skan 12117397Skan// This library is distributed in the hope that it will be useful, 13117397Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of 14117397Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15117397Skan// GNU General Public License for more details. 16117397Skan 17117397Skan// You should have received a copy of the GNU General Public License along 18117397Skan// with this library; see the file COPYING. If not, write to the Free 19169691Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 20117397Skan// USA. 21117397Skan 22117397Skan// As a special exception, you may use this file as part of a free software 23117397Skan// library without restriction. Specifically, if other files instantiate 24117397Skan// templates or use macros or inline functions from this file, or you compile 25117397Skan// this file and link it with other files to produce an executable, this 26117397Skan// file does not by itself cause the resulting executable to be covered by 27117397Skan// the GNU General Public License. This exception does not however 28117397Skan// invalidate any other reasons why the executable file might be covered by 29117397Skan// the GNU General Public License. 30117397Skan 31117397Skan// 32117397Skan// ISO C++ 14882: 22.1 Locales 33117397Skan// 34117397Skan 35169691Skan/** @file ctype_base.h 36169691Skan * This is an internal header file, included by other library headers. 37169691Skan * You should not attempt to use it directly. 38169691Skan */ 39169691Skan 40117397Skan// Information as gleaned from /usr/include/ctype.h 41117397Skan 42169691Skan_GLIBCXX_BEGIN_NAMESPACE(std) 43169691Skan 44169691Skan /// @brief Base class for ctype. 45117397Skan struct ctype_base 46117397Skan { 47117397Skan // Non-standard typedefs. 48117397Skan typedef const int* __to_type; 49117397Skan 50117397Skan // NB: Offsets into ctype<char>::_M_table force a particular size 51117397Skan // on the mask type. Because of this, we don't use an enum. 52117397Skan typedef unsigned short mask; 53117397Skan static const mask upper = _ISupper; 54117397Skan static const mask lower = _ISlower; 55117397Skan static const mask alpha = _ISalpha; 56117397Skan static const mask digit = _ISdigit; 57117397Skan static const mask xdigit = _ISxdigit; 58117397Skan static const mask space = _ISspace; 59117397Skan static const mask print = _ISprint; 60132720Skan static const mask graph = _ISalpha | _ISdigit | _ISpunct; 61117397Skan static const mask cntrl = _IScntrl; 62117397Skan static const mask punct = _ISpunct; 63132720Skan static const mask alnum = _ISalpha | _ISdigit; 64117397Skan }; 65169691Skan 66169691Skan_GLIBCXX_END_NAMESPACE 67