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

Method splitOn

include/tscore/TsBuffer.h:461–472  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461inline ConstBuffer
462ConstBuffer::splitOn(char const *p)
463{
464 self zret; // default to empty return.
465 if (this->contains(p)) {
466 size_t n = p - _ptr;
467 zret.set(_ptr, n);
468 _ptr = p + 1;
469 _size -= n + 1;
470 }
471 return zret;
472}
473
474inline char const *
475ConstBuffer::find(char c) const

Callers

nothing calls this directly

Calls 3

containsMethod · 0.95
findMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected