Home | History | Annotate | Download | only in re2

Lines Matching full:match

39 // Example: successful match
42 // Example: unsuccessful match (requires full match):
89 // to match any substring of the text.
119 // match regular expressions at the front of a string and skip over
120 // them as they match. This requires use of the "StringPiece" type,
136 // by 0 bytes. If the regular expression being used might match
141 // anchor your match at the beginning of the string. For example, you
152 // match arguments are determined at run time.
159 // bool match = RE2::FullMatchN(input, pattern, args, n);
163 // bool match = RE2::FullMatch(input, pattern,
236 static const Options POSIX; // POSIX syntax, leftmost-longest match
314 // Exactly like FullMatch(), except that "pattern" is allowed to match
322 // match a prefix of "text", and "input" is advanced past the matched
329 // Like Consume(..), but does not anchor the match at the beginning of the
330 // string. That is, "pattern" need not start its match at the beginning of
338 // Replace the first match of "pattern" in "str" with "rewrite".
376 // Returns true iff a match occurred and the extraction happened
377 // successfully; if no match occurs, the string is left unaffected.
385 // will exactly match the original string. For example,
396 // string s that is an anchored match for this regexp satisfies
409 // Type of match.
417 // regexp wasn't valid on construction. The overall match ($0)
434 // Match against text starting at offset startpos
436 // Returns true if match found, false if not.
437 // On a successful match, fills in match[] (up to nmatch entries)
440 // setting match[0] = "barbaz", match[1] = NULL, match[2] = "bar",
441 // match[3] = NULL, ..., up to match[nmatch-1] = NULL.
443 // Don't ask for more match information than you will use:
451 // whether submatch i matched the empty string or did not match:
452 // either way, match[i] == NULL.
453 bool Match(const StringPiece& text,
457 StringPiece *match,
477 // longest_match (false) search for longest match, not first match
481 // never_nl (false) never match \n, even if it is in regexp
482 // case_sensitive (true) match is case-sensitive (regexp can override
490 // one_line (false) ^ and $ only match beginning and end of text
500 // can have two DFAs (one first match, one longest match).
503 // forward, first-match - used for UNANCHORED or ANCHOR_LEFT searches
505 // forward, longest-match - used for all ANCHOR_BOTH searches,
508 // reverse, first-match - never used
509 // reverse, longest-match - used as second phase for unanchored searches
515 // gives it all to its longest-match DFA.