4 https://github.com/kkos/oniguruma
7 --------------------------
8 CVE-2017-9224, CVE-2017-9225, CVE-2017-9226
9 CVE-2017-9227, CVE-2017-9228, CVE-2017-9229
12 Oniguruma is a regular expressions library.
13 The characteristics of this library is that different character encoding
14 for every regular expression object can be specified.
16 Supported character encodings:
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
25 * GB18030: contributed by KUBO Takehiro
26 * CP1251: contributed by Byte
29 New feature of version 6.5.0
30 --------------------------
33 * NEW: \R (general newline) \N (no newline)
34 * NEW: \O (true anychar)
35 * NEW: if-then-else syntax (?(...)...\|...)
36 * NEW: Backreference validity checker (*original)
37 * NEW: Absent repeater (?~absent)
38 * NEW: Absent group (?~|absent|expr) (*original)
39 * NEW: Absent range cutter (?~|absent) (*original)
42 New feature of version 6.4.0
43 --------------------------
45 * Fix fatal problem of endless repeat on Windows
46 * NEW: call zero (call the total regexp)
47 * NEW: relative backref and relative call by positive number
50 New feature of version 6.3.0
51 --------------------------
53 * NEW SYNTAX: escape-o-brace for octal codepoint.
56 New feature of version 6.1.2
57 --------------------------
59 * allow word bound, word begin and word end in look-behind.
60 * NEW option: ONIG_OPTION_CHECK_VALIDITY_OF_STRING
62 New feature of version 6.1
63 --------------------------
66 * NEW API: onig_scan()
68 New feature of version 6.0
69 --------------------------
71 * Update Unicode 8.0 Property/Case-folding
72 * NEW API: onig_unicode_define_user_property()
84 ### Case 1: Unix and Cygwin platform
86 1. autoreconf -vfi (* case: configure script is not found.)
101 onig-config --exec-prefix
105 ### Case 2: Windows 64/32bit platform (Visual Studio)
107 execute make_win64 or make_win32
109 onig_s.lib: static link library
110 onig.dll: dynamic link library
112 * test (ASCII/Shift_JIS)
115 2. copy ..\windows\testc.c .
116 3. nmake -f Makefile.windows ctest
118 (I have checked by Visual Studio Community 2015)
125 See [doc/RE](doc/RE) or [doc/RE.ja](doc/RE.ja) for Japanese.
131 Include oniguruma.h in your program. (Oniguruma API)
132 See doc/API for Oniguruma API.
134 If you want to disable UChar type (== unsigned char) definition
135 in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
138 If you want to disable regex_t type definition in oniguruma.h,
139 define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.
141 Example of the compiling/linking command line in Unix or Cygwin,
142 (prefix == /usr/local case)
144 cc sample.c -L/usr/local/lib -lonig
147 If you want to use static link library(onig_s.lib) in Win32,
148 add option -DONIG_EXTERN=extern to C compiler.
156 |:---------------------|:-----------------------------------------|
157 |sample/simple.c |example of the minimum (Oniguruma API) |
158 |sample/names.c |example of the named group callback. |
159 |sample/encode.c |example of some encodings. |
160 |sample/listcap.c |example of the capture history. |
161 |sample/posix.c |POSIX API sample. |
162 |sample/scan.c |example of using onig_scan(). |
163 |sample/sql.c |example of the variable meta characters. |
164 |sample/user_property.c|example of user defined Unicode property. |
170 |:------------------|:--------------------------------------|
171 |sample/syntax.c |Perl, Java and ASIS syntax test. |
172 |sample/crnl.c |--enable-crnl-as-line-terminator test |
180 |:------------------|:-------------------------------------------------------|
181 |oniguruma.h |Oniguruma API header file (public) |
182 |onig-config.in |configuration check program template |
183 |regenc.h |character encodings framework header file |
184 |regint.h |internal definitions |
185 |regparse.h |internal definitions for regparse.c and regcomp.c |
186 |regcomp.c |compiling and optimization functions |
187 |regenc.c |character encodings framework |
188 |regerror.c |error message function |
189 |regext.c |extended API functions (deluxe version API) |
190 |regexec.c |search and match functions |
191 |regparse.c |parsing functions. |
192 |regsyntax.c |pattern syntax functions and built-in syntax definitions|
193 |regtrav.c |capture history tree data traverse functions |
194 |regversion.c |version info function |
195 |st.h |hash table functions header file |
196 |st.c |hash table functions |
197 |oniggnu.h |GNU regex API header file (public) |
198 |reggnu.c |GNU regex API functions |
199 |onigposix.h |POSIX API header file (public) |
200 |regposerr.c |POSIX error message function |
201 |regposix.c |POSIX API functions |
202 |mktable.c |character type table generator |
203 |ascii.c |ASCII encoding |
204 |euc_jp.c |EUC-JP encoding |
205 |euc_tw.c |EUC-TW encoding |
206 |euc_kr.c |EUC-KR, EUC-CN encoding |
207 |sjis.c |Shift_JIS encoding |
208 |big5.c |Big5 encoding |
209 |gb18030.c |GB18030 encoding |
210 |koi8.c |KOI8 encoding |
211 |koi8_r.c |KOI8-R encoding |
212 |cp1251.c |CP1251 encoding |
213 |iso8859_1.c |ISO-8859-1 (Latin-1) |
214 |iso8859_2.c |ISO-8859-2 (Latin-2) |
215 |iso8859_3.c |ISO-8859-3 (Latin-3) |
216 |iso8859_4.c |ISO-8859-4 (Latin-4) |
217 |iso8859_5.c |ISO-8859-5 (Cyrillic) |
218 |iso8859_6.c |ISO-8859-6 (Arabic) |
219 |iso8859_7.c |ISO-8859-7 (Greek) |
220 |iso8859_8.c |ISO-8859-8 (Hebrew) |
221 |iso8859_9.c |ISO-8859-9 (Latin-5 or Turkish) |
222 |iso8859_10.c |ISO-8859-10 (Latin-6 or Nordic) |
223 |iso8859_11.c |ISO-8859-11 (Thai) |
224 |iso8859_13.c |ISO-8859-13 (Latin-7 or Baltic Rim) |
225 |iso8859_14.c |ISO-8859-14 (Latin-8 or Celtic) |
226 |iso8859_15.c |ISO-8859-15 (Latin-9 or West European with Euro) |
227 |iso8859_16.c |ISO-8859-16 (Latin-10) |
228 |utf8.c |UTF-8 encoding |
229 |utf16_be.c |UTF-16BE encoding |
230 |utf16_le.c |UTF-16LE encoding |
231 |utf32_be.c |UTF-32BE encoding |
232 |utf32_le.c |UTF-32LE encoding |
233 |unicode.c |common codes of Unicode encoding |
234 |unicode_fold_data.c|Unicode folding data |
235 |win32/Makefile |Makefile for Win32 (VC++) |
236 |win32/config.h |config.h for Win32 |