Lines Matching refs:pattern
108 static string trunc(const StringPiece& pattern) {
109 if (pattern.size() < 100)
110 return pattern.as_string();
111 return pattern.substr(0, 100).as_string() + "...";
115 RE2::RE2(const char* pattern) {
116 Init(pattern, DefaultOptions);
119 RE2::RE2(const string& pattern) {
120 Init(pattern, DefaultOptions);
123 RE2::RE2(const StringPiece& pattern) {
124 Init(pattern, DefaultOptions);
127 RE2::RE2(const StringPiece& pattern, const Options& options) {
128 Init(pattern, options);
172 void RE2::Init(const StringPiece& pattern, const Options& options) {
174 pattern_ = pattern.as_string();
219 error_ = new string("pattern too large - compile failed");
240 error_ = new string("pattern too large - reverse compile failed");
834 // If we got here, we must have matched the whole pattern.
876 LOG(ERROR) << "invalid rewrite pattern: " << rewrite.data();