author | sl@SLION-WIN7.fritz.box |
Fri, 15 Jun 2012 03:10:57 +0200 | |
changeset 0 | bde4ae8d615e |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* |
sl@0 | 3 |
* Copyright (c) 1998-2002 |
sl@0 | 4 |
* John Maddock |
sl@0 | 5 |
* |
sl@0 | 6 |
* Use, modification and distribution are subject to the |
sl@0 | 7 |
* Boost Software License, Version 1.0. (See accompanying file |
sl@0 | 8 |
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
sl@0 | 9 |
* |
sl@0 | 10 |
*/ |
sl@0 | 11 |
|
sl@0 | 12 |
/* |
sl@0 | 13 |
* LOCATION: see http://www.boost.org for most recent version. |
sl@0 | 14 |
* FILE regex.cpp |
sl@0 | 15 |
* VERSION see <boost/version.hpp> |
sl@0 | 16 |
* DESCRIPTION: Declares boost::basic_regex<> and associated |
sl@0 | 17 |
* functions and classes. This header is the main |
sl@0 | 18 |
* entry point for the template regex code. |
sl@0 | 19 |
*/ |
sl@0 | 20 |
|
sl@0 | 21 |
#ifndef BOOST_RE_REGEX_HPP_INCLUDED |
sl@0 | 22 |
#define BOOST_RE_REGEX_HPP_INCLUDED |
sl@0 | 23 |
|
sl@0 | 24 |
#ifdef __cplusplus |
sl@0 | 25 |
|
sl@0 | 26 |
// what follows is all C++ don't include in C builds!! |
sl@0 | 27 |
|
sl@0 | 28 |
#ifndef BOOST_REGEX_CONFIG_HPP |
sl@0 | 29 |
#include <boost/regex/config.hpp> |
sl@0 | 30 |
#endif |
sl@0 | 31 |
#ifndef BOOST_REGEX_WORKAROUND_HPP |
sl@0 | 32 |
#include <boost/regex/v4/regex_workaround.hpp> |
sl@0 | 33 |
#endif |
sl@0 | 34 |
|
sl@0 | 35 |
#ifndef BOOST_REGEX_FWD_HPP |
sl@0 | 36 |
#include <boost/regex_fwd.hpp> |
sl@0 | 37 |
#endif |
sl@0 | 38 |
#ifndef BOOST_REGEX_TRAITS_HPP |
sl@0 | 39 |
#include <boost/regex/regex_traits.hpp> |
sl@0 | 40 |
#endif |
sl@0 | 41 |
#ifndef BOOST_REGEX_RAW_BUFFER_HPP |
sl@0 | 42 |
#include <boost/regex/v4/error_type.hpp> |
sl@0 | 43 |
#endif |
sl@0 | 44 |
#ifndef BOOST_REGEX_V4_MATCH_FLAGS |
sl@0 | 45 |
#include <boost/regex/v4/match_flags.hpp> |
sl@0 | 46 |
#endif |
sl@0 | 47 |
#ifndef BOOST_REGEX_RAW_BUFFER_HPP |
sl@0 | 48 |
#include <boost/regex/v4/regex_raw_buffer.hpp> |
sl@0 | 49 |
#endif |
sl@0 | 50 |
#ifndef BOOST_RE_PAT_EXCEPT_HPP |
sl@0 | 51 |
#include <boost/regex/pattern_except.hpp> |
sl@0 | 52 |
#endif |
sl@0 | 53 |
|
sl@0 | 54 |
#ifndef BOOST_REGEX_V4_CHAR_REGEX_TRAITS_HPP |
sl@0 | 55 |
#include <boost/regex/v4/char_regex_traits.hpp> |
sl@0 | 56 |
#endif |
sl@0 | 57 |
#ifndef BOOST_REGEX_V4_STATES_HPP |
sl@0 | 58 |
#include <boost/regex/v4/states.hpp> |
sl@0 | 59 |
#endif |
sl@0 | 60 |
#ifndef BOOST_REGEX_V4_REGBASE_HPP |
sl@0 | 61 |
#include <boost/regex/v4/regbase.hpp> |
sl@0 | 62 |
#endif |
sl@0 | 63 |
#ifndef BOOST_REGEX_V4_ITERATOR_TRAITS_HPP |
sl@0 | 64 |
#include <boost/regex/v4/iterator_traits.hpp> |
sl@0 | 65 |
#endif |
sl@0 | 66 |
#ifndef BOOST_REGEX_V4_BASIC_REGEX_HPP |
sl@0 | 67 |
#include <boost/regex/v4/basic_regex.hpp> |
sl@0 | 68 |
#endif |
sl@0 | 69 |
#ifndef BOOST_REGEX_V4_BASIC_REGEX_CREATOR_HPP |
sl@0 | 70 |
#include <boost/regex/v4/basic_regex_creator.hpp> |
sl@0 | 71 |
#endif |
sl@0 | 72 |
#ifndef BOOST_REGEX_V4_BASIC_REGEX_PARSER_HPP |
sl@0 | 73 |
#include <boost/regex/v4/basic_regex_parser.hpp> |
sl@0 | 74 |
#endif |
sl@0 | 75 |
#ifndef BOOST_REGEX_V4_SUB_MATCH_HPP |
sl@0 | 76 |
#include <boost/regex/v4/sub_match.hpp> |
sl@0 | 77 |
#endif |
sl@0 | 78 |
#ifndef BOOST_REGEX_FORMAT_HPP |
sl@0 | 79 |
#include <boost/regex/v4/regex_format.hpp> |
sl@0 | 80 |
#endif |
sl@0 | 81 |
#ifndef BOOST_REGEX_V4_MATCH_RESULTS_HPP |
sl@0 | 82 |
#include <boost/regex/v4/match_results.hpp> |
sl@0 | 83 |
#endif |
sl@0 | 84 |
#ifndef BOOST_REGEX_V4_PROTECTED_CALL_HPP |
sl@0 | 85 |
#include <boost/regex/v4/protected_call.hpp> |
sl@0 | 86 |
#endif |
sl@0 | 87 |
#ifndef BOOST_REGEX_MATCHER_HPP |
sl@0 | 88 |
#include <boost/regex/v4/perl_matcher.hpp> |
sl@0 | 89 |
#endif |
sl@0 | 90 |
// |
sl@0 | 91 |
// template instances: |
sl@0 | 92 |
// |
sl@0 | 93 |
#define BOOST_REGEX_CHAR_T char |
sl@0 | 94 |
#ifdef BOOST_REGEX_NARROW_INSTANTIATE |
sl@0 | 95 |
# define BOOST_REGEX_INSTANTIATE |
sl@0 | 96 |
#endif |
sl@0 | 97 |
#include <boost/regex/v4/instances.hpp> |
sl@0 | 98 |
#undef BOOST_REGEX_CHAR_T |
sl@0 | 99 |
#ifdef BOOST_REGEX_INSTANTIATE |
sl@0 | 100 |
# undef BOOST_REGEX_INSTANTIATE |
sl@0 | 101 |
#endif |
sl@0 | 102 |
|
sl@0 | 103 |
#ifndef BOOST_NO_WREGEX |
sl@0 | 104 |
#define BOOST_REGEX_CHAR_T wchar_t |
sl@0 | 105 |
#ifdef BOOST_REGEX_WIDE_INSTANTIATE |
sl@0 | 106 |
# define BOOST_REGEX_INSTANTIATE |
sl@0 | 107 |
#endif |
sl@0 | 108 |
#include <boost/regex/v4/instances.hpp> |
sl@0 | 109 |
#undef BOOST_REGEX_CHAR_T |
sl@0 | 110 |
#ifdef BOOST_REGEX_INSTANTIATE |
sl@0 | 111 |
# undef BOOST_REGEX_INSTANTIATE |
sl@0 | 112 |
#endif |
sl@0 | 113 |
#endif |
sl@0 | 114 |
|
sl@0 | 115 |
#if !defined(BOOST_NO_WREGEX) && defined(BOOST_REGEX_HAS_OTHER_WCHAR_T) |
sl@0 | 116 |
#define BOOST_REGEX_CHAR_T unsigned short |
sl@0 | 117 |
#ifdef BOOST_REGEX_US_INSTANTIATE |
sl@0 | 118 |
# define BOOST_REGEX_INSTANTIATE |
sl@0 | 119 |
#endif |
sl@0 | 120 |
#include <boost/regex/v4/instances.hpp> |
sl@0 | 121 |
#undef BOOST_REGEX_CHAR_T |
sl@0 | 122 |
#ifdef BOOST_REGEX_INSTANTIATE |
sl@0 | 123 |
# undef BOOST_REGEX_INSTANTIATE |
sl@0 | 124 |
#endif |
sl@0 | 125 |
#endif |
sl@0 | 126 |
|
sl@0 | 127 |
|
sl@0 | 128 |
namespace boost{ |
sl@0 | 129 |
#ifdef BOOST_REGEX_NO_FWD |
sl@0 | 130 |
typedef basic_regex<char, regex_traits<char> > regex; |
sl@0 | 131 |
#ifndef BOOST_NO_WREGEX |
sl@0 | 132 |
typedef basic_regex<wchar_t, regex_traits<wchar_t> > wregex; |
sl@0 | 133 |
#endif |
sl@0 | 134 |
#endif |
sl@0 | 135 |
|
sl@0 | 136 |
typedef match_results<const char*> cmatch; |
sl@0 | 137 |
typedef match_results<std::string::const_iterator> smatch; |
sl@0 | 138 |
#ifndef BOOST_NO_WREGEX |
sl@0 | 139 |
typedef match_results<const wchar_t*> wcmatch; |
sl@0 | 140 |
typedef match_results<std::wstring::const_iterator> wsmatch; |
sl@0 | 141 |
#endif |
sl@0 | 142 |
|
sl@0 | 143 |
} // namespace boost |
sl@0 | 144 |
#ifndef BOOST_REGEX_MATCH_HPP |
sl@0 | 145 |
#include <boost/regex/v4/regex_match.hpp> |
sl@0 | 146 |
#endif |
sl@0 | 147 |
#ifndef BOOST_REGEX_V4_REGEX_SEARCH_HPP |
sl@0 | 148 |
#include <boost/regex/v4/regex_search.hpp> |
sl@0 | 149 |
#endif |
sl@0 | 150 |
#ifndef BOOST_REGEX_ITERATOR_HPP |
sl@0 | 151 |
#include <boost/regex/v4/regex_iterator.hpp> |
sl@0 | 152 |
#endif |
sl@0 | 153 |
#ifndef BOOST_REGEX_TOKEN_ITERATOR_HPP |
sl@0 | 154 |
#include <boost/regex/v4/regex_token_iterator.hpp> |
sl@0 | 155 |
#endif |
sl@0 | 156 |
#ifndef BOOST_REGEX_V4_REGEX_GREP_HPP |
sl@0 | 157 |
#include <boost/regex/v4/regex_grep.hpp> |
sl@0 | 158 |
#endif |
sl@0 | 159 |
#ifndef BOOST_REGEX_V4_REGEX_REPLACE_HPP |
sl@0 | 160 |
#include <boost/regex/v4/regex_replace.hpp> |
sl@0 | 161 |
#endif |
sl@0 | 162 |
#ifndef BOOST_REGEX_V4_REGEX_MERGE_HPP |
sl@0 | 163 |
#include <boost/regex/v4/regex_merge.hpp> |
sl@0 | 164 |
#endif |
sl@0 | 165 |
#ifndef BOOST_REGEX_SPLIT_HPP |
sl@0 | 166 |
#include <boost/regex/v4/regex_split.hpp> |
sl@0 | 167 |
#endif |
sl@0 | 168 |
|
sl@0 | 169 |
#endif // __cplusplus |
sl@0 | 170 |
|
sl@0 | 171 |
#endif // include |
sl@0 | 172 |
|
sl@0 | 173 |
|
sl@0 | 174 |
|
sl@0 | 175 |
|
sl@0 | 176 |
|
sl@0 | 177 |
|
sl@0 | 178 |
|
sl@0 | 179 |
|
sl@0 | 180 |
|
sl@0 | 181 |
|
sl@0 | 182 |
|
sl@0 | 183 |
|
sl@0 | 184 |
|
sl@0 | 185 |
|
sl@0 | 186 |
|
sl@0 | 187 |
|
sl@0 | 188 |
|
sl@0 | 189 |
|
sl@0 | 190 |
|
sl@0 | 191 |
|
sl@0 | 192 |
|
sl@0 | 193 |
|
sl@0 | 194 |
|
sl@0 | 195 |
|
sl@0 | 196 |
|
sl@0 | 197 |
|
sl@0 | 198 |
|
sl@0 | 199 |
|
sl@0 | 200 |
|
sl@0 | 201 |
|
sl@0 | 202 |