3 * Copyright (c) 1998-2002
6 * Use, modification and distribution are subject to the
7 * Boost Software License, Version 1.0. (See accompanying file
8 * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
13 * LOCATION: see http://www.boost.org for most recent version.
14 * FILE regex_format.hpp
15 * VERSION see <boost/version.hpp>
16 * DESCRIPTION: Provides formatting output routines for search and replace
17 * operations. Note this is an internal header file included
18 * by regex.hpp, do not include on its own.
21 #ifndef BOOST_REGEX_V4_REGEX_MERGE_HPP
22 #define BOOST_REGEX_V4_REGEX_MERGE_HPP
27 #ifdef BOOST_HAS_ABI_HEADERS
28 # include BOOST_ABI_PREFIX
31 template <class OutputIterator, class Iterator, class traits, class charT>
32 inline OutputIterator regex_merge(OutputIterator out,
35 const basic_regex<charT, traits>& e,
37 match_flag_type flags = match_default)
39 return regex_replace(out, first, last, e, fmt, flags);
42 template <class OutputIterator, class Iterator, class traits, class charT>
43 inline OutputIterator regex_merge(OutputIterator out,
46 const basic_regex<charT, traits>& e,
47 const std::basic_string<charT>& fmt,
48 match_flag_type flags = match_default)
50 return regex_merge(out, first, last, e, fmt.c_str(), flags);
53 template <class traits, class charT>
54 inline std::basic_string<charT> regex_merge(const std::basic_string<charT>& s,
55 const basic_regex<charT, traits>& e,
57 match_flag_type flags = match_default)
59 return regex_replace(s, e, fmt, flags);
62 template <class traits, class charT>
63 inline std::basic_string<charT> regex_merge(const std::basic_string<charT>& s,
64 const basic_regex<charT, traits>& e,
65 const std::basic_string<charT>& fmt,
66 match_flag_type flags = match_default)
68 return regex_replace(s, e, fmt, flags);
71 #ifdef BOOST_HAS_ABI_HEADERS
72 # include BOOST_ABI_SUFFIX
77 #endif // BOOST_REGEX_V4_REGEX_MERGE_HPP