MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / InsertBefore

Function InsertBefore

InsightsHelpers.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238//-----------------------------------------------------------------------------
239
240void InsertBefore(std::string& source, const std::string_view& find, const std::string_view& replace)
241{
242 const std::string::size_type i = source.find(find, 0);
243
244 if(std::string::npos != i) {
245 source.insert(i, replace);
246 }
247}
248//-----------------------------------------------------------------------------
249
250static void InsertAfter(std::string& source, const std::string_view& find, const std::string_view& replace)

Callers 2

InsertArgMethod · 0.85
GetTypeNameAsParameterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected