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

Unified Diff: third_party/re2/re2/make_unicode_groups.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_unicode_casefold.py ('k') | third_party/re2/re2/mimics_pcre.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/re2/make_unicode_groups.py
diff --git a/third_party/re2/re2/make_unicode_groups.py b/third_party/re2/re2/make_unicode_groups.py
index 8499793fa740cc6b749e42d7247219f4f2c5410a..c2e25c1fc75ca0626c5092043feb1cd8cde31c94 100755
--- a/third_party/re2/re2/make_unicode_groups.py
+++ b/third_party/re2/re2/make_unicode_groups.py
@@ -41,7 +41,7 @@
def PrintRanges(type, name, ranges):
"""Print the ranges as an array of type named name."""
- print "static const %s %s[] = {" % (type, name,)
+ print "static %s %s[] = {" % (type, name,)
for lo, hi in ranges:
print "\t{ %d, %d }," % (lo, hi)
print "};"
@@ -99,12 +99,12 @@
for name, codes in unicode.Scripts().iteritems():
ugroups.append(PrintGroup(name, codes))
print "// %d 16-bit ranges, %d 32-bit ranges" % (n16, n32)
- print "const UGroup unicode_groups[] = {";
+ print "UGroup unicode_groups[] = {";
ugroups.sort()
for ug in ugroups:
print "\t%s," % (ug,)
print "};"
- print "const int num_unicode_groups = %d;" % (len(ugroups),)
+ print "int num_unicode_groups = %d;" % (len(ugroups),)
print _trailer
if __name__ == '__main__':
« no previous file with comments | « third_party/re2/re2/make_unicode_casefold.py ('k') | third_party/re2/re2/mimics_pcre.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698