MCPcopy Create free account
hub / github.com/Kitware/CMake / cmScriptGeneratorEncodeConfig

Function cmScriptGeneratorEncodeConfig

Source/cmScriptGenerator.cxx:31–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static void cmScriptGeneratorEncodeConfig(std::string const& config,
32 std::string& result)
33{
34 for (char const* c = config.c_str(); *c; ++c) {
35 if (*c >= 'a' && *c <= 'z') {
36 result += "[";
37 result += static_cast<char>(*c + 'A' - 'a');
38 result += *c;
39 result += "]";
40 } else if (*c >= 'A' && *c <= 'Z') {
41 result += "[";
42 result += *c;
43 result += static_cast<char>(*c + 'a' - 'A');
44 result += "]";
45 } else {
46 result += *c;
47 }
48 }
49}
50
51std::string cmScriptGenerator::CreateConfigTest(std::string const& config)
52{

Callers 1

CreateConfigTestMethod · 0.85

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…