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

Unified Diff: third_party/re2/re2/make_unicode_casefold.py

Issue 1530113002: Revert of Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/re2/make_perl_groups.pl ('k') | third_party/re2/re2/make_unicode_groups.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/re2/make_unicode_casefold.py
diff --git a/third_party/re2/re2/make_unicode_casefold.py b/third_party/re2/re2/make_unicode_casefold.py
index d215eb195e4b5e2ead9236188061fcb339463e95..3375d2ef1bf90b2b554a50a07594110555f6341b 100755
--- a/third_party/re2/re2/make_unicode_casefold.py
+++ b/third_party/re2/re2/make_unicode_casefold.py
@@ -9,8 +9,7 @@
"""Generate C++ table for Unicode case folding."""
-import sys
-import unicode
+import unicode, sys
_header = """
// GENERATED BY make_unicode_casefold.py; DO NOT EDIT.
@@ -131,11 +130,11 @@
foldpairs.sort()
foldranges = _MakeRanges(foldpairs)
print "// %d groups, %d pairs, %d ranges" % (len(casegroups), len(foldpairs), len(foldranges))
- print "const CaseFold unicode_%s[] = {" % (name,)
+ print "CaseFold unicode_%s[] = {" % (name,)
for lo, hi, delta in foldranges:
print "\t{ %d, %d, %s }," % (lo, hi, delta)
print "};"
- print "const int num_unicode_%s = %d;" % (name, len(foldranges),)
+ print "int num_unicode_%s = %d;" % (name, len(foldranges),)
print ""
print _header
« no previous file with comments | « third_party/re2/re2/make_perl_groups.pl ('k') | third_party/re2/re2/make_unicode_groups.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698