Skip to content

Commit d36cb3d

Browse files
committed
Merge branch 'PHP-7.3'
* PHP-7.3: Update to Oniguruma 6.9.0
2 parents a57ec0a + 3e863ff commit d36cb3d

32 files changed

+13225
-8760
lines changed

ext/mbstring/oniguruma/HISTORY

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
History
22

3+
2018/09/03: Version 6.9.0
4+
5+
2018/08/24: add Unicode Emoji properties
6+
2018/08/24: update Unicode version 11.0.0
7+
2018/08/21: support gperf 3.1 instead of 3.0.4
8+
2018/08/07: add ENABLE_POSIX_API switch into src/Makefile.windows
9+
2018/08/02: add make_win.bat and src/config.h.windows.in
10+
2018/06/25: add ENABLE_POSIX_API option into CMakeLists.txt
11+
2018/06/04: add .travis.yml (for TravisCI)
12+
313
2018/04/17: Version 6.8.2
414

515
2018/04/13: add doc/CALLOUTS.API.ja
@@ -2027,7 +2037,7 @@ History
20272037
2003/01/31: [impl] rename TTRANS() to TOLOWER().
20282038
2003/01/30: [bug] .c.o --> .c.obj in win32\Makefile.
20292039
2003/01/30: [impl] add -DNOT_RUBY to Makefile.in.
2030-
NOT_RUBY is refered in regint.h for escape double
2040+
NOT_RUBY is referred in regint.h for escape double
20312041
including config.h.
20322042
2003/01/30: [impl] when string hasn't case ambiguity, don't compile
20332043
to ignore case opcode.

