MCPcopy Create free account
hub / github.com/catboost/catboost / ForEach

Method ForEach

library/cpp/http/io/stream.cpp:255–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253
254 template <class Functor>
255 inline void ForEach(TString in, Functor& f) {
256 in.to_lower();
257
258 const char* b = in.begin();
259 const char* c = b;
260 const char* e = in.end();
261
262 while (c != e) {
263 if (*c == ',') {
264 f(RmSemiColon(Trim(b, c)));
265 b = c + 1;
266 }
267
268 ++c;
269 }
270
271 if (b != c) {
272 f(RmSemiColon(Trim(b, c)));
273 }
274 }
275
276 inline bool IsRequest() const {
277 // https://datatracker.ietf.org/doc/html/rfc7231#section-4

Callers

nothing calls this directly

Calls 6

RmSemiColonFunction · 0.85
TrimFunction · 0.70
fFunction · 0.50
to_lowerMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected