MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / underscorize

Function underscorize

tools/xml2cpp-codegen/generator_utils.cpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13std::string underscorize(const std::string& str)
14{
15 std::string res = str;
16 for (unsigned int i = 0; i < res.length(); ++i)
17 {
18 if (!isalpha(res[i]) && !isdigit(res[i]))
19 {
20 res[i] = '_';
21 }
22 }
23 return res;
24}
25
26std::string stub_name(const std::string& name)
27{

Callers 2

stub_nameFunction · 0.85
createHeaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected