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
29 #pragma warning(disable: 4103)
31 #ifdef BOOST_HAS_ABI_HEADERS
32 # include BOOST_ABI_PREFIX
38 template <class OutputIterator, class Iterator, class traits, class charT>
39 inline OutputIterator regex_merge(OutputIterator out,
42 const basic_regex<charT, traits>& e,
44 match_flag_type flags = match_default)
46 return regex_replace(out, first, last, e, fmt, flags);
49 template <class OutputIterator, class Iterator, class traits, class charT>
50 inline OutputIterator regex_merge(OutputIterator out,
53 const basic_regex<charT, traits>& e,
54 const std::basic_string<charT>& fmt,
55 match_flag_type flags = match_default)
57 return regex_merge(out, first, last, e, fmt.c_str(), flags);
60 template <class traits, class charT>
61 inline std::basic_string<charT> regex_merge(const std::basic_string<charT>& s,
62 const basic_regex<charT, traits>& e,
64 match_flag_type flags = match_default)
66 return regex_replace(s, e, fmt, flags);
69 template <class traits, class charT>
70 inline std::basic_string<charT> regex_merge(const std::basic_string<charT>& s,
71 const basic_regex<charT, traits>& e,
72 const std::basic_string<charT>& fmt,
73 match_flag_type flags = match_default)
75 return regex_replace(s, e, fmt, flags);
80 #pragma warning(disable: 4103)
82 #ifdef BOOST_HAS_ABI_HEADERS
83 # include BOOST_ABI_SUFFIX
91 #endif // BOOST_REGEX_V4_REGEX_MERGE_HPP