Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: third_party/re2/patches/rename-posix-option.patch

Issue 10875047: Migrate WebRequestRedirectByRegExAction to use RE2 and roll RE2 to revision 97:401ab4168e8e (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/re2/patches/remove-valgrind-code.patch ('k') | third_party/re2/re2/compile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/patches/rename-posix-option.patch
diff --git a/third_party/re2/patches/rename-posix-option.patch b/third_party/re2/patches/rename-posix-option.patch
new file mode 100644
index 0000000000000000000000000000000000000000..5c8a8e79d4aa1b6fbea5f7bfd26124aa1e74ee5b
--- /dev/null
+++ b/third_party/re2/patches/rename-posix-option.patch
@@ -0,0 +1,28 @@
+diff --git a/third_party/re2/re2/re2.cc b/third_party/re2/re2/re2.cc
+index 6acd802..3cc3dd4 100644
+--- a/third_party/re2/re2/re2.cc
++++ b/third_party/re2/re2/re2.cc
+@@ -38,8 +38,8 @@ const int RE2::Options::kDefaultMaxMem; // initialized in re2.h
+
+ RE2::Options::Options(RE2::CannedOptions opt)
+ : encoding_(opt == RE2::Latin1 ? EncodingLatin1 : EncodingUTF8),
+- posix_syntax_(opt == RE2::POSIX),
+- longest_match_(opt == RE2::POSIX),
++ posix_syntax_(opt == RE2::POSIX_SYNTAX),
++ longest_match_(opt == RE2::POSIX_SYNTAX),
+ log_errors_(opt != RE2::Quiet),
+ max_mem_(kDefaultMaxMem),
+ literal_(false),
+diff --git a/third_party/re2/re2/re2.h b/third_party/re2/re2/re2.h
+index 272028b..9f5b66d 100644
+--- a/third_party/re2/re2/re2.h
++++ b/third_party/re2/re2/re2.h
+@@ -251,7 +251,7 @@ class RE2 {
+ enum CannedOptions {
+ DefaultOptions = 0,
+ Latin1, // treat input as Latin-1 (default UTF-8)
+- POSIX, // POSIX syntax, leftmost-longest match
++ POSIX_SYNTAX, // POSIX syntax, leftmost-longest match
+ Quiet // do not log about regexp parse errors
+ };
+
« no previous file with comments | « third_party/re2/patches/remove-valgrind-code.patch ('k') | third_party/re2/re2/compile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698