1 --- libstdc++-v3/config/os/bsd/dragonfly/ctype_base.h.orig 2013-09-24 10:38:27.455923000 +0000
2 +++ libstdc++-v3/config/os/bsd/dragonfly/ctype_base.h
4 +// Locale support -*- C++ -*-
6 +// Copyright (C) 2000, 2003, 2009, 2010 Free Software Foundation, Inc.
8 +// This file is part of the GNU ISO C++ Library. This library is free
9 +// software; you can redistribute it and/or modify it under the
10 +// terms of the GNU General Public License as published by the
11 +// Free Software Foundation; either version 3, or (at your option)
12 +// any later version.
14 +// This library is distributed in the hope that it will be useful,
15 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
16 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 +// GNU General Public License for more details.
19 +// Under Section 7 of GPL version 3, you are granted additional
20 +// permissions described in the GCC Runtime Library Exception, version
21 +// 3.1, as published by the Free Software Foundation.
23 +// You should have received a copy of the GNU General Public License and
24 +// a copy of the GCC Runtime Library Exception along with this program;
25 +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
26 +// <http://www.gnu.org/licenses/>.
29 +// ISO C++ 14882: 22.1 Locales
32 +// Information as gleaned from /usr/include/ctype.h on DragonFly.
34 +namespace std _GLIBCXX_VISIBILITY(default)
36 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
38 + /// @brief Base class for ctype.
41 + // Non-standard typedefs.
42 + typedef const int* __to_type;
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.
47 + // DragonFly 3.6 and later
48 + typedef unsigned long mask;
49 + static const mask upper = _CTYPE_U;
50 + static const mask lower = _CTYPE_L;
51 + static const mask alpha = _CTYPE_A;
52 + static const mask digit = _CTYPE_D;
53 + static const mask xdigit = _CTYPE_X;
54 + static const mask space = _CTYPE_S;
55 + static const mask print = _CTYPE_R;
56 + static const mask graph = _CTYPE_A | _CTYPE_D | _CTYPE_P;
57 + static const mask cntrl = _CTYPE_C;
58 + static const mask punct = _CTYPE_P;
59 + static const mask alnum = _CTYPE_A | _CTYPE_D;
61 + // DragonFly 3.4 and older
62 + typedef uint16_t mask;
63 + static const mask upper = _CTYPEMASK_U;
64 + static const mask lower = _CTYPEMASK_L;
65 + static const mask alpha = _CTYPEMASK_A;
66 + static const mask digit = _CTYPEMASK_D;
67 + static const mask xdigit = _CTYPEMASK_X;
68 + static const mask space = _CTYPEMASK_S;
69 + static const mask print = _CTYPEMASK_R;
70 + static const mask graph = _CTYPEMASK_G;
71 + static const mask cntrl = _CTYPEMASK_C;
72 + static const mask punct = _CTYPEMASK_P;
73 + static const mask alnum = _CTYPEMASK_A | _CTYPEMASK_D;
77 +_GLIBCXX_END_NAMESPACE_VERSION