1298016Sae// Locale support -*- C++ -*- 2298016Sae 3298016Sae// Copyright (C) 1997, 1998, 1999, 2003 Free Software Foundation, Inc. 4298016Sae// 5298016Sae// This file is part of the GNU ISO C++ Library. This library is free 6298016Sae// software; you can redistribute it and/or modify it under the 7298016Sae// terms of the GNU General Public License as published by the 8298016Sae// Free Software Foundation; either version 2, or (at your option) 9298016Sae// any later version. 10298016Sae 11298016Sae// This library is distributed in the hope that it will be useful, 12298016Sae// but WITHOUT ANY WARRANTY; without even the implied warranty of 13298016Sae// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14298016Sae// GNU General Public License for more details. 15298016Sae 16298016Sae// You should have received a copy of the GNU General Public License along 17298016Sae// with this library; see the file COPYING. If not, write to the Free 18298016Sae// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 19298016Sae// USA. 20298016Sae 21298016Sae// As a special exception, you may use this file as part of a free software 22298016Sae// library without restriction. Specifically, if other files instantiate 23298016Sae// templates or use macros or inline functions from this file, or you compile 24298016Sae// this file and link it with other files to produce an executable, this 25298016Sae// file does not by itself cause the resulting executable to be covered by 26298016Sae// the GNU General Public License. This exception does not however 27298016Sae// invalidate any other reasons why the executable file might be covered by 28298016Sae// the GNU General Public License. 29298016Sae 30298016Sae// 31298016Sae// ISO C++ 14882: 22.1 Locales 32298016Sae// 33298016Sae 34298016Sae// Information as gleaned from /usr/include/ctype.h on irix 6.5 35298016Sae 36298016Sae_GLIBCXX_BEGIN_NAMESPACE(std) 37298016Sae 38298016Sae /// @brief Base class for ctype. 39298016Sae struct ctype_base 40298016Sae { 41298016Sae // Non-standard typedefs. 42298016Sae typedef int* __to_type; 43298016Sae 44298016Sae // NB: Offsets into ctype<char>::_M_table force a particular size 45298016Sae // on the mask type. Because of this, we don't use an enum. 46298016Sae typedef unsigned int mask; 47298016Sae static const mask upper = _ISupper; 48298016Sae static const mask lower = _ISlower; 49298016Sae static const mask alpha = _ISalpha; 50298016Sae static const mask digit = _ISdigit; 51298016Sae static const mask xdigit = _ISxdigit; 52298016Sae static const mask space = _ISspace; 53298016Sae static const mask print = _ISprint; 54298016Sae static const mask graph = _ISalpha | _ISdigit | _ISpunct; 55298016Sae static const mask cntrl = _IScntrl; 56298016Sae static const mask punct = _ISpunct; 57298016Sae static const mask alnum = _ISalpha | _ISdigit; 58298016Sae }; 59298016Sae 60298016Sae_GLIBCXX_END_NAMESPACE 61298016Sae