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

Method take_prefix

lib/swoc/include/swoc/TextView.h:1349–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347}
1348
1349inline TextView
1350TextView::take_prefix(size_t n) {
1351 n = std::min(n, this->size());
1352 self_type zret = this->prefix(n);
1353 this->remove_prefix(std::min(n + 1, this->size()));
1354 return zret;
1355}
1356
1357inline TextView
1358TextView::take_prefix_at(char c) {

Callers 10

take_prefix_atMethod · 0.95
take_prefix_ifMethod · 0.95
parseMethod · 0.45
tokenizeMethod · 0.45
ex_TextView.ccFile · 0.45
tokenMethod · 0.45
get_host_port_valuesMethod · 0.45
find_csvMethod · 0.45
ats_ip_parseFunction · 0.45

Calls 3

prefixMethod · 0.95
remove_prefixMethod · 0.95
sizeMethod · 0.45

Tested by

no test coverage detected