MCPcopy Create free account
hub / github.com/CLIUtils/CLI11 / remove_underscore

Function remove_underscore

include/CLI/StringTools.hpp:190–193  ·  view source on GitHub ↗

remove underscores from a string

Source from the content-addressed store, hash-verified

188
189/// remove underscores from a string
190inline std::string remove_underscore(std::string str) {
191 str.erase(std::remove(std::begin(str), std::end(str), '_'), std::end(str));
192 return str;
193}
194
195/// @brief get valid group separators _' + local separator if different
196/// @return a string containing the group separators

Callers 4

ignore_underscoreFunction · 0.85
check_nameMethod · 0.85
ptrdiff_t find_memberMethod · 0.85
check_name_detailMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected