| 116 | } |
| 117 | |
| 118 | static int scHttpHexValue(char value) |
| 119 | { |
| 120 | if (value >= '0' and value <= '9') |
| 121 | { |
| 122 | return value - '0'; |
| 123 | } |
| 124 | if (value >= 'A' and value <= 'F') |
| 125 | { |
| 126 | return value - 'A' + 10; |
| 127 | } |
| 128 | if (value >= 'a' and value <= 'f') |
| 129 | { |
| 130 | return value - 'a' + 10; |
| 131 | } |
| 132 | return -1; |
| 133 | } |
| 134 | |
| 135 | static SC::Result scHttpDecodeComponent(SC::StringSpan input, SC::Span<char> storage, SC::StringSpan& output, |
| 136 | bool plusAsSpace) |
no outgoing calls
no test coverage detected