]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/config/os/vxworks/ctype_base.h
Update Copyright years for files modified in 2011 and/or 2012.
[thirdparty/gcc.git] / libstdc++-v3 / config / os / vxworks / ctype_base.h
CommitLineData
9aab6de7 1// Locale support -*- C++ -*-
2
71e45bc2 3// Copyright (C) 1997, 1998, 1999, 2003, 2009, 2011
4// Free Software Foundation, Inc.
9aab6de7 5//
6// This file is part of the GNU ISO C++ Library. This library is free
7// software; you can redistribute it and/or modify it under the
8// terms of the GNU General Public License as published by the
6bc9506f 9// Free Software Foundation; either version 3, or (at your option)
9aab6de7 10// any later version.
11
12// This library is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16
6bc9506f 17// Under Section 7 of GPL version 3, you are granted additional
18// permissions described in the GCC Runtime Library Exception, version
19// 3.1, as published by the Free Software Foundation.
9aab6de7 20
6bc9506f 21// You should have received a copy of the GNU General Public License and
22// a copy of the GCC Runtime Library Exception along with this program;
23// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24// <http://www.gnu.org/licenses/>.
9aab6de7 25
26//
27// ISO C++ 14882: 22.1 Locales
28//
29
30// Information extracted from target/h/ctype.h.
31
2948dd21 32namespace std _GLIBCXX_VISIBILITY(default)
33{
34_GLIBCXX_BEGIN_NAMESPACE_VERSION
0e014800 35
36 /// @brief Base class for ctype.
9aab6de7 37 struct ctype_base
38 {
39 // Non-standard typedefs.
40 typedef const unsigned char* __to_type;
41
42 // NB: Offsets into ctype<char>::_M_table force a particular size
43 // on the mask type. Because of this, we don't use an enum.
44 typedef unsigned char mask;
45 static const mask upper = _C_UPPER;
46 static const mask lower = _C_LOWER;
47 static const mask alpha = _C_UPPER | _C_LOWER;
48 static const mask digit = _C_NUMBER;
49 static const mask xdigit = _C_HEX_NUMBER;
50 static const mask space = _C_WHITE_SPACE | _C_CONTROL;
51 static const mask print = (_C_UPPER | _C_LOWER | _C_NUMBER
52 | _C_WHITE_SPACE | _C_PUNCT);
53 static const mask graph = _C_UPPER | _C_LOWER | _C_NUMBER | _C_PUNCT;
54 static const mask cntrl = _C_CONTROL;
55 static const mask punct = _C_PUNCT;
56 static const mask alnum = _C_UPPER | _C_LOWER | _C_NUMBER;
57 };
58
2948dd21 59_GLIBCXX_END_NAMESPACE_VERSION
60} // namespace