• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cmake/H23-Feb-2020-

doc/H23-Feb-2020-

harnesses/H23-Feb-2020-

m4/H23-Feb-2020-

sample/H03-May-2022-

src/H23-Feb-2020-

test/H23-Feb-2020-

windows/H23-Feb-2020-

.gitignoreH A D23-Feb-2020976

.travis.ymlH A D23-Feb-2020174

AUTHORSH A D23-Feb-202032

COPYINGH A D23-Feb-20201.3 KiB

ChangeLogH A D23-Feb-20200

HISTORYH A D23-Feb-2020115.5 KiB

INSTALLH A D23-Feb-202015.4 KiB

Makefile.amH A D23-Feb-20202 KiB

NEWSH A D23-Feb-20200

READMEH A D23-Feb-20206 KiB

README.mdH A D23-Feb-202011.8 KiB

README_japaneseH A D23-Feb-20206.6 KiB

autogen.shH A D23-Feb-2020219

compileH A D23-Feb-20207.2 KiB

config.guessH A D23-Feb-202043.1 KiB

config.subH A D23-Feb-202035.3 KiB

configure.acH A D23-Feb-20201.7 KiB

depcompH A D23-Feb-202023 KiB

install-shH A D23-Feb-202015 KiB

make_win.batH A D23-Feb-2020158

make_win32.batH A D23-Feb-2020153

make_win64.batH A D23-Feb-2020153

missingH A D23-Feb-20206.7 KiB

onig-config.inH A D23-Feb-20201.3 KiB

oniguruma.pc.cmake.inH A D23-Feb-2020302

oniguruma.pc.inH A D23-Feb-2020269

test-driverH A D23-Feb-20204.5 KiB

README

1README  2018/04/05
2
3Oniguruma  ----   (C) K.Kosako
4
5https://github.com/kkos/oniguruma
6
7FIXED Security Issues (in Oniguruma 6.3.0):
8  CVE-2017-9224, CVE-2017-9225, CVE-2017-9226
9  CVE-2017-9227, CVE-2017-9228, CVE-2017-9229
10
11---
12Oniguruma is a modern and flexible regular expressions library. It
13encompasses features from different regular expression implementations
14that traditionally exist in different languages. It comes close to
15being a complete superset of all regular expression features found
16in other regular expression implementations.
17
18Its features include:
19* Character encoding can be specified per regular expression object.
20* Several regular expression types are supported:
21  * POSIX
22  * Grep
23  * GNU Regex
24  * Perl
25  * Java
26  * Ruby
27  * Emacs
28
29Supported character encodings:
30
31  ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
32  EUC-JP, EUC-TW, EUC-KR, EUC-CN,
33  Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
34  ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
35  ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
36  ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
37
38* GB18030: contributed by KUBO Takehiro
39* CP1251:  contributed by Byte
40------------------------------------------------------------
41
42License
43
44   BSD license.
45
46
47Install
48
49 Case 1: Unix and Cygwin platform
50
51   1. autoreconf -vfi   (* case: configure script is not found.)
52
53   2. ./configure
54   3. make
55   4. make install
56
57   * uninstall
58
59     make uninstall
60
61   * configuration check
62
63     onig-config --cflags
64     onig-config --libs
65     onig-config --prefix
66     onig-config --exec-prefix
67
68
69
70 Case 2: Windows 64/32bit platform (Visual Studio)
71
72   execute make_win64 or make_win32
73
74      src/onig_s.lib:  static link library
75      src/onig.dll:    dynamic link library
76
77  * test (ASCII/Shift_JIS)
78      1. cd src
79      2. copy ..\windows\testc.c .
80      3. nmake -f Makefile.windows ctest
81
82  (I have checked by Visual Studio Community 2015)
83
84
85
86Regular Expressions
87
88  See doc/RE (or doc/RE.ja for Japanese).
89
90
91Usage
92
93  Include oniguruma.h in your program. (Oniguruma API)
94  See doc/API for Oniguruma API.
95
96  If you want to disable UChar type (== unsigned char) definition
97  in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
98  include oniguruma.h.
99
100  If you want to disable regex_t type definition in oniguruma.h,
101  define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.
102
103  Example of the compiling/linking command line in Unix or Cygwin,
104  (prefix == /usr/local case)
105
106    cc sample.c -L/usr/local/lib -lonig
107
108
109  If you want to use static link library(onig_s.lib) in Win32,
110  add option -DONIG_EXTERN=extern to C compiler.
111
112
113
114Sample Programs
115
116  sample/simple.c    example of the minimum (Oniguruma API)
117  sample/names.c     example of the named group callback.
118  sample/encode.c    example of some encodings.
119  sample/listcap.c   example of the capture history.
120  sample/posix.c     POSIX API sample.
121  sample/sql.c       example of the variable meta characters.
122                     (SQL-like pattern matching)
123  sample/user_property.c  example of user defined Unicode property.
124
125Test Programs
126  sample/syntax.c    Perl, Java and ASIS syntax test.
127  sample/crnl.c      --enable-crnl-as-line-terminator test
128
129
130Source Files
131
132  oniguruma.h        Oniguruma API header file. (public)
133  onig-config.in     configuration check program template.
134
135  regenc.h           character encodings framework header file.
136  regint.h           internal definitions
137  regparse.h         internal definitions for regparse.c and regcomp.c
138  regcomp.c          compiling and optimization functions
139  regenc.c           character encodings framework.
140  regerror.c         error message function
141  regext.c           extended API functions. (deluxe version API)
142  regexec.c          search and match functions
143  regparse.c         parsing functions.
144  regsyntax.c        pattern syntax functions and built-in syntax definitions.
145  regtrav.c          capture history tree data traverse functions.
146  regversion.c       version info function.
147  st.h               hash table functions header file
148  st.c               hash table functions
149
150  oniggnu.h          GNU regex API header file. (public)
151  reggnu.c           GNU regex API functions
152
153  onigposix.h        POSIX API header file. (public)
154  regposerr.c        POSIX error message function.
155  regposix.c         POSIX API functions.
156
157  mktable.c          character type table generator.
158  ascii.c            ASCII encoding.
159  euc_jp.c           EUC-JP encoding.
160  euc_tw.c           EUC-TW encoding.
161  euc_kr.c           EUC-KR, EUC-CN encoding.
162  sjis.c             Shift_JIS encoding.
163  big5.c             Big5      encoding.
164  gb18030.c          GB18030   encoding.
165  koi8.c             KOI8      encoding.
166  koi8_r.c           KOI8-R    encoding.
167  cp1251.c           CP1251    encoding.
168  iso8859_1.c        ISO-8859-1  encoding. (Latin-1)
169  iso8859_2.c        ISO-8859-2  encoding. (Latin-2)
170  iso8859_3.c        ISO-8859-3  encoding. (Latin-3)
171  iso8859_4.c        ISO-8859-4  encoding. (Latin-4)
172  iso8859_5.c        ISO-8859-5  encoding. (Cyrillic)
173  iso8859_6.c        ISO-8859-6  encoding. (Arabic)
174  iso8859_7.c        ISO-8859-7  encoding. (Greek)
175  iso8859_8.c        ISO-8859-8  encoding. (Hebrew)
176  iso8859_9.c        ISO-8859-9  encoding. (Latin-5 or Turkish)
177  iso8859_10.c       ISO-8859-10 encoding. (Latin-6 or Nordic)
178  iso8859_11.c       ISO-8859-11 encoding. (Thai)
179  iso8859_13.c       ISO-8859-13 encoding. (Latin-7 or Baltic Rim)
180  iso8859_14.c       ISO-8859-14 encoding. (Latin-8 or Celtic)
181  iso8859_15.c       ISO-8859-15 encoding. (Latin-9 or West European with Euro)
182  iso8859_16.c       ISO-8859-16 encoding.
183                     (Latin-10 or South-Eastern European with Euro)
184  utf8.c             UTF-8    encoding.
185  utf16_be.c         UTF-16BE encoding.
186  utf16_le.c         UTF-16LE encoding.
187  utf32_be.c         UTF-32BE encoding.
188  utf32_le.c         UTF-32LE encoding.
189  unicode.c          common codes of Unicode encoding.
190
191  win32/Makefile     Makefile for Win32 (VC++)
192  win32/config.h     config.h for Win32
193
194
195and I'm thankful to Akinori MUSHA.
196

