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

Method get_capture_count

src/tsutil/Regex.cc:322–330  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

320
321//----------------------------------------------------------------------------
322int32_t
323Regex::get_capture_count()
324{
325 int captures = -1;
326 if (pcre2_pattern_info(_Code::get(_code), PCRE2_INFO_CAPTURECOUNT, &captures) != 0) {
327 return -1;
328 }
329 return captures;
330}
331
332//----------------------------------------------------------------------------
333DFA::~DFA() {}

Callers 2

test_Regex.ccFile · 0.80

Calls 1

getFunction · 0.50

Tested by

no test coverage detected