| 29 | } |
| 30 | |
| 31 | static 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 | |
| 51 | std::string cmScriptGenerator::CreateConfigTest(std::string const& config) |
| 52 | { |
no test coverage detected
searching dependent graphs…