MCPcopy Create free account
hub / github.com/Vector35/debugger / EscapeModuleName

Function EscapeModuleName

core/adapters/dbgengadapter.cpp:816–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816static std::string EscapeModuleName(const std::string& name)
817{
818 std::string result = name;
819 const std::string charsToEscape = " -'~`.";
820 auto shouldReplace = [&](char c) -> bool {
821 return charsToEscape.find(c) != std::string::npos;
822 };
823 std::replace_if(result.begin(), result.end(), shouldReplace, '_');
824 return result;
825}
826
827DebugBreakpoint DbgEngAdapter::AddBreakpoint(const ModuleNameAndOffset& address, unsigned long breakpoint_type)
828{

Callers 1

AddBreakpointMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected