Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2013. The current version is 1.91.0.
boost::algorithm::replace_regex_copy — Replace regex algorithm.
template<typename OutputIteratorT, typename RangeT, typename CharT, Â Â Â Â Â Â Â Â Â typename RegexTraitsT, typename FormatStringTraitsT, Â Â Â Â Â Â Â Â Â typename FormatStringAllocatorT> Â Â OutputIteratorT Â Â replace_regex_copy(OutputIteratorT Output, const RangeT & Input, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â const basic_regex< CharT, RegexTraitsT > & Rx, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â const std::basic_string< CharT, FormatStringTraitsT, FormatStringAllocatorT > & Format, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â match_flag_type Flags = match_default|format_default); template<typename SequenceT, typename CharT, typename RegexTraitsT, Â Â Â Â Â Â Â Â Â typename FormatStringTraitsT, typename FormatStringAllocatorT> Â Â SequenceT replace_regex_copy(const SequenceT & Input, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â const basic_regex< CharT, RegexTraitsT > & Rx, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â const std::basic_string< CharT, FormatStringTraitsT, FormatStringAllocatorT > & Format, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â match_flag_type Flags = match_default|format_default);
Search for a substring matching given regex and format it with the specified format. The result is a modified copy of the input. It is returned as a sequence or copied to the output iterator.
| Parameters: |
|
||||||||||
| Returns: | An output iterator pointing just after the last inserted character or a modified copy of the input |
||||||||||
| Notes: | The second variant of this function provides the strong exception-safety guarantee |
| Copyright © 2002-2004 Pavol Droba |