ext/mbstring/oniguruma/README.md

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1+
[![Build Status](https://travis-ci.org/kkos/oniguruma.svg?branch=master)](https://travis-ci.org/kkos/oniguruma)
2+
13
Oniguruma
24
=========
35

46
https://github.com/kkos/oniguruma
57

68
Oniguruma is a modern and flexible regular expressions library. It
79
encompasses features from different regular expression implementations
8-
that traditionally exist in different languages. It comes close to
9-
being a complete superset of all regular expression features found
10-
in other regular expression implementations.
11-
12-
Its features include:
13-
* Character encoding can be specified per regular expression object.
14-
* Several regular expression types are supported:
15-
* Oniguruma (native)
16-
* POSIX
17-
* Grep
18-
* GNU Regex
19-
* Perl
20-
* Java
21-
* Ruby
22-
* Emacs
10+
that traditionally exist in different languages.
11+
12+
Character encoding can be specified per regular expression object.
2313

2414
Supported character encodings:
2515

@@ -34,6 +24,13 @@ Supported character encodings:
3424
* CP1251: contributed by Byte
3525

3626

27+
New feature of version 6.9.0
28+
--------------------------
29+
30+
* Update Unicode version 11.0.0
31+
* NEW: add Emoji properties
32+
33+
3734
New feature of version 6.8.2
3835
--------------------------
3936

@@ -59,8 +56,6 @@ New feature of version 6.8.0
5956
* NEW: Builtin callouts (*FAIL) (*MISMATCH) (*ERROR{n}) (*COUNT) (*MAX{n}) etc..
6057
* Examples of Callouts program: [callout.c](sample/callout.c), [count.c](sample/count.c), [echo.c](sample/echo.c)
6158

62-
(* Callout function API is experimental level and isn't fixed definitely yet. Undocumented now)
63-
6459

6560
New feature of version 6.7.1
6661
--------------------------
@@ -170,7 +165,7 @@ Install
170165

171166
### Case 2: Windows 64/32bit platform (Visual Studio)
172167

173-
execute make_win64 or make_win32
168+
Execute make_win.bat
174169

175170
onig_s.lib: static link library
176171
onig.dll: dynamic link library
@@ -299,5 +294,4 @@ Source Files
299294
|utf32_le.c |UTF-32LE encoding |
300295
|unicode.c |common codes of Unicode encoding |
301296
|unicode_fold_data.c|Unicode folding data |
302-
|win32/Makefile |Makefile for Win32 (VC++) |
303-
|win32/config.h |config.h for Win32 |
297+
|windows/testc.c |Test program for Windowns (VC++) |
Lines changed: 112 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
README.ja 2017/08/25
22

3-
���� ---- (C) K.Kosako <kkosako0@gmail.com>
3+
鬼車 ---- (C) K.Kosako <kkosako0@gmail.com>
44

55
https://github.com/kkos/oniguruma
66

7-
���֤�����ɽ���饤�֥��Ǥ��롣
8-
���Υ饤�֥�����Ĺ�ϡ����줾�������ɽ�����֥������Ȥ��Ȥ�
9-
ʸ�����󥳡��ǥ��󥰤����Ǥ��뤳�ȤǤ��롣
7+
鬼車は正規表現ライブラリである。
8+
このライブラリの特長は、それぞれの正規表現オブジェクトごとに
9+
文字エンコーディングを指定できることである。
1010

11-
���ݡ��Ȥ��Ƥ���ʸ�����󥳡��ǥ���:
11+
サポートしている文字エンコーディング:
1212

1313
ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
1414
EUC-JP, EUC-TW, EUC-KR, EUC-CN,
@@ -17,30 +17,30 @@ https://github.com/kkos/oniguruma
1717
ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
1818
ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
1919

20-
* GB18030: ���ݷ��λ���
21-
* CP1251: Byte����
20+
* GB18030: 久保健洋氏提供
21+
* CP1251: Byte氏提供
2222
------------------------------------------------------------
2323

24-
�饤����
24+
ライセンス
2525

26-
BSD�饤����
26+
BSDライセンス
2727

2828

29-
���󥹥ȡ���
29+
インストール
3030

31-
��������: Unix��Cygwin��
31+
ケース1: UnixとCygwin環境
3232

33-
1. autoreconf -vfi (* configure������ץȤ��ʤ��Ȥ�����)
33+
1. autoreconf -vfi (* configureスクリプトがないときだけ)
3434

3535
2. ./configure
3636
3. make
3737
4. make install
3838

39-
���󥤥󥹥ȡ���
39+
アンインストール
4040

4141
make uninstall
4242

43-
������ǧ
43+
構成確認
4444

4545
onig-config --cflags
4646
onig-config --libs
@@ -49,110 +49,110 @@ https://github.com/kkos/oniguruma
4949

5050

5151

52-
��������: Windows 64/32bit (Visual Studio)��
52+
ケース2: Windows 64/32bit (Visual Studio)環境
5353

54-
make_win64 ���뤤�� make_win32 ��¹�
54+
make_win64 あるいは make_win32 を実行
5555

5656
onig_s.lib: static link library
5757
onig.dll: dynamic link library
5858

59-
* ư��ƥ��� (ASCII/Shift_JIS)
59+
* 動作テスト (ASCII/Shift_JIS)
6060
1. cd src
6161
2. copy ..\windows\testc.c .
6262
3. nmake -f Makefile.windows ctest
6363

64-
(Visual Studio Community 2015 ��ư���ǧ)
64+
(Visual Studio Community 2015 で動作確認)
6565

6666

6767

68-
����ɽ��
68+
正規表現
6969

70-
doc/RE.ja�򻲾�
70+
doc/RE.jaを参照
7171

7272

73-
������ˡ
73+
使用方法
7474

75-
���Ѥ���ץ������ǡ�oniguruma.h�򥤥󥯥롼�ɤ���(Oniguruma API�ξ��)��
76-
Oniguruma API�ˤĤ��Ƥϡ�doc/API.ja�򻲾ȡ�
75+
使用するプログラムで、oniguruma.hをインクルードする(Oniguruma APIの場合)。
76+
Oniguruma APIについては、doc/API.jaを参照。
7777

78-
oniguruma.h���������Ƥ��뷿̾UChar(== unsigned char)��̵���ˤ��������
79-
�ˤϡ�ONIG_ESCAPE_UCHAR_COLLISION��define���Ƥ���oniguruma.h�򥤥󥯥롼��
80-
���뤳�ȡ����ΤȤ��ˤ�UChar��������줺��OnigUChar�Ȥ���̾��������Τߤ�
81-
ͭ���ˤʤ롣
78+
oniguruma.hで定義されている型名UChar(== unsigned char)を無効にしたい場合
79+
には、ONIG_ESCAPE_UCHAR_COLLISIONをdefineしてからoniguruma.hをインクルード
80+
すること。このときにはUCharは定義されず、OnigUCharという名前の定義のみが
81+
有効になる。
8282

83-
oniguruma.h���������Ƥ��뷿̾regex_t��̵���ˤ��������ˤϡ�
84-
ONIG_ESCAPE_REGEX_T_COLLISION��define���Ƥ���oniguruma.h�򥤥󥯥롼��
85-
���뤳�ȡ����ΤȤ��ˤ�regex_t��������줺��OnigRegexType, OnigRegex�Ȥ���
86-
̾��������Τߤ�ͭ���ˤʤ롣
83+
oniguruma.hで定義されている型名regex_tを無効にしたい場合には、
84+
ONIG_ESCAPE_REGEX_T_COLLISIONをdefineしてからoniguruma.hをインクルード
85+
すること。このときにはregex_tは定義されず、OnigRegexType, OnigRegexという
86+
名前の定義のみが有効になる。
8787

88-
Unix/Cygwin��ǥ���ѥ��롢��󥯤�������㡧
89-
(prefix��/usr/local�ΤȤ�)
88+
Unix/Cygwin上でコンパイル、リンクする場合の例:
89+
(prefixが/usr/localのとき)
9090
cc sample.c -L/usr/local/lib -lonig
9191

92-
GNU libtool����Ѥ��Ƥ���Τǡ��ץ�åȥե����ब��ͭ�饤�֥��򥵥ݡ��Ȥ���
93-
����С����ѤǤ���褦�ˤʤäƤ��롣
94-
��Ū�饤�֥��ȶ�ͭ�饤�֥��Τɤ������Ѥ��뤫����ꤹ����ˡ���¹Ի����Ǥ�
95-
�Ķ�������ˡ�ˤĤ��Ƥϡ���ʬ��Ĵ�٤Ʋ�������
96-
97-
98-
Win32�ǥ����ƥ��å���󥯥饤�֥��(onig_s.lib)���󥯤�����ˤϡ�
99-
����ѥ��뤹��Ȥ��� -DONIG_EXTERN=extern �򥳥�ѥ���������ɲä��뤳�ȡ�
100-
101-
102-
������ץ������
103-
104-
sample/simple.c �Ǿ��� (Oniguruma API)
105-
sample/names.c ̾���դ����롼�ץ�����Хå�������
106-
sample/encode.c ���Ĥ���ʸ�����󥳡��ǥ��󥰻�����
107-
sample/listcap.c �������ǽ�λ�����
108-
sample/posix.c POSIX API������
109-
sample/sql.c ���ѥ᥿ʸ����ǽ������ (SQL-like �ѥ�����)
110-
sample/user_property.c �桼�����Unicode�ץ��ѥƥ��λ�����
111-
112-
113-
�ƥ��ȥץ������
114-
sample/syntax.c Perl��Java��ASISʸˡ�Υƥ���
115-
sample/crnl.c --enable-crnl-as-line-terminator �ƥ���
116-
117-
118-
�������ե�����
119-
120-
oniguruma.h ����API�إå� (����)
121-
onig-config.in onig-config�ץ������ �ƥ�ץ졼��
122-
123-
regenc.h ʸ�����󥳡��ǥ������Ȥߥإå�
124-
regint.h �������
125-
regparse.h regparse.c��regcomp.c������������
126-
regcomp.c ����ѥ��롢��Ŭ���ؿ�
127-
regenc.c ʸ�����󥳡��ǥ������Ȥ�
128-
regerror.c ���顼��å������ؿ�
129-
regext.c ��ĥAPI�ؿ�
130-
regexec.c �������ȹ�ؿ�
131-
regparse.c ����ɽ���ѥ�������ϴؿ�
132-
regsyntax.c ����ɽ���ѥ�����ʸˡ�ؿ����ȹ���ʸˡ���
133-
regtrav.c ��������ڽ��ؿ�
134-
regversion.c �Ǿ���ؿ�
135-
st.h �ϥå���ơ��֥�ؿ����
136-
st.c �ϥå���ơ��֥�ؿ�
137-
138-
oniggnu.h GNU regex API�إå� (����)
139-
reggnu.c GNU regex API�ؿ�
140-
141-
onigposix.h POSIX API�إå� (����)
142-
regposerr.c POSIX API���顼��å������ؿ�
143-
regposix.c POSIX API�ؿ�
144-
145-
mktable.c ʸ�������ץơ��֥������ץ������
146-
ascii.c ASCII ���󥳡��ǥ���
147-
euc_jp.c EUC-JP ���󥳡��ǥ���
148-
euc_tw.c EUC-TW ���󥳡��ǥ���
149-
euc_kr.c EUC-KR, EUC-CN ���󥳡��ǥ���
150-
sjis.c Shift_JIS ���󥳡��ǥ���
151-
big5.c Big5 ���󥳡��ǥ���
152-
gb18030.c GB18030 ���󥳡��ǥ���
153-
koi8.c KOI8 ���󥳡��ǥ���
154-
koi8_r.c KOI8-R ���󥳡��ǥ���
155-
cp1251.c CP1251 ���󥳡��ǥ���
92+
GNU libtoolを使用しているので、プラットフォームが共有ライブラリをサポートして
93+
いれば、使用できるようになっている。
94+
静的ライブラリと共有ライブラリのどちらを使用するかを指定する方法、実行時点での
95+
環境設定方法については、自分で調べて下さい。
96+
97+
98+
Win32でスタティックリンクライブラリ(onig_s.lib)をリンクする場合には、
99+
コンパイルするときに -DONIG_EXTERN=extern をコンパイル引数に追加すること。
100+
101+
102+
使用例プログラム
103+
104+
sample/simple.c 最小例 (Oniguruma API)
105+
sample/names.c 名前付きグループコールバック使用例
106+
sample/encode.c 幾つかの文字エンコーディング使用例
107+
sample/listcap.c 捕獲履歴機能の使用例
108+
sample/posix.c POSIX API使用例
109+
sample/sql.c 可変メタ文字機能使用例 (SQL-like パターン)
110+
sample/user_property.c ユーザ定義Unicodeプロパティの使用例
111+
112+
113+
テストプログラム
114+
sample/syntax.c PerlJava、ASIS文法のテスト
115+
sample/crnl.c --enable-crnl-as-line-terminator テスト
116+
117+
118+
ソースファイル
119+
120+
oniguruma.h 鬼車APIヘッダ (公開)
121+
onig-config.in onig-configプログラム テンプレート
122+
123+
regenc.h 文字エンコーディング枠組みヘッダ
124+
regint.h 内部宣言
125+
regparse.h regparse.cとregcomp.cのための内部宣言
126+
regcomp.c コンパイル、最適化関数
127+
regenc.c 文字エンコーディング枠組み
128+
regerror.c エラーメッセージ関数
129+
regext.c 拡張API関数
130+
regexec.c 検索、照合関数
131+
regparse.c 正規表現パターン解析関数
132+
regsyntax.c 正規表現パターン文法関数、組込み文法定義
133+
regtrav.c 捕獲履歴木巡回関数
134+
regversion.c 版情報関数
135+
st.h ハッシュテーブル関数宣言
136+
st.c ハッシュテーブル関数
137+
138+
oniggnu.h GNU regex APIヘッダ (公開)
139+
reggnu.c GNU regex API関数
140+
141+
onigposix.h POSIX APIヘッダ (公開)
142+
regposerr.c POSIX APIエラーメッセージ関数
143+
regposix.c POSIX API関数
144+
145+
mktable.c 文字タイプテーブル生成プログラム
146+
ascii.c ASCII エンコーディング
147+
euc_jp.c EUC-JP エンコーディング
148+
euc_tw.c EUC-TW エンコーディング
149+
euc_kr.c EUC-KR, EUC-CN エンコーディング
150+
sjis.c Shift_JIS エンコーディング
151+
big5.c Big5 エンコーディング
152+
gb18030.c GB18030 エンコーディング
153+
koi8.c KOI8 エンコーディング
154+
koi8_r.c KOI8-R エンコーディング
155+
cp1251.c CP1251 エンコーディング
156156
iso8859_1.c ISO-8859-1 (Latin-1)
157157
iso8859_2.c ISO-8859-2 (Latin-2)
158158
iso8859_3.c ISO-8859-3 (Latin-3)
@@ -161,23 +161,23 @@ https://github.com/kkos/oniguruma
161161
iso8859_6.c ISO-8859-6 (Arabic)
162162
iso8859_7.c ISO-8859-7 (Greek)
163163
iso8859_8.c ISO-8859-8 (Hebrew)
164-
iso8859_9.c ISO-8859-9 (Latin-5 �ޤ��� Turkish)
165-
iso8859_10.c ISO-8859-10 (Latin-6 �ޤ��� Nordic)
164+
iso8859_9.c ISO-8859-9 (Latin-5 または Turkish)
165+
iso8859_10.c ISO-8859-10 (Latin-6 または Nordic)
166166
iso8859_11.c ISO-8859-11 (Thai)
167-
iso8859_13.c ISO-8859-13 (Latin-7 �ޤ��� Baltic Rim)
168-
iso8859_14.c ISO-8859-14 (Latin-8 �ޤ��� Celtic)
169-
iso8859_15.c ISO-8859-15 (Latin-9 �ޤ��� West European with Euro)
167+
iso8859_13.c ISO-8859-13 (Latin-7 または Baltic Rim)
168+
iso8859_14.c ISO-8859-14 (Latin-8 または Celtic)
169+
iso8859_15.c ISO-8859-15 (Latin-9 または West European with Euro)
170170
iso8859_16.c ISO-8859-16
171-
(Latin-10 �ޤ��� South-Eastern European with Euro)
172-
utf8.c UTF-8 ���󥳡��ǥ���
173-
utf16_be.c UTF-16BE ���󥳡��ǥ���
174-
utf16_le.c UTF-16LE ���󥳡��ǥ���
175-
utf32_be.c UTF-32BE ���󥳡��ǥ���
176-
utf32_le.c UTF-32LE ���󥳡��ǥ���
177-
unicode.c Unicode���󥳡��ǥ��󥰤ζ��̽���
178-
179-
win32/Makefile Win32�� Makefile (for VC++)
180-
win32/config.h Win32�� config.h
171+
(Latin-10 または South-Eastern European with Euro)
172+
utf8.c UTF-8 エンコーディング
173+
utf16_be.c UTF-16BE エンコーディング
174+
utf16_le.c UTF-16LE エンコーディング
175+
utf32_be.c UTF-32BE エンコーディング
176+
utf32_le.c UTF-32LE エンコーディング
177+
unicode.c Unicodeエンコーディングの共通処理
178+
179+
win32/Makefile Win32用 Makefile (for VC++)
180+
win32/config.h Win32用 config.h
181181

182182

183183
and I'm thankful to Akinori MUSHA.

0 commit comments

Comments
 (0)