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

Method match

src/tsutil/Regex.cc:385–395  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

383
384//----------------------------------------------------------------------------
385int32_t
386DFA::match(std::string_view str) const
387{
388 for (auto spot = _patterns.begin(), limit = _patterns.end(); spot != limit; ++spot) {
389 if (spot->_re.exec(str)) {
390 return spot - _patterns.begin();
391 }
392 }
393
394 return -1;
395}

Callers 5

RecLookupMatchingRecordsFunction · 0.45
tag_activatedMethod · 0.45
runMethod · 0.45
run_someMethod · 0.45

Calls 3

beginMethod · 0.45
endMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected