1169689Skan// Locale support -*- C++ -*- 2169689Skan 3169689Skan// Copyright (C) 2004 Free Software Foundation, Inc. 4169689Skan// 5169689Skan// This file is part of the GNU ISO C++ Library. This library is free 6169689Skan// software; you can redistribute it and/or modify it under the 7169689Skan// terms of the GNU General Public License as published by the 8169689Skan// Free Software Foundation; either version 2, or (at your option) 9169689Skan// any later version. 10169689Skan 11169689Skan// This library is distributed in the hope that it will be useful, 12169689Skan// but WITHOUT ANY WARRANTY; without even the implied warranty of 13169689Skan// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14169689Skan// GNU General Public License for more details. 15169689Skan 16169689Skan// You should have received a copy of the GNU General Public License along 17169689Skan// with this library; see the file COPYING. If not, write to the Free 18169689Skan// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 19169689Skan// USA. 20169689Skan 21169689Skan// As a special exception, you may use this file as part of a free software 22169689Skan// library without restriction. Specifically, if other files instantiate 23169689Skan// templates or use macros or inline functions from this file, or you compile 24169689Skan// this file and link it with other files to produce an executable, this 25169689Skan// file does not by itself cause the resulting executable to be covered by 26169689Skan// the GNU General Public License. This exception does not however 27169689Skan// invalidate any other reasons why the executable file might be covered by 28169689Skan// the GNU General Public License. 29169689Skan 30169689Skan// 31169689Skan// ISO C++ 14882: 22.1 Locales 32169689Skan// 33169689Skan 34169689Skan// Information as gleaned from /usr/include/ctype.h 35169689Skan 36169689Skan_GLIBCXX_BEGIN_NAMESPACE(std) 37169689Skan 38169689Skan /// @brief Base class for ctype. 39169689Skan struct ctype_base 40169689Skan { 41169689Skan // Non-standard typedefs. 42169689Skan typedef const int* __to_type; 43169689Skan 44169689Skan // NB: Offsets into ctype<char>::_M_table force a particular size 45169689Skan // on the mask type. Because of this, we don't use an enum. 46169689Skan typedef unsigned short mask; 47169689Skan static const mask upper = _ISupper; 48169689Skan static const mask lower = _ISlower; 49169689Skan static const mask alpha = _ISalpha; 50169689Skan static const mask digit = _ISdigit; 51169689Skan static const mask xdigit = _ISxdigit; 52169689Skan static const mask space = _ISspace; 53169689Skan static const mask print = _ISprint; 54169689Skan static const mask graph = _ISalpha | _ISdigit | _ISpunct; 55169689Skan static const mask cntrl = _IScntrl; 56169689Skan static const mask punct = _ISpunct; 57169689Skan static const mask alnum = _ISalpha | _ISdigit; 58169689Skan }; 59169689Skan 60169689Skan_GLIBCXX_END_NAMESPACE 61169689Skan