os/ossrv/ossrv_pub/boost_apis/boost/tr1/regex.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 //  (C) Copyright John Maddock 2005.
     2 //  Use, modification and distribution are subject to the
     3 //  Boost Software License, Version 1.0. (See accompanying file
     4 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
     5 
     6 #ifndef BOOST_TR1_REGEX_HPP_INCLUDED
     7 #  define BOOST_TR1_REGEX_HPP_INCLUDED
     8 #  include <boost/tr1/detail/config.hpp>
     9 
    10 #ifdef BOOST_HAS_TR1_REGEX
    11 
    12 #  include BOOST_TR1_HEADER(regex)
    13 
    14 #else
    15 
    16 #include <boost/regex.hpp>
    17 
    18 namespace std{ namespace tr1{
    19 
    20 // [7.5] Regex constants
    21 namespace regex_constants {
    22 
    23 using ::boost::regex_constants::syntax_option_type;
    24 using ::boost::regex_constants::icase;
    25 using ::boost::regex_constants::nosubs;
    26 using ::boost::regex_constants::optimize;
    27 using ::boost::regex_constants::collate;
    28 using ::boost::regex_constants::ECMAScript;
    29 using ::boost::regex_constants::basic;
    30 using ::boost::regex_constants::extended;
    31 using ::boost::regex_constants::awk;
    32 using ::boost::regex_constants::grep;
    33 using ::boost::regex_constants::egrep;
    34 
    35 using ::boost::regex_constants::match_flag_type;
    36 using ::boost::regex_constants::match_default;
    37 using ::boost::regex_constants::match_not_bol;
    38 using ::boost::regex_constants::match_not_eol;
    39 using ::boost::regex_constants::match_not_bow;
    40 using ::boost::regex_constants::match_not_eow;
    41 using ::boost::regex_constants::match_any;
    42 using ::boost::regex_constants::match_not_null;
    43 using ::boost::regex_constants::match_continuous;
    44 using ::boost::regex_constants::match_prev_avail;
    45 using ::boost::regex_constants::format_default;
    46 using ::boost::regex_constants::format_sed;
    47 using ::boost::regex_constants::format_no_copy;
    48 using ::boost::regex_constants::format_first_only;
    49 
    50 using ::boost::regex_constants::error_type;
    51 using ::boost::regex_constants::error_collate;
    52 using ::boost::regex_constants::error_ctype;
    53 using ::boost::regex_constants::error_escape;
    54 using ::boost::regex_constants::error_backref;
    55 using ::boost::regex_constants::error_brack;
    56 using ::boost::regex_constants::error_paren;
    57 using ::boost::regex_constants::error_brace;
    58 using ::boost::regex_constants::error_badbrace;
    59 using ::boost::regex_constants::error_range;
    60 using ::boost::regex_constants::error_space;
    61 using ::boost::regex_constants::error_badrepeat;
    62 using ::boost::regex_constants::error_complexity;
    63 using ::boost::regex_constants::error_stack;
    64 
    65 } // namespace regex_constants
    66 
    67 // [7.6] Class regex_error
    68 using ::boost::regex_error;
    69 
    70 // [7.7] Class template regex_traits
    71 using ::boost::regex_traits;
    72 
    73 // [7.8] Class template basic_regex
    74 using ::boost::basic_regex;
    75 using ::boost::regex;
    76 #ifndef BOOST_NO_WREGEX
    77 using ::boost::wregex;
    78 #endif
    79 
    80 #if !BOOST_WORKAROUND(__BORLANDC__, < 0x0582)
    81 // [7.8.6] basic_regex swap
    82 using ::boost::swap;
    83 #endif
    84 
    85 // [7.9] Class template sub_match
    86 using ::boost::sub_match;
    87 
    88 using ::boost::csub_match;
    89 #ifndef BOOST_NO_WREGEX
    90 using ::boost::wcsub_match;
    91 #endif
    92 using ::boost::ssub_match;
    93 #ifndef BOOST_NO_WREGEX
    94 using ::boost::wssub_match;
    95 #endif
    96 
    97 // [7.10] Class template match_results
    98 using ::boost::match_results;
    99 using ::boost::cmatch;
   100 #ifndef BOOST_NO_WREGEX
   101 using ::boost::wcmatch;
   102 #endif
   103 using ::boost::smatch;
   104 #ifndef BOOST_NO_WREGEX
   105 using ::boost::wsmatch;
   106 #endif
   107 
   108 using ::boost::regex_match;
   109 
   110 // [7.11.3] Function template regex_search
   111 using ::boost::regex_search;
   112 
   113 // [7.11.4] Function template regex_replace
   114 using ::boost::regex_replace;
   115 
   116 // [7.12.1] Class template regex_iterator
   117 using ::boost::regex_iterator;
   118 using ::boost::cregex_iterator;
   119 #ifndef BOOST_NO_WREGEX
   120 using ::boost::wcregex_iterator;
   121 #endif
   122 using ::boost::sregex_iterator;
   123 #ifndef BOOST_NO_WREGEX
   124 using ::boost::wsregex_iterator;
   125 #endif
   126 
   127 // [7.12.2] Class template regex_token_iterator
   128 using ::boost::regex_token_iterator;
   129 using ::boost::cregex_token_iterator;
   130 #ifndef BOOST_NO_WREGEX
   131 using ::boost::wcregex_token_iterator;
   132 #endif
   133 using ::boost::sregex_token_iterator;
   134 #ifndef BOOST_NO_WREGEX
   135 using ::boost::wsregex_token_iterator;
   136 #endif
   137 
   138 } } // namespaces
   139 
   140 #endif
   141 
   142 #endif