summaryrefslogtreecommitdiff
path: root/enc/unicode
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-30 08:24:11 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-06-30 08:24:11 (GMT)
commit893bb61bcb7357922b82037ab0ffe9dc7f73a90e (patch)
treecc067e8f2a56c4e22ec9df62940a69eff5623f51 /enc/unicode
parent753ce99eac7d7f653acb377f771bf53b276c78c3 (diff)
case-folding.rb: define version numbers
* enc/unicode/case-folding.rb: define Unicode version numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode')
-rwxr-xr-xenc/unicode/case-folding.rb6
-rw-r--r--enc/unicode/casefold.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index f77c93b..2b503ad 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -155,6 +155,12 @@ class CaseFolding
dest.print("/* DO NOT EDIT THIS FILE. */\n")
dest.print("/* Generated by enc/unicode/case-folding.rb */\n\n")
+ dest.print("#define ONIG_UNICODE_VERSION_STRING #{version.dump}\n")
+ %w[MAJOR MINOR TEENY].zip(version.scan(/\d+/)) do |n, v|
+ dest.print("#define ONIG_UNICODE_VERSION_#{n} #{v}\n")
+ end
+ dest.print("\n")
+
# print folding data
# CaseFold + CaseFold_Locale
diff --git a/enc/unicode/casefold.h b/enc/unicode/casefold.h
index 9023e71..6daed5c 100644
--- a/enc/unicode/casefold.h
+++ b/enc/unicode/casefold.h
@@ -1,6 +1,11 @@
/* DO NOT EDIT THIS FILE. */
/* Generated by enc/unicode/case-folding.rb */
+#define ONIG_UNICODE_VERSION_STRING "8.0.0"
+#define ONIG_UNICODE_VERSION_MAJOR 8
+#define ONIG_UNICODE_VERSION_MINOR 0
+#define ONIG_UNICODE_VERSION_TEENY 0
+
static const CaseFold_11_Type CaseFold_11_Table[] = {
#define CaseFold (*(CaseFold_11_Type (*)[1319])(CaseFold_11_Table+0))
{0x0041, {1|F|D, {0x0061}}},