diff options
-rwxr-xr-x | enc/unicode/case-folding.rb | 6 | ||||
-rw-r--r-- | enc/unicode/casefold.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb index f77c93b354..2b503ad65f 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 9023e71684..6daed5cc68 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}}}, |