[前][次][番号順一覧][スレッド一覧]

ruby-changes:43039

From: duerst <ko1@a...>
Date: Sun, 22 May 2016 14:57:52 +0900 (JST)
Subject: [ruby-changes:43039] duerst:r55113 (trunk): * include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a

duerst	2016-05-22 14:57:44 +0900 (Sun, 22 May 2016)

  New Revision: 55113

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55113

  Log:
    * include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a
      new encoding primitive 'case_map' for case mapping
    * enc/utf-8.c, utf_16be/le.c, utf_32be/le.c:
      add onigenc_unicode_case_map as case_map primitive
    * enc/ascii.c, big5.c, cp949.c, emacs_mule.c, euc_jp/kr/tw.c, gb18030.c,
      gbk.c, iso_8859_1/2/3/4/5/6/7/8/9/10/11/13/14/15/16.c, koi8_r/u.c,
      shift_jis.c, us_ascii.c, windows_1250/1251/1252.c:
      add onigenc_not_support_case_map as case_map primitive

  Modified files:
    trunk/ChangeLog
    trunk/enc/ascii.c
    trunk/enc/big5.c
    trunk/enc/cp949.c
    trunk/enc/emacs_mule.c
    trunk/enc/euc_jp.c
    trunk/enc/euc_kr.c
    trunk/enc/euc_tw.c
    trunk/enc/gb18030.c
    trunk/enc/gbk.c
    trunk/enc/iso_8859_1.c
    trunk/enc/iso_8859_10.c
    trunk/enc/iso_8859_11.c
    trunk/enc/iso_8859_13.c
    trunk/enc/iso_8859_14.c
    trunk/enc/iso_8859_15.c
    trunk/enc/iso_8859_16.c
    trunk/enc/iso_8859_2.c
    trunk/enc/iso_8859_3.c
    trunk/enc/iso_8859_4.c
    trunk/enc/iso_8859_5.c
    trunk/enc/iso_8859_6.c
    trunk/enc/iso_8859_7.c
    trunk/enc/iso_8859_8.c
    trunk/enc/iso_8859_9.c
    trunk/enc/koi8_r.c
    trunk/enc/koi8_u.c
    trunk/enc/shift_jis.c
    trunk/enc/us_ascii.c
    trunk/enc/utf_16be.c
    trunk/enc/utf_16le.c
    trunk/enc/utf_32be.c
    trunk/enc/utf_32le.c
    trunk/enc/utf_8.c
    trunk/enc/windows_1250.c
    trunk/enc/windows_1251.c
    trunk/enc/windows_1252.c
    trunk/enc/windows_31j.c
    trunk/include/ruby/oniguruma.h
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55112)
+++ ChangeLog	(revision 55113)
@@ -1,3 +1,16 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun May 22 14:57:43 2016  Martin Duerst  <duerst@i...>
+
+        * include/ruby/oniguruma.h: Extend OnigEncodingTypeDefine to define a
+	  new encoding primitive 'case_map' for case mapping
+
+	* enc/utf-8.c, utf_16be/le.c, utf_32be/le.c:
+	  add onigenc_unicode_case_map as case_map primitive
+
+	* enc/ascii.c, big5.c, cp949.c, emacs_mule.c, euc_jp/kr/tw.c, gb18030.c,
+	  gbk.c, iso_8859_1/2/3/4/5/6/7/8/9/10/11/13/14/15/16.c, koi8_r/u.c,
+	  shift_jis.c, us_ascii.c, windows_1250/1251/1252.c:
+	  add onigenc_not_support_case_map as case_map primitive
+
 Sun May 22 14:45:45 2016  Martin Duerst  <duerst@i...>
 
         * regenc.h/c: Define new function onigenc_not_support_case_map
Index: include/ruby/oniguruma.h
===================================================================
--- include/ruby/oniguruma.h	(revision 55112)
+++ include/ruby/oniguruma.h	(revision 55113)
@@ -216,6 +216,9 @@ typedef struct OnigEncodingTypeST { https://github.com/ruby/ruby/blob/trunk/include/ruby/oniguruma.h#L216
   int    (*is_allowed_reverse_match)(const OnigUChar* p, const OnigUChar* end, const struct OnigEncodingTypeST* enc);
   int ruby_encoding_index;
   unsigned int  flags;
+#ifdef ONIG_CASE_MAPPING
+  int    (*case_map)(OnigCaseFoldType* flagP, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, const struct OnigEncodingTypeST* enc);
+#endif   /* ONIG_CASE_MAPPING */
 } OnigEncodingType;
 
 typedef const OnigEncodingType* OnigEncoding;
