1149474Spjd// Locale support -*- C++ -*- 2149474Spjd 3149474Spjd// Copyright (C) 1997, 1998, 1999, 2003 Free Software Foundation, Inc. 4149474Spjd// 5149474Spjd// This file is part of the GNU ISO C++ Library. This library is free 6149474Spjd// software; you can redistribute it and/or modify it under the 7149474Spjd// terms of the GNU General Public License as published by the 8149474Spjd// Free Software Foundation; either version 2, or (at your option) 9263351Sjmmv// any later version. 10263351Sjmmv 11149474Spjd// This library is distributed in the hope that it will be useful, 12149474Spjd// but WITHOUT ANY WARRANTY; without even the implied warranty of 13149474Spjd// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14149474Spjd// GNU General Public License for more details. 15149474Spjd 16149474Spjd// You should have received a copy of the GNU General Public License along 17149474Spjd// with this library; see the file COPYING. If not, write to the Free 18149474Spjd// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 19149474Spjd// USA. 20149474Spjd 21149474Spjd// As a special exception, you may use this file as part of a free software 22149474Spjd// library without restriction. Specifically, if other files instantiate 23149474Spjd// templates or use macros or inline functions from this file, or you compile 24149474Spjd// this file and link it with other files to produce an executable, this 25149474Spjd// file does not by itself cause the resulting executable to be covered by 26149474Spjd// the GNU General Public License. This exception does not however 27149474Spjd// invalidate any other reasons why the executable file might be covered by 28149474Spjd// the GNU General Public License. 29149474Spjd 30149474Spjd// 31149474Spjd// ISO C++ 14882: 22.1 Locales 32149474Spjd// 33149474Spjd 34149474Spjd// Information as gleaned from /usr/include/ctype.h on irix 6.5 35149474Spjd 36149474Spjd_GLIBCXX_BEGIN_NAMESPACE(std) 37149474Spjd 38149474Spjd /// @brief Base class for ctype. 39149474Spjd struct ctype_base 40149474Spjd { 41149474Spjd // Non-standard typedefs. 42149474Spjd typedef int* __to_type; 43149474Spjd 44 // NB: Offsets into ctype<char>::_M_table force a particular size 45 // on the mask type. Because of this, we don't use an enum. 46 typedef unsigned int mask; 47 static const mask upper = _ISupper; 48 static const mask lower = _ISlower; 49 static const mask alpha = _ISalpha; 50 static const mask digit = _ISdigit; 51 static const mask xdigit = _ISxdigit; 52 static const mask space = _ISspace; 53 static const mask print = _ISprint; 54 static const mask graph = _ISalpha | _ISdigit | _ISpunct; 55 static const mask cntrl = _IScntrl; 56 static const mask punct = _ISpunct; 57 static const mask alnum = _ISalpha | _ISdigit; 58 }; 59 60_GLIBCXX_END_NAMESPACE 61