Lines Matching full:stringpiece
120 // them as they match. This requires use of the "StringPiece" type,
125 // StringPiece input(contents); // Wrap a StringPiece around it
186 #include "re2/stringpiece.h"
241 // Otherwise the StringPiece form would be sufficient.
246 RE2(const StringPiece& pattern);
247 RE2(const StringPiece& pattern, const Options& option);
290 // StringPiece (StringPiece is mutated to point to matched piece)
309 static bool FullMatchN(const StringPiece& text, const RE2& re,
312 bool, const StringPiece&, const RE2&, Arg, RE2::FullMatchN> FullMatch;
316 static bool PartialMatchN(const StringPiece& text, const RE2& re, // 3..16 args
319 bool, const StringPiece&, const RE2&, Arg, RE2::PartialMatchN> PartialMatch;
324 static bool ConsumeN(StringPiece* input, const RE2& pattern, // 3..16 args
327 bool, StringPiece*, const RE2&, Arg, RE2::ConsumeN> Consume;
333 static bool FindAndConsumeN(StringPiece* input, const RE2& pattern,
336 bool, StringPiece*, const RE2&, Arg, RE2::FindAndConsumeN> FindAndConsume;
353 const StringPiece& rewrite);
370 const StringPiece& rewrite);
378 static bool Extract(const StringPiece &text,
380 const StringPiece &rewrite,
389 static string QuoteMeta(const StringPiece& unquoted);
449 // Passing text == StringPiece(NULL, 0) will be handled like any other
453 bool Match(const StringPiece& text,
457 StringPiece *match,
468 bool CheckRewriteString(const StringPiece& rewrite, string* error) const;
671 void Init(const StringPiece& pattern, const Options& options);
674 const StringPiece &rewrite,
675 const StringPiece* vec,
678 bool DoMatch(const StringPiece& text,
758 MAKE_PARSER(StringPiece, parse_stringpiece);