MCPcopy Create free account
hub / github.com/ablab/spades / find_format_impl2

Function find_format_impl2

ext/include/boost/algorithm/string/detail/find_format.hpp:157–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 1

find_format_implFunction · 0.85

Calls 3

replaceFunction · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected