Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:08:38

0001 /*
0002  *
0003  * Copyright (c) 1998-2002
0004  * John Maddock
0005  *
0006  * Use, modification and distribution are subject to the 
0007  * Boost Software License, Version 1.0. (See accompanying file 
0008  * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009  *
0010  */
0011 
0012  /*
0013   *   LOCATION:    see http://www.boost.org for most recent version.
0014   *   FILE         regex_format.hpp
0015   *   VERSION      see <boost/version.hpp>
0016   *   DESCRIPTION: Provides formatting output routines for search and replace
0017   *                operations.  Note this is an internal header file included
0018   *                by regex.hpp, do not include on its own.
0019   */
0020 
0021 #ifndef BOOST_REGEX_V5_REGEX_MERGE_HPP
0022 #define BOOST_REGEX_V5_REGEX_MERGE_HPP
0023 
0024 
0025 namespace boost{
0026 
0027 template <class OutputIterator, class Iterator, class traits, class charT>
0028 inline OutputIterator regex_merge(OutputIterator out,
0029                          Iterator first,
0030                          Iterator last,
0031                          const basic_regex<charT, traits>& e, 
0032                          const charT* fmt, 
0033                          match_flag_type flags = match_default)
0034 {
0035    return regex_replace(out, first, last, e, fmt, flags);
0036 }
0037 
0038 template <class OutputIterator, class Iterator, class traits, class charT>
0039 inline OutputIterator regex_merge(OutputIterator out,
0040                          Iterator first,
0041                          Iterator last,
0042                          const basic_regex<charT, traits>& e, 
0043                          const std::basic_string<charT>& fmt,
0044                          match_flag_type flags = match_default)
0045 {
0046    return regex_merge(out, first, last, e, fmt.c_str(), flags);
0047 }
0048 
0049 template <class traits, class charT>
0050 inline std::basic_string<charT> regex_merge(const std::basic_string<charT>& s,
0051                          const basic_regex<charT, traits>& e, 
0052                          const charT* fmt,
0053                          match_flag_type flags = match_default)
0054 {
0055    return regex_replace(s, e, fmt, flags);
0056 }
0057 
0058 template <class traits, class charT>
0059 inline std::basic_string<charT> regex_merge(const std::basic_string<charT>& s,
0060                          const basic_regex<charT, traits>& e, 
0061                          const std::basic_string<charT>& fmt,
0062                          match_flag_type flags = match_default)
0063 {
0064    return regex_replace(s, e, fmt, flags);
0065 }
0066 
0067 } // namespace boost
0068 
0069 #endif  // BOOST_REGEX_V5_REGEX_MERGE_HPP
0070 
0071