| 209 | } |
| 210 | |
| 211 | static JSONCPP_STRING removeSuffix(const JSONCPP_STRING& path, |
| 212 | const JSONCPP_STRING& extension) { |
| 213 | if (extension.length() >= path.length()) |
| 214 | return JSONCPP_STRING(""); |
| 215 | JSONCPP_STRING suffix = path.substr(path.length() - extension.length()); |
| 216 | if (suffix != extension) |
| 217 | return JSONCPP_STRING(""); |
| 218 | return path.substr(0, path.length() - extension.length()); |
| 219 | } |
| 220 | |
| 221 | static void printConfig() { |
| 222 | // Print the configuration used to compile JsonCpp |