README.md

1[![Build Status](https://travis-ci.org/kkos/oniguruma.svg?branch=master)](https://travis-ci.org/kkos/oniguruma)
2[![Code Quality: Cpp](https://img.shields.io/lgtm/grade/cpp/g/kkos/oniguruma.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kkos/oniguruma/context:cpp)
3[![Total Alerts](https://img.shields.io/lgtm/alerts/g/kkos/oniguruma.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/kkos/oniguruma/alerts)
4
5Oniguruma
6=========
7
8https://github.com/kkos/oniguruma
9
10Oniguruma is a modern and flexible regular expressions library. It
11encompasses features from different regular expression implementations
12that traditionally exist in different languages.
13
14Character encoding can be specified per regular expression object.
15
16Supported character encodings:
17
18  ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
19  EUC-JP, EUC-TW, EUC-KR, EUC-CN,
20  Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
21  ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
22  ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
23  ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
24
25* GB18030: contributed by KUBO Takehiro
26* CP1251:  contributed by Byte
27* doc/SYNTAX.md: contributed by seanofw
28
29
30Master branch
31-------------
32
33* NEW API: retry limit in search functions
34* Limit on maximum nesting level of subexp call (16)
35* Fixed behavior of isolated options in Perl and Java syntaxes.  /...(?i).../
36
37
38Version 6.9.4
39-------------
40
41* NEW API: RegSet (set of regexes)
42* Fixed CVE-2019-19012
43* Fixed CVE-2019-19203 (Does not affect UTF-8, UTF-16 and UTF-32 encodings)
44* Fixed CVE-2019-19204 (Affects only PosixBasic, Emacs and Grep syntaxes)
45* Fixed CVE-2019-19246
46* Fixed some problems (found by libFuzzer test)
47
48
49Version 6.9.3 (security fix release)
50------------------------------------
51
52* Fixed CVE-2019-13224
53* Fixed CVE-2019-13225
54* Fixed CVE-2019-16163
55* Fixed many problems (found by libFuzzer test)
56
57
58Version 6.9.2 (Reiwa)
59---------------------
60
61* add doc/SYNTAX.md
62* Direct threaded code (for GCC and Clang)
63* Update Unicode version 12.1.0
64* NEW: Unicode Text Segment mode option (?y{g}) (?y{w})  (*original)
65
66
67Version 6.9.1
68-------------
69
70* Speed improvement (* especially UTF-8)
71
72
73Version 6.9.0
74-------------
75
76* Update Unicode version 11.0.0
77* NEW: add Emoji properties
78
79
80Version 6.8.2
81-------------
82
83* Fix: #80 UChar in header causes issue
84* NEW API: onig_set_callout_user_data_of_match_param()  (* omission in 6.8.0)
85* add doc/CALLOUTS.API and doc/CALLOUTS.API.ja
86
87
88Version 6.8.1
89-------------
90
91* Update shared library version to 5.0.0 for API incompatible changes from 6.7.1
92
93
94Version 6.8.0
95-------------
96
97* Retry-limit-in-match function enabled by default
98* NEW: configure option --enable-posix-api=no  (* enabled by default)
99* NEW API: onig_search_with_param(), onig_match_with_param()
100* NEW: Callouts of contents  (?{...contents...}) (?{...}\[tag]\[X<>]) (?{{...}})
101* NEW: Callouts of name      (*name) (*name\[tag]{args...})
102* NEW: Builtin callouts  (*FAIL) (*MISMATCH) (*ERROR{n}) (*COUNT) (*MAX{n}) etc..
103* Examples of Callouts program: [callout.c](sample/callout.c), [count.c](sample/count.c), [echo.c](sample/echo.c)
104
105
106Version 6.7.1
107-------------
108
109* NEW: Mechanism of retry-limit-in-match (* disabled by default)
110
111
112Version 6.7.0
113-------------
114
115* NEW: hexadecimal codepoint \uHHHH
116* NEW: add ONIG_SYNTAX_ONIGURUMA (== ONIG_SYNTAX_DEFAULT)
117* Disabled \N and \O on ONIG_SYNTAX_RUBY
118* Reduced size of object file
119
120
121Version 6.6.0
122-------------
123
124* NEW: ASCII only mode options for character type/property (?WDSP)
125* NEW: Extended Grapheme Cluster boundary \y, \Y
126* NEW: Extended Grapheme Cluster \X
127* Range-clear (Absent-clear) operator restores previous range in retractions.
128
129
130Version 6.5.0
131-------------
132
133* NEW: \K (keep)
134* NEW: \R (general newline) \N (no newline)
135* NEW: \O (true anychar)
136* NEW: if-then-else   (?(...)...\|...)
137* NEW: Backreference validity checker (?(xxx)) (*original)
138* NEW: Absent repeater (?~absent)  \[is equal to (?\~\|(?:absent)|\O*)]
139* NEW: Absent expression   (?~|absent|expr)  (*original)
140* NEW: Absent stopper (?~|absent)     (*original)
141
142
143Version 6.4.0
144-------------
145
146* Fix fatal problem of endless repeat on Windows
147* NEW: call zero (call the total regexp) \g<0>
148* NEW: relative backref/call by positive number \k<+n>, \g<+n>
149
150
151Version 6.3.0
152-------------
153
154* NEW: octal codepoint \o{.....}
155* Fixed CVE-2017-9224
156* Fixed CVE-2017-9225
157* Fixed CVE-2017-9226
158* Fixed CVE-2017-9227
159* Fixed CVE-2017-9228
160* Fixed CVE-2017-9229
161
162
163Version 6.1.2
164-------------
165
166* allow word bound, word begin and word end in look-behind.
167* NEW option: ONIG_OPTION_CHECK_VALIDITY_OF_STRING
168
169Version 6.1
170-----------
171
172* improved doc/RE
173* NEW API: onig_scan()
174
175Version 6.0
176-----------
177
178* Update Unicode 8.0 Property/Case-folding
179* NEW API: onig_unicode_define_user_property()
180
181
182License
183-------
184
185  BSD license.
186
187
188Install
189-------
190
191### Case 1: Unix and Cygwin platform
192
193   1. autoreconf -vfi   (* case: configure script is not found.)
194
195   2. ./configure
196   3. make
197   4. make install
198
199   * uninstall
200
201     make uninstall
202
203   * configuration check
204
205     onig-config --cflags
206     onig-config --libs
207     onig-config --prefix
208     onig-config --exec-prefix
209
210
211
212### Case 2: Windows 64/32bit platform (Visual Studio)
213
214   Execute make_win.bat
215
216      onig_s.lib:  static link library
217      onig.dll:    dynamic link library
218
219   * test (ASCII/Shift_JIS)
220
221      1. cd src
222      2. copy ..\windows\testc.c .
223      3. nmake -f Makefile.windows ctest
224
225   (I have checked by Visual Studio Community 2015)
226
227
228
229Regular Expressions
230-------------------
231
232  See [doc/RE](doc/RE) or [doc/RE.ja](doc/RE.ja) for Japanese.
233
234
235Usage
236-----
237
238  Include oniguruma.h in your program. (Oniguruma API)
239  See doc/API for Oniguruma API.
240
241  If you want to disable UChar type (== unsigned char) definition
242  in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
243  include oniguruma.h.
244
245  If you want to disable regex_t type definition in oniguruma.h,
246  define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.
247
248  Example of the compiling/linking command line in Unix or Cygwin,
249  (prefix == /usr/local case)
250
251    cc sample.c -L/usr/local/lib -lonig
252
253
254  If you want to use static link library(onig_s.lib) in Win32,
255  add option -DONIG_EXTERN=extern to C compiler.
256
257
258
259Sample Programs
260---------------
261
262|File                  |Description                               |
263|:---------------------|:-----------------------------------------|
264|sample/callout.c      |example of callouts                       |
265|sample/count.c        |example of built-in callout *COUNT        |
266|sample/echo.c         |example of user defined callouts of name  |
267|sample/encode.c       |example of some encodings                 |
268|sample/listcap.c      |example of the capture history            |
269|sample/names.c        |example of the named group callback       |
270|sample/posix.c        |POSIX API sample                          |
271|sample/regset.c       |example of using RegSet API               |
272|sample/scan.c         |example of using onig_scan()              |
273|sample/simple.c       |example of the minimum (Oniguruma API)    |
274|sample/sql.c          |example of the variable meta characters   |
275|sample/user_property.c|example of user defined Unicode property  |
276
277
278Test Programs
279
280|File               |Description                            |
281|:------------------|:--------------------------------------|
282|sample/syntax.c    |Perl, Java and ASIS syntax test.       |
283|sample/crnl.c      |--enable-crnl-as-line-terminator test  |
284
285
286
287Source Files
288------------
289
290|File               |Description                                             |
291|:------------------|:-------------------------------------------------------|
292|oniguruma.h        |Oniguruma API header file (public)                      |
293|onig-config.in     |configuration check program template                    |
294|regenc.h           |character encodings framework header file               |
295|regint.h           |internal definitions                                    |
296|regparse.h         |internal definitions for regparse.c and regcomp.c       |
297|regcomp.c          |compiling and optimization functions                    |
298|regenc.c           |character encodings framework                           |
299|regerror.c         |error message function                                  |
300|regext.c           |extended API functions (deluxe version API)             |
301|regexec.c          |search and match functions                              |
302|regparse.c         |parsing functions.                                      |
303|regsyntax.c        |pattern syntax functions and built-in syntax definitions|
304|regtrav.c          |capture history tree data traverse functions            |
305|regversion.c       |version info function                                   |
306|st.h               |hash table functions header file                        |
307|st.c               |hash table functions                                    |
308|oniggnu.h          |GNU regex API header file (public)                      |
309|reggnu.c           |GNU regex API functions                                 |
310|onigposix.h        |POSIX API header file (public)                          |
311|regposerr.c        |POSIX error message function                            |
312|regposix.c         |POSIX API functions                                     |
313|mktable.c          |character type table generator                          |
314|ascii.c            |ASCII encoding                                          |
315|euc_jp.c           |EUC-JP encoding                                         |
316|euc_tw.c           |EUC-TW encoding                                         |
317|euc_kr.c           |EUC-KR, EUC-CN encoding                                 |
318|sjis.c             |Shift_JIS encoding                                      |
319|big5.c             |Big5      encoding                                      |
320|gb18030.c          |GB18030   encoding                                      |
321|koi8.c             |KOI8      encoding                                      |
322|koi8_r.c           |KOI8-R    encoding                                      |
323|cp1251.c           |CP1251    encoding                                      |
324|iso8859_1.c        |ISO-8859-1 (Latin-1)                                    |
325|iso8859_2.c        |ISO-8859-2 (Latin-2)                                    |
326|iso8859_3.c        |ISO-8859-3 (Latin-3)                                    |
327|iso8859_4.c        |ISO-8859-4 (Latin-4)                                    |
328|iso8859_5.c        |ISO-8859-5 (Cyrillic)                                   |
329|iso8859_6.c        |ISO-8859-6 (Arabic)                                     |
330|iso8859_7.c        |ISO-8859-7 (Greek)                                      |
331|iso8859_8.c        |ISO-8859-8 (Hebrew)                                     |
332|iso8859_9.c        |ISO-8859-9 (Latin-5 or Turkish)                         |
333|iso8859_10.c       |ISO-8859-10 (Latin-6 or Nordic)                         |
334|iso8859_11.c       |ISO-8859-11 (Thai)                                      |
335|iso8859_13.c       |ISO-8859-13 (Latin-7 or Baltic Rim)                     |
336|iso8859_14.c       |ISO-8859-14 (Latin-8 or Celtic)                         |
337|iso8859_15.c       |ISO-8859-15 (Latin-9 or West European with Euro)        |
338|iso8859_16.c       |ISO-8859-16 (Latin-10)                                  |
339|utf8.c             |UTF-8    encoding                                       |
340|utf16_be.c         |UTF-16BE encoding                                       |
341|utf16_le.c         |UTF-16LE encoding                                       |
342|utf32_be.c         |UTF-32BE encoding                                       |
343|utf32_le.c         |UTF-32LE encoding                                       |
344|unicode.c          |common codes of Unicode encoding                        |
345|unicode_fold_data.c|Unicode folding data                                    |
346|windows/testc.c    |Test program for Windows (VC++)                        |
347

README_japanese

1README.ja  2017/08/25
2
3鬼車  ----   (C) K.Kosako <kkosako0@gmail.com>
4
5https://github.com/kkos/oniguruma
6
7鬼車は正規表現ライブラリである。
8このライブラリの特長は、それぞれの正規表現オブジェクトごとに
9文字エンコーディングを指定できることである。
10
11サポートしている文字エンコーディング:
12
13  ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
14  EUC-JP, EUC-TW, EUC-KR, EUC-CN,
15  Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
16  ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
17  ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
18  ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
19
20* GB18030: 久保健洋氏提供
21* CP1251:  Byte氏提供
22------------------------------------------------------------
23
24ライセンス
25
26  BSDライセンス
27
28
29インストール
30
31 ケース1: UnixとCygwin環境
32
33   1. autoreconf -vfi   (* configureスクリプトがないときだけ)
34
35   2. ./configure
36   3. make
37   4. make install
38
39   アンインストール
40
41     make uninstall
42
43   構成確認
44
45     onig-config --cflags
46     onig-config --libs
47     onig-config --prefix
48     onig-config --exec-prefix
49
50
51
52 ケース2: Windows 64/32bit (Visual Studio)環境
53
54   make_win64 あるいは make_win32 を実行
55
56      onig_s.lib:  static link library
57      onig.dll:    dynamic link library
58
59   * 動作テスト (ASCII/Shift_JIS)
60      1. cd src
61      2. copy ..\windows\testc.c .
62      3. nmake -f Makefile.windows ctest
63
64   (Visual Studio Community 2015 で動作確認)
65
66
67
68正規表現
69
70  doc/RE.jaを参照
71
72
73使用方法
74
75  使用するプログラムで、oniguruma.hをインクルードする(Oniguruma APIの場合)。
76  Oniguruma APIについては、doc/API.jaを参照。
77
78  oniguruma.hで定義されている型名UChar(== unsigned char)を無効にしたい場合
79  には、ONIG_ESCAPE_UCHAR_COLLISIONをdefineしてからoniguruma.hをインクルード
80  すること。このときにはUCharは定義されず、OnigUCharという名前の定義のみが
81  有効になる。
82
83  oniguruma.hで定義されている型名regex_tを無効にしたい場合には、
84  ONIG_ESCAPE_REGEX_T_COLLISIONをdefineしてからoniguruma.hをインクルード
85  すること。このときにはregex_tは定義されず、OnigRegexType, OnigRegexという
86  名前の定義のみが有効になる。
87
88  Unix/Cygwin上でコンパイル、リンクする場合の例:
89  (prefixが/usr/localのとき)
90  cc sample.c -L/usr/local/lib -lonig
91
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.cregcomp.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 エンコーディング
156  iso8859_1.c        ISO-8859-1  (Latin-1)
157  iso8859_2.c        ISO-8859-2  (Latin-2)
158  iso8859_3.c        ISO-8859-3  (Latin-3)
159  iso8859_4.c        ISO-8859-4  (Latin-4)
160  iso8859_5.c        ISO-8859-5  (Cyrillic)
161  iso8859_6.c        ISO-8859-6  (Arabic)
162  iso8859_7.c        ISO-8859-7  (Greek)
163  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)
166  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)
170  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
181
182
183and I'm thankful to Akinori MUSHA.
184