1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-06-30 08:24:11 +00:00
parent 753ce99eac
commit 893bb61bcb
2 changed files with 11 additions and 0 deletions

View file

@ -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

View file

@ -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}}},