diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-22 05:57:44 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-22 05:57:44 +0000 |
commit | 78c5ca70744e85f8468147ddc362962bcd987d30 () | |
tree | cce4bc22fc3939b367aef46a45a485ac2ff3f5a3 /enc | |
parent | 14b524b6b01bde70f207a049bd78899eb88823b8 (diff) |
* 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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | enc/ascii.c | 3 | ||||
-rw-r--r-- | enc/big5.c | 9 | ||||
-rw-r--r-- | enc/cp949.c | 3 | ||||
-rw-r--r-- | enc/emacs_mule.c | 3 | ||||
-rw-r--r-- | enc/euc_jp.c | 3 | ||||
-rw-r--r-- | enc/euc_kr.c | 3 | ||||
-rw-r--r-- | enc/euc_tw.c | 3 | ||||
-rw-r--r-- | enc/gb18030.c | 3 | ||||
-rw-r--r-- | enc/gbk.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_1.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_10.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_11.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_13.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_14.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_15.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_16.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_2.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_3.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_4.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_5.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_6.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_7.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_8.c | 3 | ||||
-rw-r--r-- | enc/iso_8859_9.c | 3 | ||||
-rw-r--r-- | enc/koi8_r.c | 3 | ||||
-rw-r--r-- | enc/koi8_u.c | 3 | ||||
-rw-r--r-- | enc/shift_jis.c | 3 | ||||
-rw-r--r-- | enc/us_ascii.c | 3 | ||||
-rw-r--r-- | enc/utf_16be.c | 3 | ||||
-rw-r--r-- | enc/utf_16le.c | 3 | ||||
-rw-r--r-- | enc/utf_32be.c | 3 | ||||
-rw-r--r-- | enc/utf_32le.c | 3 | ||||
-rw-r--r-- | enc/utf_8.c | 3 | ||||
-rw-r--r-- | enc/windows_1250.c | 3 | ||||
-rw-r--r-- | enc/windows_1251.c | 3 | ||||
-rw-r--r-- | enc/windows_1252.c | 3 | ||||
-rw-r--r-- | enc/windows_31j.c | 3 |
37 files changed, 117 insertions, 0 deletions
@@ -53,6 +53,9 @@ OnigEncodingDefine(ascii, ASCII) = { onigenc_always_true_is_allowed_reverse_match, ENCINDEX_ASCII, ONIGENC_FLAG_NONE, }; ENC_ALIAS("BINARY", "ASCII-8BIT") ENC_REPLICATE("IBM437", "ASCII-8BIT") @@ -302,6 +302,9 @@ OnigEncodingDefine(big5, BIG5) = { big5_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* @@ -336,6 +339,9 @@ OnigEncodingDefine(big5_hkscs, BIG5_HKSCS) = { big5_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("Big5-HKSCS:2008", "Big5-HKSCS") @@ -370,4 +376,7 @@ OnigEncodingDefine(big5_uao, BIG5_UAO) = { big5_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; @@ -213,6 +213,9 @@ OnigEncodingDefine(cp949, CP949) = { cp949_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: CP949 @@ -336,6 +336,9 @@ OnigEncodingDefine(emacs_mule, Emacs_Mule) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_REPLICATE("stateless-ISO-2022-JP", "Emacs-Mule") @@ -578,6 +578,9 @@ OnigEncodingDefine(euc_jp, EUC_JP) = { is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: EUC-JP @@ -190,5 +190,8 @@ OnigEncodingDefine(euc_kr, EUC_KR) = { euckr_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("eucKR", "EUC-KR") @@ -223,5 +223,8 @@ OnigEncodingDefine(euc_tw, EUC_TW) = { euctw_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("eucTW", "EUC-TW") @@ -599,5 +599,8 @@ OnigEncodingDefine(gb18030, GB18030) = { gb18030_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; @@ -213,6 +213,9 @@ OnigEncodingDefine(gbk, GBK) = { gbk_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: GBK @@ -273,5 +273,8 @@ OnigEncodingDefine(iso_8859_1, ISO_8859_1) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-1", "ISO-8859-1") @@ -242,5 +242,8 @@ OnigEncodingDefine(iso_8859_10, ISO_8859_10) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-10", "ISO-8859-10") @@ -95,6 +95,9 @@ OnigEncodingDefine(iso_8859_11, ISO_8859_11) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-11", "ISO-8859-11") @@ -235,6 +235,9 @@ OnigEncodingDefine(iso_8859_13, ISO_8859_13) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-13", "ISO-8859-13") @@ -244,5 +244,8 @@ OnigEncodingDefine(iso_8859_14, ISO_8859_14) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-14", "ISO-8859-14") @@ -238,5 +238,8 @@ OnigEncodingDefine(iso_8859_15, ISO_8859_15) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-15", "ISO-8859-15") @@ -240,5 +240,8 @@ OnigEncodingDefine(iso_8859_16, ISO_8859_16) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-16", "ISO-8859-16") @@ -238,5 +238,8 @@ OnigEncodingDefine(iso_8859_2, ISO_8859_2) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-2", "ISO-8859-2") @@ -238,5 +238,8 @@ OnigEncodingDefine(iso_8859_3, ISO_8859_3) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-3", "ISO-8859-3") @@ -241,5 +241,8 @@ OnigEncodingDefine(iso_8859_4, ISO_8859_4) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-4", "ISO-8859-4") @@ -228,5 +228,8 @@ OnigEncodingDefine(iso_8859_5, ISO_8859_5) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-5", "ISO-8859-5") @@ -95,6 +95,9 @@ OnigEncodingDefine(iso_8859_6, ISO_8859_6) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-6", "ISO-8859-6") @@ -225,6 +225,9 @@ OnigEncodingDefine(iso_8859_7, ISO_8859_7) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-7", "ISO-8859-7") @@ -95,6 +95,9 @@ OnigEncodingDefine(iso_8859_8, ISO_8859_8) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-8", "ISO-8859-8") @@ -231,6 +231,9 @@ OnigEncodingDefine(iso_8859_9, ISO_8859_9) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ISO8859-9", "ISO-8859-9") @@ -216,6 +216,9 @@ OnigEncodingDefine(koi8_r, KOI8_R) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; ENC_ALIAS("CP878", "KOI8-R") @@ -220,4 +220,7 @@ OnigEncodingDefine(koi8_u, KOI8_U) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; @@ -565,6 +565,9 @@ OnigEncodingDefine(shift_jis, Shift_JIS) = { is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: Shift_JIS @@ -31,6 +31,9 @@ OnigEncodingDefine(us_ascii, US_ASCII) = { onigenc_always_true_is_allowed_reverse_match, ENCINDEX_US_ASCII, ONIGENC_FLAG_NONE, }; ENC_ALIAS("ASCII", "US-ASCII") ENC_ALIAS("ANSI_X3.4-1968", "US-ASCII") @@ -250,5 +250,8 @@ OnigEncodingDefine(utf_16be, UTF_16BE) = { onigenc_always_false_is_allowed_reverse_match, 0, ONIGENC_FLAG_UNICODE, }; ENC_ALIAS("UCS-2BE", "UTF-16BE") @@ -243,4 +243,7 @@ OnigEncodingDefine(utf_16le, UTF_16LE) = { onigenc_always_false_is_allowed_reverse_match, 0, ONIGENC_FLAG_UNICODE, }; @@ -188,6 +188,9 @@ OnigEncodingDefine(utf_32be, UTF_32BE) = { onigenc_always_false_is_allowed_reverse_match, 0, ONIGENC_FLAG_UNICODE, }; ENC_ALIAS("UCS-4BE", "UTF-32BE") @@ -188,5 +188,8 @@ OnigEncodingDefine(utf_32le, UTF_32LE) = { onigenc_always_false_is_allowed_reverse_match, 0, ONIGENC_FLAG_UNICODE, }; ENC_ALIAS("UCS-4LE", "UTF-32LE") @@ -430,6 +430,9 @@ OnigEncodingDefine(utf_8, UTF_8) = { onigenc_always_true_is_allowed_reverse_match, ENCINDEX_UTF_8, ONIGENC_FLAG_UNICODE, }; ENC_ALIAS("CP65001", "UTF-8") @@ -208,6 +208,9 @@ OnigEncodingDefine(windows_1250, Windows_1250) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: windows-1250 @@ -199,6 +199,9 @@ OnigEncodingDefine(windows_1251, Windows_1251) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: windows-1251 @@ -200,6 +200,9 @@ OnigEncodingDefine(windows_1252, Windows_1252) = { onigenc_always_true_is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: windows-1252 @@ -50,6 +50,9 @@ OnigEncodingDefine(windows_31j, Windows_31J) = { is_allowed_reverse_match, 0, ONIGENC_FLAG_NONE, }; /* * Name: Windows-31J |