| 235 | /************************************************************************/ |
| 236 | |
| 237 | static void PercentEncode(std::string &out, const std::string_view &s) |
| 238 | { |
| 239 | for (unsigned char c : s) |
| 240 | { |
| 241 | if (c > 32 && c <= 127 && c != ':' && c != '/' && c != '\\' && |
| 242 | c != '>' && c != '%' && c != '=') |
| 243 | { |
| 244 | out += c; |
| 245 | } |
| 246 | else |
| 247 | { |
| 248 | out += CPLSPrintf("%%%02X", c); |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | static std::string PercentEncode(const std::string_view &s) |
| 254 | { |
no test coverage detected