Display the Unicode Character Database version in the generated file.

This commit is contained in:
Reece H. Dunn
2012-12-22 00:08:38 +00:00
parent 7f4f3ee7d1
commit a416b4090c
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -27,6 +27,8 @@
using namespace ucd;
// Unicode Character Data 6.2
static const ucd::category categories_000000[256] =
{
/* 00 */ Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc, Cc,
+4 -1
View File
@@ -22,6 +22,7 @@ import sys
import ucd
ucd_rootdir = sys.argv[1]
ucd_version = ucd_rootdir.split('-')[-1]
unicode_chars = {}
for data in ucd.parse_ucd_data(ucd_rootdir, 'UnicodeData'):
@@ -104,7 +105,9 @@ if __name__ == '__main__':
#include <stddef.h>
using namespace ucd;
""")
// Unicode Character Data %s
""" % ucd_version)
for codepoints, category, comment in category_sets:
if not category: