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__': |