Index: enc/windows_31j.c
===================================================================
--- enc/windows_31j.c	(revision 55112)
+++ enc/windows_31j.c	(revision 55113)
@@ -50,6 +50,9 @@ OnigEncodingDefine(windows_31j, Windows_ https://github.com/ruby/ruby/blob/trunk/enc/windows_31j.c#L50
   is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: Windows-31J
Index: enc/iso_8859_1.c
===================================================================
--- enc/iso_8859_1.c	(revision 55112)
+++ enc/iso_8859_1.c	(revision 55113)
@@ -273,5 +273,8 @@ OnigEncodingDefine(iso_8859_1, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_1.c#L273
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-1", "ISO-8859-1")
Index: enc/iso_8859_2.c
===================================================================
--- enc/iso_8859_2.c	(revision 55112)
+++ enc/iso_8859_2.c	(revision 55113)
@@ -238,5 +238,8 @@ OnigEncodingDefine(iso_8859_2, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_2.c#L238
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-2", "ISO-8859-2")
Index: enc/euc_kr.c
===================================================================
--- enc/euc_kr.c	(revision 55112)
+++ enc/euc_kr.c	(revision 55113)
@@ -190,5 +190,8 @@ OnigEncodingDefine(euc_kr, EUC_KR) = { https://github.com/ruby/ruby/blob/trunk/enc/euc_kr.c#L190
   euckr_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("eucKR", "EUC-KR")
Index: enc/cp949.c
===================================================================
--- enc/cp949.c	(revision 55112)
+++ enc/cp949.c	(revision 55113)
@@ -213,6 +213,9 @@ OnigEncodingDefine(cp949, CP949) = { https://github.com/ruby/ruby/blob/trunk/enc/cp949.c#L213
   cp949_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: CP949
Index: enc/iso_8859_3.c
===================================================================
--- enc/iso_8859_3.c	(revision 55112)
+++ enc/iso_8859_3.c	(revision 55113)
@@ -238,5 +238,8 @@ OnigEncodingDefine(iso_8859_3, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_3.c#L238
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-3", "ISO-8859-3")
Index: enc/utf_32be.c
===================================================================
--- enc/utf_32be.c	(revision 55112)
+++ enc/utf_32be.c	(revision 55113)
@@ -188,6 +188,9 @@ OnigEncodingDefine(utf_32be, UTF_32BE) = https://github.com/ruby/ruby/blob/trunk/enc/utf_32be.c#L188
   onigenc_always_false_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_UNICODE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_unicode_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("UCS-4BE", "UTF-32BE")
 
Index: enc/iso_8859_4.c
===================================================================
--- enc/iso_8859_4.c	(revision 55112)
+++ enc/iso_8859_4.c	(revision 55113)
@@ -241,5 +241,8 @@ OnigEncodingDefine(iso_8859_4, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_4.c#L241
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-4", "ISO-8859-4")
Index: enc/emacs_mule.c
===================================================================
--- enc/emacs_mule.c	(revision 55112)
+++ enc/emacs_mule.c	(revision 55113)
@@ -336,6 +336,9 @@ OnigEncodingDefine(emacs_mule, Emacs_Mul https://github.com/ruby/ruby/blob/trunk/enc/emacs_mule.c#L336
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 
 ENC_REPLICATE("stateless-ISO-2022-JP", "Emacs-Mule")
Index: enc/iso_8859_5.c
===================================================================
--- enc/iso_8859_5.c	(revision 55112)
+++ enc/iso_8859_5.c	(revision 55113)
@@ -228,5 +228,8 @@ OnigEncodingDefine(iso_8859_5, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_5.c#L228
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-5", "ISO-8859-5")
Index: enc/utf_16be.c
===================================================================
--- enc/utf_16be.c	(revision 55112)
+++ enc/utf_16be.c	(revision 55113)
@@ -250,5 +250,8 @@ OnigEncodingDefine(utf_16be, UTF_16BE) = https://github.com/ruby/ruby/blob/trunk/enc/utf_16be.c#L250
   onigenc_always_false_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_UNICODE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_unicode_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("UCS-2BE", "UTF-16BE")
Index: enc/iso_8859_6.c
===================================================================
--- enc/iso_8859_6.c	(revision 55112)
+++ enc/iso_8859_6.c	(revision 55113)
@@ -95,6 +95,9 @@ OnigEncodingDefine(iso_8859_6, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_6.c#L95
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-6", "ISO-8859-6")
 
Index: enc/iso_8859_7.c
===================================================================
--- enc/iso_8859_7.c	(revision 55112)
+++ enc/iso_8859_7.c	(revision 55113)
@@ -225,6 +225,9 @@ OnigEncodingDefine(iso_8859_7, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_7.c#L225
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-7", "ISO-8859-7")
 
Index: enc/iso_8859_8.c
===================================================================
--- enc/iso_8859_8.c	(revision 55112)
+++ enc/iso_8859_8.c	(revision 55113)
@@ -95,6 +95,9 @@ OnigEncodingDefine(iso_8859_8, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_8.c#L95
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-8", "ISO-8859-8")
 
Index: enc/iso_8859_9.c
===================================================================
--- enc/iso_8859_9.c	(revision 55112)
+++ enc/iso_8859_9.c	(revision 55113)
@@ -231,6 +231,9 @@ OnigEncodingDefine(iso_8859_9, ISO_8859_ https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_9.c#L231
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-9", "ISO-8859-9")
 
Index: enc/shift_jis.c
===================================================================
--- enc/shift_jis.c	(revision 55112)
+++ enc/shift_jis.c	(revision 55113)
@@ -565,6 +565,9 @@ OnigEncodingDefine(shift_jis, Shift_JIS) https://github.com/ruby/ruby/blob/trunk/enc/shift_jis.c#L565
   is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: Shift_JIS
Index: enc/utf_32le.c
===================================================================
--- enc/utf_32le.c	(revision 55112)
+++ enc/utf_32le.c	(revision 55113)
@@ -188,5 +188,8 @@ OnigEncodingDefine(utf_32le, UTF_32LE) = https://github.com/ruby/ruby/blob/trunk/enc/utf_32le.c#L188
   onigenc_always_false_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_UNICODE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_unicode_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("UCS-4LE", "UTF-32LE")
Index: enc/utf_16le.c
===================================================================
--- enc/utf_16le.c	(revision 55112)
+++ enc/utf_16le.c	(revision 55113)
@@ -243,4 +243,7 @@ OnigEncodingDefine(utf_16le, UTF_16LE) = https://github.com/ruby/ruby/blob/trunk/enc/utf_16le.c#L243
   onigenc_always_false_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_UNICODE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_unicode_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
Index: enc/utf_8.c
===================================================================
--- enc/utf_8.c	(revision 55112)
+++ enc/utf_8.c	(revision 55113)
@@ -430,6 +430,9 @@ OnigEncodingDefine(utf_8, UTF_8) = { https://github.com/ruby/ruby/blob/trunk/enc/utf_8.c#L430
   onigenc_always_true_is_allowed_reverse_match,
   ENCINDEX_UTF_8,
   ONIGENC_FLAG_UNICODE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_unicode_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("CP65001", "UTF-8")
 
Index: enc/iso_8859_10.c
===================================================================
--- enc/iso_8859_10.c	(revision 55112)
+++ enc/iso_8859_10.c	(revision 55113)
@@ -242,5 +242,8 @@ OnigEncodingDefine(iso_8859_10, ISO_8859 https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_10.c#L242
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-10", "ISO-8859-10")
Index: enc/iso_8859_11.c
===================================================================
--- enc/iso_8859_11.c	(revision 55112)
+++ enc/iso_8859_11.c	(revision 55113)
@@ -95,6 +95,9 @@ OnigEncodingDefine(iso_8859_11, ISO_8859 https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_11.c#L95
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-11", "ISO-8859-11")
 
Index: enc/ascii.c
===================================================================
--- enc/ascii.c	(revision 55112)
+++ enc/ascii.c	(revision 55113)
@@ -53,6 +53,9 @@ OnigEncodingDefine(ascii, ASCII) = { https://github.com/ruby/ruby/blob/trunk/enc/ascii.c#L53
   onigenc_always_true_is_allowed_reverse_match,
   ENCINDEX_ASCII,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("BINARY", "ASCII-8BIT")
 ENC_REPLICATE("IBM437", "ASCII-8BIT")
Index: enc/iso_8859_13.c
===================================================================
--- enc/iso_8859_13.c	(revision 55112)
+++ enc/iso_8859_13.c	(revision 55113)
@@ -235,6 +235,9 @@ OnigEncodingDefine(iso_8859_13, ISO_8859 https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_13.c#L235
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-13", "ISO-8859-13")
 
Index: enc/koi8_r.c
===================================================================
--- enc/koi8_r.c	(revision 55112)
+++ enc/koi8_r.c	(revision 55113)
@@ -216,6 +216,9 @@ OnigEncodingDefine(koi8_r, KOI8_R) = { https://github.com/ruby/ruby/blob/trunk/enc/koi8_r.c#L216
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("CP878", "KOI8-R")
 
Index: enc/iso_8859_14.c
===================================================================
--- enc/iso_8859_14.c	(revision 55112)
+++ enc/iso_8859_14.c	(revision 55113)
@@ -244,5 +244,8 @@ OnigEncodingDefine(iso_8859_14, ISO_8859 https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_14.c#L244
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-14", "ISO-8859-14")
Index: enc/iso_8859_15.c
===================================================================
--- enc/iso_8859_15.c	(revision 55112)
+++ enc/iso_8859_15.c	(revision 55113)
@@ -238,5 +238,8 @@ OnigEncodingDefine(iso_8859_15, ISO_8859 https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_15.c#L238
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-15", "ISO-8859-15")
Index: enc/iso_8859_16.c
===================================================================
--- enc/iso_8859_16.c	(revision 55112)
+++ enc/iso_8859_16.c	(revision 55113)
@@ -240,5 +240,8 @@ OnigEncodingDefine(iso_8859_16, ISO_8859 https://github.com/ruby/ruby/blob/trunk/enc/iso_8859_16.c#L240
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ISO8859-16", "ISO-8859-16")
Index: enc/koi8_u.c
===================================================================
--- enc/koi8_u.c	(revision 55112)
+++ enc/koi8_u.c	(revision 55113)
@@ -220,4 +220,7 @@ OnigEncodingDefine(koi8_u, KOI8_U) = { https://github.com/ruby/ruby/blob/trunk/enc/koi8_u.c#L220
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
Index: enc/euc_jp.c
===================================================================
--- enc/euc_jp.c	(revision 55112)
+++ enc/euc_jp.c	(revision 55113)
@@ -578,6 +578,9 @@ OnigEncodingDefine(euc_jp, EUC_JP) = { https://github.com/ruby/ruby/blob/trunk/enc/euc_jp.c#L578
   is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: EUC-JP
Index: enc/gb18030.c
===================================================================
--- enc/gb18030.c	(revision 55112)
+++ enc/gb18030.c	(revision 55113)
@@ -599,5 +599,8 @@ OnigEncodingDefine(gb18030, GB18030) = { https://github.com/ruby/ruby/blob/trunk/enc/gb18030.c#L599
   gb18030_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 
Index: enc/big5.c
===================================================================
--- enc/big5.c	(revision 55112)
+++ enc/big5.c	(revision 55113)
@@ -302,6 +302,9 @@ OnigEncodingDefine(big5, BIG5) = { https://github.com/ruby/ruby/blob/trunk/enc/big5.c#L302
   big5_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 
 /*
@@ -336,6 +339,9 @@ OnigEncodingDefine(big5_hkscs, BIG5_HKSC https://github.com/ruby/ruby/blob/trunk/enc/big5.c#L339
   big5_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("Big5-HKSCS:2008", "Big5-HKSCS")
 
@@ -370,4 +376,7 @@ OnigEncodingDefine(big5_uao, BIG5_UAO) = https://github.com/ruby/ruby/blob/trunk/enc/big5.c#L376
   big5_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
Index: enc/euc_tw.c
===================================================================
--- enc/euc_tw.c	(revision 55112)
+++ enc/euc_tw.c	(revision 55113)
@@ -223,5 +223,8 @@ OnigEncodingDefine(euc_tw, EUC_TW) = { https://github.com/ruby/ruby/blob/trunk/enc/euc_tw.c#L223
   euctw_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("eucTW", "EUC-TW")
Index: enc/us_ascii.c
===================================================================
--- enc/us_ascii.c	(revision 55112)
+++ enc/us_ascii.c	(revision 55113)
@@ -31,6 +31,9 @@ OnigEncodingDefine(us_ascii, US_ASCII) = https://github.com/ruby/ruby/blob/trunk/enc/us_ascii.c#L31
   onigenc_always_true_is_allowed_reverse_match,
   ENCINDEX_US_ASCII,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 ENC_ALIAS("ASCII", "US-ASCII")
 ENC_ALIAS("ANSI_X3.4-1968", "US-ASCII")
Index: enc/windows_1250.c
===================================================================
--- enc/windows_1250.c	(revision 55112)
+++ enc/windows_1250.c	(revision 55113)
@@ -208,6 +208,9 @@ OnigEncodingDefine(windows_1250, Windows https://github.com/ruby/ruby/blob/trunk/enc/windows_1250.c#L208
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: windows-1250
Index: enc/windows_1251.c
===================================================================
--- enc/windows_1251.c	(revision 55112)
+++ enc/windows_1251.c	(revision 55113)
@@ -199,6 +199,9 @@ OnigEncodingDefine(windows_1251, Windows https://github.com/ruby/ruby/blob/trunk/enc/windows_1251.c#L199
   onigenc_always_true_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: windows-1251
Index: enc/gbk.c
===================================================================
--- enc/gbk.c	(revision 55112)
+++ enc/gbk.c	(revision 55113)
@@ -213,6 +213,9 @@ OnigEncodingDefine(gbk, GBK) = { https://github.com/ruby/ruby/blob/trunk/enc/gbk.c#L213
   gbk_is_allowed_reverse_match,
   0,
   ONIGENC_FLAG_NONE,
+#ifdef ONIG_CASE_MAPPING
+  onigenc_not_support_case_map,
+#endif   /* ONIG_CASE_MAPPING */
 };
 /*
  * Name: GBK
Index: enc/windows_1252.c
===================================================================
--- enc/windows_1252. (... truncated)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]