| 345 | } |
| 346 | |
| 347 | char fromHex( char hex ) |
| 348 | { |
| 349 | if ( '0' <= hex && hex <= '9' ) |
| 350 | return hex - '0'; |
| 351 | if ( 'A' <= hex && hex <= 'F' ) |
| 352 | return hex - 'A' + 10; |
| 353 | if ( 'a' <= hex && hex <= 'f' ) |
| 354 | return hex - 'a' + 10; |
| 355 | MR_UNREACHABLE |
| 356 | } |
| 357 | |
| 358 | std::string percentDecode( std::string_view str ) |
| 359 | { |