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

Method active_group

plugins/experimental/txn_box/plugin/src/Context.cc:517–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517TextView
518Context::active_group(int idx)
519{
520 auto ovector = pcre2_get_ovector_pointer(_rxp_active);
521 idx *= 2; // To account for offset pairs.
522 TS_DBG("Access match group %d at offsets %ld:%ld", idx / 2, ovector[idx], ovector[idx + 1]);
523 return _rxp_src.substr(ovector[idx], ovector[idx + 1] - ovector[idx]);
524}
525
526unsigned
527Context::ArgPack::count() const

Callers 2

operator()Method · 0.80
Context.ccFile · 0.80

Calls 1

substrMethod · 0.45

Tested by

no test coverage detected