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

Method getValue

Libraries/Http/HttpURLParser.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101bool SC::HttpFormUrlEncodedIterator::getValue(StringSpan body, StringSpan name, StringSpan& value)
102{
103 value = {};
104
105 HttpFormUrlEncodedIterator it(body);
106 HttpURLQueryItem item;
107 while (it.next(item))
108 {
109 if (item.name == name)
110 {
111 value = item.value;
112 return true;
113 }
114 }
115 return false;
116}
117
118static int scHttpHexValue(char value)
119{

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected