MCPcopy Create free account
hub / github.com/apache/trafficserver / rfind_if

Method rfind_if

lib/swoc/include/swoc/TextView.h:1516–1522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1514
1515template <typename F>
1516inline size_t
1517TextView::rfind_if(F const &pred) const {
1518 for (const char *spot = this->data_end(), *limit = this->data(); spot > limit;)
1519 if (pred(*--spot))
1520 return spot - this->data();
1521 return npos;
1522}
1523
1524inline TextView &
1525TextView::ltrim(char c) {

Callers 4

suffix_ifMethod · 0.95
split_suffix_ifMethod · 0.95
take_suffix_ifMethod · 0.95
TextView.hFile · 0.80

Calls 2

data_endMethod · 0.95
dataMethod · 0.95

Tested by

no test coverage detected