MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / scHttpHexValue

Function scHttpHexValue

Libraries/Http/HttpURLParser.cpp:118–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static 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
135static SC::Result scHttpDecodeComponent(SC::StringSpan input, SC::Span<char> storage, SC::StringSpan& output,
136 bool plusAsSpace)

Callers 1

scHttpDecodeComponentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected