MCPcopy Create free account
hub / github.com/chen3feng/toft / RemoveAll

Function RemoveAll

base/string/algorithm.cpp:222–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222std::string RemoveAll(const StringPiece& s, const StringPiece& substr, bool fill_blank)
223{
224 return fill_blank ? ReplaceAll(s, substr, " ") :
225 ReplaceAll(s, substr, "");
226}
227
228template <typename StringType, typename ITR>
229static inline

Callers 1

TESTFunction · 0.85

Calls 1

ReplaceAllFunction · 0.85

Tested by 1

TESTFunction · 0.68