MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / remove_underscore

Function remove_underscore

simcore/framework/src/cli/cli.hpp:330–333  ·  view source on GitHub ↗

remove underscores from a string

Source from the content-addressed store, hash-verified

328
329/// remove underscores from a string
330inline std::string remove_underscore(std::string str) {
331 str.erase(std::remove(std::begin(str), std::end(str), '_'), std::end(str));
332 return str;
333}
334
335/// Find and replace a substring with another substring
336inline std::string find_and_replace(std::string str, std::string from, std::string to) {

Callers 4

find_memberFunction · 0.85
ignore_underscoreFunction · 0.85
check_nameMethod · 0.85
check_nameMethod · 0.85

Calls 3

beginFunction · 0.85
endFunction · 0.85
eraseMethod · 0.45

Tested by

no test coverage detected