Lines Matching refs:StringPiece
29 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullMatch;
30 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::PartialMatchN> RE2::PartialMatch;
31 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::ConsumeN> RE2::Consume;
32 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::FindAndConsumeN> RE2::FindAndConsume;
108 static string trunc(const StringPiece& pattern) {
123 RE2::RE2(const StringPiece& pattern) {
127 RE2::RE2(const StringPiece& pattern, const Options& options) {
172 void RE2::Init(const StringPiece& pattern, const Options& options) {
298 bool RE2::FullMatchN(const StringPiece& text, const RE2& re,
303 bool RE2::PartialMatchN(const StringPiece& text, const RE2& re,
308 bool RE2::ConsumeN(StringPiece* input, const RE2& re,
319 bool RE2::FindAndConsumeN(StringPiece* input, const RE2& re,
332 int RE2::MaxSubmatch(const StringPiece& rewrite) {
351 const StringPiece& rewrite) {
352 StringPiece vec[kVecSize];
371 const StringPiece& rewrite) {
372 StringPiece vec[kVecSize];
409 bool RE2::Extract(const StringPiece &text,
411 const StringPiece &rewrite,
413 StringPiece vec[kVecSize];
425 string RE2::QuoteMeta(const StringPiece& unquoted) {
525 bool RE2::Match(const StringPiece& text,
529 StringPiece* submatch,
543 StringPiece subtext = text;
551 StringPiece match;
552 StringPiece* matchp = &match;
723 StringPiece subtext1;
773 submatch[0] = StringPiece(submatch[0].begin() - prefixlen,
783 bool RE2::DoMatch(const StringPiece& text,
801 StringPiece* vec;
802 StringPiece stkvec[kVecSize];
803 StringPiece* heapvec = NULL;
808 vec = new StringPiece[nvec];
836 const StringPiece& s = vec[i+1];
852 bool RE2::Rewrite(string *out, const StringPiece &rewrite,
853 const StringPiece *vec, int veclen) const {
869 StringPiece snip = vec[n];
900 bool RE2::CheckRewriteString(const StringPiece& rewrite, string* error) const {
951 reinterpret_cast<StringPiece*>(dest)->set(str, n);