MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / operator<

Function operator<

extern/re2/re2/stringpiece.h:187–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187inline bool operator<(const StringPiece& x, const StringPiece& y) {
188 StringPiece::size_type min_size = std::min(x.size(), y.size());
189 int r = min_size == 0 ? 0 : memcmp(x.data(), y.data(), min_size);
190 return (r < 0) || (r == 0 && x.size() < y.size());
191}
192
193inline bool operator>(const StringPiece& x, const StringPiece& y) {
194 return y < x;

Callers

nothing calls this directly

Calls 3

minClass · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected