| 282 | } |
| 283 | |
| 284 | static bool hasUrlUnsafeBytes(SC::StringSpan value) |
| 285 | { |
| 286 | const SC::Span<const char> bytes = value.toCharSpan(); |
| 287 | for (size_t idx = 0; idx < bytes.sizeInBytes(); ++idx) |
| 288 | { |
| 289 | const unsigned char c = static_cast<unsigned char>(bytes[idx]); |
| 290 | if (c <= ' ' or c == 0x7f) |
| 291 | { |
| 292 | return true; |
| 293 | } |
| 294 | } |
| 295 | return false; |
| 296 | } |
| 297 | |
| 298 | static bool hasPathUnsafeBytes(SC::StringSpan value) |
| 299 | { |
no test coverage detected