MCPcopy Create free account
hub / github.com/Icinga/icinga2 / FileNameToGuardName

Method FileNameToGuardName

tools/mkclass/classcompiler.cpp:1439–1452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1437}
1438
1439std::string ClassCompiler::FileNameToGuardName(const std::string& fname)
1440{
1441 std::string result = fname;
1442 std::locale locale;
1443
1444 for (auto& ch : result) {
1445 ch = std::toupper(ch, locale);
1446
1447 if (ch == '.')
1448 ch = '_';
1449 }
1450
1451 return result;
1452}
1453
1454void ClassCompiler::CompileStream(const std::string& path, std::istream& input,
1455 std::ostream& oimpl, std::ostream& oheader)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected