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

Method Find

library/cpp/cgiparam/cgiparam.cpp:234–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234TCgiParameters::const_iterator TCgiParameters::Find(const TStringBuf name, size_t pos) const noexcept Y_LIFETIME_BOUND {
235 const auto pair = equal_range(name);
236
237 for (auto it = pair.first; it != pair.second; ++it, --pos) {
238 if (0 == pos) {
239 return it;
240 }
241 }
242
243 return end();
244}
245
246bool TCgiParameters::Has(const TStringBuf name, const TStringBuf value) const noexcept {
247 const auto pair = equal_range(name);

Callers

nothing calls this directly

Calls 2

equal_rangeFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected