Home | History | Annotate | Download | only in util

Lines Matching refs:pattern

36 // supplied pattern exactly.
47 // By default, pattern and text are plain text, one byte per character.
48 // The UTF8 flag, passed to the constructor, causes both pattern
51 // is likelier to be UTF-8 than the pattern, but the match returned
88 // You can use the "PartialMatch" operation when you want the pattern
106 // object from the pattern and use it multiple times. If you do so,
109 // Example: precompile pattern for faster matching:
110 // PCRE pattern("h.*o");
112 // if (PCRE::FullMatch(str, pattern)) ...;
223 PCRE(const char* pattern);
224 PCRE(const char* pattern, Option option);
225 PCRE(const string& pattern);
226 PCRE(const string& pattern, Option option);
227 PCRE(const char *pattern, const PCRE_Options& re_option);
228 PCRE(const string& pattern, const PCRE_Options& re_option);
234 // re.pattern(); // "ab*c?d+"
235 const string& pattern() const { return pattern_; }
251 // Matches "text" against "pattern". If pointer arguments are
255 // You can pass in a "const char*" or a "string" or a "PCRE" for "pattern".
262 // (void*)NULL (the corresponding matched sub-pattern is not copied)
265 // a. "text" matches "pattern" exactly
268 // string captured as the "i"th sub-pattern. If you pass in
270 // number of sub-patterns, "i"th captured sub-pattern is
273 // CAVEAT: An optional sub-pattern that does not exist in the
301 // Exactly like FullMatch(), except that "pattern" is allowed to match
325 // Like FullMatch() and PartialMatch(), except that pattern has to
329 bool operator ()(StringPiece* input, const PCRE& pattern, // 3..16 args
351 // string. That is, "pattern" need not start its match at the beginning of
355 bool operator ()(StringPiece* input, const PCRE& pattern,
376 // Replace the first match of "pattern" in "str" with "rewrite".
379 // from the pattern. \0 in "rewrite" refers to the entire matching
387 // Returns true if the pattern matches and a replacement occurs,
390 const PCRE& pattern,
393 // Like Replace(), except replaces all occurrences of the pattern in
404 const PCRE& pattern,
407 // Like Replace, except that if the pattern matches, "rewrite"
414 const PCRE& pattern,
463 void Init(const char* pattern, Option option, int match_limit,