~ubuntu-branches/ubuntu/warty/aqsis/warty

« back to all changes in this revision

Viewing changes to boost/boost/regex/v3/regex_fwd.hpp

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:25:04 UTC
  • Revision ID: james.westby@ubuntu.com-20040824072504-zf993vnevvisdsvb
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * Copyright (c) 1998-2002
 
4
 * Dr John Maddock
 
5
 *
 
6
 * Permission to use, copy, modify, distribute and sell this software
 
7
 * and its documentation for any purpose is hereby granted without fee,
 
8
 * provided that the above copyright notice appear in all copies and
 
9
 * that both that copyright notice and this permission notice appear
 
10
 * in supporting documentation.  Dr John Maddock makes no representations
 
11
 * about the suitability of this software for any purpose.
 
12
 * It is provided "as is" without express or implied warranty.
 
13
 *
 
14
 */
 
15
 
 
16
 /*
 
17
  *   LOCATION:    see http://www.boost.org for most recent version.
 
18
  *   FILE         regex_fwd.cpp
 
19
  *   VERSION      see <boost/version.hpp>
 
20
  *   DESCRIPTION: Forward declares boost::reg_expression<> and
 
21
  *                associated typedefs.
 
22
  */
 
23
 
 
24
#ifndef BOOST_REGEX_FWD_HPP_INCLUDED
 
25
#define BOOST_REGEX_FWD_HPP_INCLUDED
 
26
 
 
27
#ifndef BOOST_REGEX_CONFIG_HPP
 
28
#include <boost/config.hpp>
 
29
#endif
 
30
#include <boost/detail/allocator.hpp>
 
31
 
 
32
//
 
33
// define BOOST_REGEX_NO_FWD if this
 
34
// header doesn't work!
 
35
//
 
36
#ifdef BOOST_REGEX_NO_FWD
 
37
#  ifndef BOOST_RE_REGEX_HPP
 
38
#     include <boost/regex.hpp>
 
39
#  endif
 
40
#else
 
41
 
 
42
//
 
43
// If there isn't good enough wide character support then there will
 
44
// be no wide character regular expressions:
 
45
//
 
46
#if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING)) && !defined(BOOST_NO_WREGEX)
 
47
#  define BOOST_NO_WREGEX
 
48
#endif
 
49
 
 
50
namespace boost{
 
51
 
 
52
template <class charT>
 
53
class regex_traits;
 
54
 
 
55
template <class charT, class traits = regex_traits<charT>, class Allocator = BOOST_DEFAULT_ALLOCATOR(charT) >
 
56
class reg_expression;
 
57
 
 
58
typedef reg_expression<char, regex_traits<char>, BOOST_DEFAULT_ALLOCATOR(char) > regex;
 
59
#ifndef BOOST_NO_WREGEX
 
60
typedef reg_expression<wchar_t, regex_traits<wchar_t>, BOOST_DEFAULT_ALLOCATOR(wchar_t) > wregex;
 
61
#endif
 
62
 
 
63
} // namespace boost
 
64
 
 
65
#endif  // BOOST_REGEX_NO_FWD
 
66
 
 
67
#endif
 
68
 
 
69
 
 
70