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

Function InsertAfter

InsightsHelpers.cpp:250–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248//-----------------------------------------------------------------------------
249
250static void InsertAfter(std::string& source, const std::string_view& find, const std::string_view& replace)
251{
252 const std::string::size_type i = source.find(find, 0);
253
254 if(std::string::npos != i) {
255 source.insert(i + find.length(), replace);
256 }
257}
258//-----------------------------------------------------------------------------
259
260std::string MakeLineColumnName(const SourceManager& sm, const SourceLocation& loc, const std::string_view& prefix)

Callers 1

GetTypeNameAsParameterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected