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:
parent
753ce99eac
commit
893bb61bcb
@ -155,6 +155,12 @@ class CaseFolding
|
|||||||
dest.print("/* DO NOT EDIT THIS FILE. */\n")
|
dest.print("/* DO NOT EDIT THIS FILE. */\n")
|
||||||
dest.print("/* Generated by enc/unicode/case-folding.rb */\n\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
|
# print folding data
|
||||||
|
|
||||||
# CaseFold + CaseFold_Locale
|
# CaseFold + CaseFold_Locale
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
/* DO NOT EDIT THIS FILE. */
|
/* DO NOT EDIT THIS FILE. */
|
||||||
/* Generated by enc/unicode/case-folding.rb */
|
/* 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[] = {
|
static const CaseFold_11_Type CaseFold_11_Table[] = {
|
||||||
#define CaseFold (*(CaseFold_11_Type (*)[1319])(CaseFold_11_Table+0))
|
#define CaseFold (*(CaseFold_11_Type (*)[1319])(CaseFold_11_Table+0))
|
||||||
{0x0041, {1|F|D, {0x0061}}},
|
{0x0041, {1|F|D, {0x0061}}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user