1*e4b17023SJohn Marino // Versatile string forward -*- C++ -*-
2*e4b17023SJohn Marino
3*e4b17023SJohn Marino // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010
4*e4b17023SJohn Marino // Free Software Foundation, Inc.
5*e4b17023SJohn Marino //
6*e4b17023SJohn Marino // This file is part of the GNU ISO C++ Library. This library is free
7*e4b17023SJohn Marino // software; you can redistribute it and/or modify it under the
8*e4b17023SJohn Marino // terms of the GNU General Public License as published by the
9*e4b17023SJohn Marino // Free Software Foundation; either version 3, or (at your option)
10*e4b17023SJohn Marino // any later version.
11*e4b17023SJohn Marino
12*e4b17023SJohn Marino // This library is distributed in the hope that it will be useful,
13*e4b17023SJohn Marino // but WITHOUT ANY WARRANTY; without even the implied warranty of
14*e4b17023SJohn Marino // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15*e4b17023SJohn Marino // GNU General Public License for more details.
16*e4b17023SJohn Marino
17*e4b17023SJohn Marino // Under Section 7 of GPL version 3, you are granted additional
18*e4b17023SJohn Marino // permissions described in the GCC Runtime Library Exception, version
19*e4b17023SJohn Marino // 3.1, as published by the Free Software Foundation.
20*e4b17023SJohn Marino
21*e4b17023SJohn Marino // You should have received a copy of the GNU General Public License and
22*e4b17023SJohn Marino // a copy of the GCC Runtime Library Exception along with this program;
23*e4b17023SJohn Marino // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
24*e4b17023SJohn Marino // <http://www.gnu.org/licenses/>.
25*e4b17023SJohn Marino
26*e4b17023SJohn Marino /** @file ext/vstring_fwd.h
27*e4b17023SJohn Marino * This is an internal header file, included by other library headers.
28*e4b17023SJohn Marino * Do not attempt to use it directly. @headername{ext/vstring.h}
29*e4b17023SJohn Marino */
30*e4b17023SJohn Marino
31*e4b17023SJohn Marino #ifndef _VSTRING_FWD_H
32*e4b17023SJohn Marino #define _VSTRING_FWD_H 1
33*e4b17023SJohn Marino
34*e4b17023SJohn Marino #pragma GCC system_header
35*e4b17023SJohn Marino
36*e4b17023SJohn Marino #include <bits/c++config.h>
37*e4b17023SJohn Marino #include <bits/char_traits.h>
38*e4b17023SJohn Marino #include <bits/allocator.h>
39*e4b17023SJohn Marino
_GLIBCXX_VISIBILITY(default)40*e4b17023SJohn Marino namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
41*e4b17023SJohn Marino {
42*e4b17023SJohn Marino _GLIBCXX_BEGIN_NAMESPACE_VERSION
43*e4b17023SJohn Marino
44*e4b17023SJohn Marino template<typename _CharT, typename _Traits, typename _Alloc>
45*e4b17023SJohn Marino class __sso_string_base;
46*e4b17023SJohn Marino
47*e4b17023SJohn Marino template<typename _CharT, typename _Traits, typename _Alloc>
48*e4b17023SJohn Marino class __rc_string_base;
49*e4b17023SJohn Marino
50*e4b17023SJohn Marino template<typename _CharT, typename _Traits = std::char_traits<_CharT>,
51*e4b17023SJohn Marino typename _Alloc = std::allocator<_CharT>,
52*e4b17023SJohn Marino template
53*e4b17023SJohn Marino <typename, typename, typename> class _Base = __sso_string_base>
54*e4b17023SJohn Marino class __versa_string;
55*e4b17023SJohn Marino
56*e4b17023SJohn Marino typedef __versa_string<char> __vstring;
57*e4b17023SJohn Marino typedef __vstring __sso_string;
58*e4b17023SJohn Marino typedef
59*e4b17023SJohn Marino __versa_string<char, std::char_traits<char>,
60*e4b17023SJohn Marino std::allocator<char>, __rc_string_base> __rc_string;
61*e4b17023SJohn Marino
62*e4b17023SJohn Marino #ifdef _GLIBCXX_USE_WCHAR_T
63*e4b17023SJohn Marino typedef __versa_string<wchar_t> __wvstring;
64*e4b17023SJohn Marino typedef __wvstring __wsso_string;
65*e4b17023SJohn Marino typedef
66*e4b17023SJohn Marino __versa_string<wchar_t, std::char_traits<wchar_t>,
67*e4b17023SJohn Marino std::allocator<wchar_t>, __rc_string_base> __wrc_string;
68*e4b17023SJohn Marino #endif
69*e4b17023SJohn Marino
70*e4b17023SJohn Marino #if (defined(__GXX_EXPERIMENTAL_CXX0X__) \
71*e4b17023SJohn Marino && defined(_GLIBCXX_USE_C99_STDINT_TR1))
72*e4b17023SJohn Marino
73*e4b17023SJohn Marino typedef __versa_string<char16_t> __u16vstring;
74*e4b17023SJohn Marino typedef __u16vstring __u16sso_string;
75*e4b17023SJohn Marino typedef
76*e4b17023SJohn Marino __versa_string<char16_t, std::char_traits<char16_t>,
77*e4b17023SJohn Marino std::allocator<char16_t>, __rc_string_base> __u16rc_string;
78*e4b17023SJohn Marino
79*e4b17023SJohn Marino typedef __versa_string<char32_t> __u32vstring;
80*e4b17023SJohn Marino typedef __u32vstring __u32sso_string;
81*e4b17023SJohn Marino typedef
82*e4b17023SJohn Marino __versa_string<char32_t, std::char_traits<char32_t>,
83*e4b17023SJohn Marino std::allocator<char32_t>, __rc_string_base> __u32rc_string;
84*e4b17023SJohn Marino
85*e4b17023SJohn Marino #endif
86*e4b17023SJohn Marino
87*e4b17023SJohn Marino _GLIBCXX_END_NAMESPACE_VERSION
88*e4b17023SJohn Marino } // namespace
89*e4b17023SJohn Marino
90*e4b17023SJohn Marino #endif /* _VSTRING_FWD_H */
91