| 155 | typename FindResultT, |
| 156 | typename FormatResultT > |
| 157 | inline void find_format_impl2( |
| 158 | InputT& Input, |
| 159 | FormatterT Formatter, |
| 160 | const FindResultT& FindResult, |
| 161 | const FormatResultT& FormatResult) |
| 162 | { |
| 163 | typedef find_format_store< |
| 164 | BOOST_STRING_TYPENAME |
| 165 | range_iterator<InputT>::type, |
| 166 | FormatterT, |
| 167 | FormatResultT > store_type; |
| 168 | |
| 169 | // Create store for the find result |
| 170 | store_type M( FindResult, FormatResult, Formatter ); |
| 171 | |
| 172 | if ( !M ) |
| 173 | { |
| 174 | // Search not found - return original sequence |
| 175 | return; |
| 176 | } |
| 177 | |
| 178 | // Replace match |
| 179 | ::boost::algorithm::detail::replace( Input, M.begin(), M.end(), M.format_result() ); |
| 180 | } |
| 181 | |
| 182 | template< |
| 183 | typename InputT, |
no test coverage detected