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

Method Match

lib/yamlcpp/src/regeximpl.h:40–43  ·  view source on GitHub ↗

Match . Matches the given string against this regular expression. . Returns the number of characters matched. . Returns -1 if no characters were matched (the reason for not returning zero is that we may have an empty regex which is ALWAYS successful at matching zero characters). . REMEMBER that we only match from the start of the buffer!

Source from the content-addressed store, hash-verified

38// which is ALWAYS successful at matching zero characters).
39// . REMEMBER that we only match from the start of the buffer!
40inline int RegEx::Match(const std::string& str) const {
41 StringCharSource source(str.c_str(), str.size());
42 return Match(source);
43}
44
45inline int RegEx::Match(const Stream& in) const {
46 StreamCharSource source(in);

Callers 12

do_remapFunction · 0.45
do_remapFunction · 0.45
TESTFunction · 0.45
ScanToNextTokenMethod · 0.45
ScanBlockScalarMethod · 0.45
MatchOpSeqMethod · 0.45
WriteTagFunction · 0.45
WriteTagWithPrefixFunction · 0.45
ScanScalarFunction · 0.45
ScanVerbatimTagFunction · 0.45
ScanTagHandleFunction · 0.45
ScanTagSuffixFunction · 0.45

Calls 2

c_strMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.36