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

Method ends_with

lib/swoc/include/swoc/TextView.h:1685–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1683}
1684
1685inline bool
1686TextView::ends_with(std::string_view const &suffix) const noexcept {
1687 return this->size() >= suffix.size() && 0 == ::memcmp(this->data_end() - suffix.size(), suffix.data(), suffix.size());
1688}
1689
1690inline bool
1691TextView::ends_with_nocase(std::string_view const &suffix) const noexcept {

Callers 7

test_TextView.ccFile · 0.45
BridgeFactoryMethod · 0.45
do_remap_requestMethod · 0.45
getRemapPluginMethod · 0.45
loadMethod · 0.45
operator()Method · 0.45
operator()Method · 0.45

Calls 5

data_endMethod · 0.95
memcmpFunction · 0.70
sizeMethod · 0.45
dataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected