MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / equal_to

Method equal_to

net/http/headers.cpp:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 HeaderAssistant(const HeadersBase* h) : _h(h) {}
35
36 bool equal_to(rstring_view16 _k, std::string_view key) const {
37 return (_k | _h->m_buf).icmp(key) == 0;
38 }
39 bool less(rstring_view16 _k1, rstring_view16 _k2) const {
40 return (_k1 | _h->m_buf).icmp(_k2 | _h->m_buf) < 0;
41 }

Callers 1

findMethod · 0.80

Calls 1

icmpMethod · 0.45

Tested by

no test coverage detected