@port-labs/jq-node-bindings 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +3 -3
- package/configure +8 -6
- package/deps/jq/.travis.yml +184 -35
- package/deps/jq/AUTHORS +31 -30
- package/deps/jq/COPYING +2 -2
- package/deps/jq/KEYS +8 -0
- package/deps/jq/Makefile.am +85 -70
- package/deps/jq/NEWS +5 -4
- package/deps/jq/README.md +18 -9
- package/deps/jq/appveyor.yml +53 -0
- package/deps/jq/compile-ios.sh +5 -5
- package/deps/jq/config/m4/check-math-func.m4 +7 -2
- package/deps/jq/configure.ac +130 -68
- package/deps/jq/docs/Rakefile +14 -135
- package/deps/jq/docs/Rakefile.manual +49 -0
- package/deps/jq/docs/Rakefile.website +76 -0
- package/deps/jq/docs/content/2.download/default.yml +115 -39
- package/deps/jq/docs/content/3.manual/manual.yml +641 -231
- package/deps/jq/docs/content/3.manual/v1.3/manual.yml +130 -130
- package/deps/jq/docs/content/3.manual/v1.4/manual.yml +160 -160
- package/deps/jq/docs/content/3.manual/v1.5/manual.yml +2878 -0
- package/deps/jq/docs/content/3.manual/v1.6/manual.yml +3287 -0
- package/deps/jq/docs/content/index/index.yml +28 -6
- package/deps/jq/docs/public/.htaccess +2 -2
- package/deps/jq/docs/public/css/base.scss +141 -59
- package/deps/jq/docs/public/js/manual-search.js +52 -0
- package/deps/jq/docs/site.yml +1 -10
- package/deps/jq/docs/templates/default.liquid +10 -10
- package/deps/jq/docs/templates/index.liquid +45 -32
- package/deps/jq/docs/templates/manual.liquid +67 -90
- package/deps/jq/docs/templates/shared/_footer.liquid +10 -5
- package/deps/jq/docs/templates/shared/_head.liquid +17 -12
- package/deps/jq/docs/templates/shared/_navbar.liquid +27 -0
- package/deps/jq/jq.1.prebuilt +523 -139
- package/deps/jq/modules/oniguruma/AUTHORS +1 -0
- package/deps/jq/modules/oniguruma/CMakeLists.txt +86 -0
- package/deps/jq/modules/oniguruma/COPYING +28 -0
- package/deps/jq/modules/oniguruma/ChangeLog +0 -0
- package/deps/jq/modules/oniguruma/HISTORY +2138 -0
- package/deps/jq/modules/oniguruma/Makefile.am +33 -0
- package/deps/jq/modules/oniguruma/NEWS +0 -0
- package/deps/jq/modules/oniguruma/README +189 -0
- package/deps/jq/modules/oniguruma/README.ja +195 -0
- package/deps/jq/modules/oniguruma/README.md +203 -0
- package/deps/jq/modules/oniguruma/cmake/dist.cmake +321 -0
- package/deps/jq/modules/oniguruma/compile +348 -0
- package/deps/jq/modules/oniguruma/config.guess +1754 -0
- package/deps/jq/modules/oniguruma/config.sub +1890 -0
- package/deps/jq/modules/oniguruma/configure.ac +87 -0
- package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +31 -0
- package/deps/jq/modules/oniguruma/depcomp +791 -0
- package/deps/jq/modules/oniguruma/dist.info +10 -0
- package/deps/jq/modules/oniguruma/doc/API +660 -0
- package/deps/jq/modules/oniguruma/doc/API.ja +667 -0
- package/deps/jq/modules/oniguruma/doc/FAQ +12 -0
- package/deps/jq/modules/oniguruma/doc/FAQ.ja +22 -0
- package/deps/jq/modules/oniguruma/doc/RE +436 -0
- package/deps/jq/modules/oniguruma/doc/RE.ja +448 -0
- package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +698 -0
- package/deps/jq/modules/oniguruma/index.html +181 -0
- package/deps/jq/modules/oniguruma/index_ja.html +184 -0
- package/deps/jq/modules/oniguruma/install-sh +541 -0
- package/deps/jq/modules/oniguruma/m4/.whatever +0 -0
- package/deps/jq/modules/oniguruma/make_win32.bat +3 -0
- package/deps/jq/modules/oniguruma/make_win64.bat +3 -0
- package/deps/jq/modules/oniguruma/missing +215 -0
- package/deps/jq/modules/oniguruma/onig-config.in +78 -0
- package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +13 -0
- package/deps/jq/modules/oniguruma/oniguruma.pc.in +14 -0
- package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +28 -0
- package/deps/jq/modules/oniguruma/sample/Makefile.am +34 -0
- package/deps/jq/modules/oniguruma/sample/bug_fix.c +131 -0
- package/deps/jq/modules/oniguruma/sample/crnl.c +127 -0
- package/deps/jq/modules/oniguruma/sample/encode.c +308 -0
- package/deps/jq/modules/oniguruma/sample/listcap.c +110 -0
- package/deps/jq/modules/oniguruma/sample/names.c +75 -0
- package/deps/jq/modules/oniguruma/sample/posix.c +96 -0
- package/deps/jq/modules/oniguruma/sample/scan.c +88 -0
- package/deps/jq/modules/oniguruma/sample/simple.c +59 -0
- package/deps/jq/modules/oniguruma/sample/sql.c +76 -0
- package/deps/jq/modules/oniguruma/sample/syntax.c +76 -0
- package/deps/jq/modules/oniguruma/sample/user_property.c +87 -0
- package/deps/jq/modules/oniguruma/src/Makefile.am +58 -0
- package/deps/jq/modules/oniguruma/src/Makefile.windows +183 -0
- package/deps/jq/modules/oniguruma/src/ascii.c +61 -0
- package/deps/jq/modules/oniguruma/src/big5.c +190 -0
- package/deps/jq/modules/oniguruma/src/config.h.cmake.in +71 -0
- package/deps/jq/modules/oniguruma/src/config.h.win32 +84 -0
- package/deps/jq/modules/oniguruma/src/config.h.win64 +84 -0
- package/deps/jq/modules/oniguruma/src/cp1251.c +203 -0
- package/deps/jq/modules/oniguruma/src/euc_jp.c +310 -0
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +158 -0
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +27 -0
- package/deps/jq/modules/oniguruma/src/euc_kr.c +188 -0
- package/deps/jq/modules/oniguruma/src/euc_tw.c +171 -0
- package/deps/jq/modules/oniguruma/src/gb18030.c +538 -0
- package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +67 -0
- package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +55 -0
- package/deps/jq/modules/oniguruma/src/iso8859_1.c +275 -0
- package/deps/jq/modules/oniguruma/src/iso8859_10.c +242 -0
- package/deps/jq/modules/oniguruma/src/iso8859_11.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_13.c +231 -0
- package/deps/jq/modules/oniguruma/src/iso8859_14.c +244 -0
- package/deps/jq/modules/oniguruma/src/iso8859_15.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_16.c +240 -0
- package/deps/jq/modules/oniguruma/src/iso8859_2.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_3.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_4.c +240 -0
- package/deps/jq/modules/oniguruma/src/iso8859_5.c +229 -0
- package/deps/jq/modules/oniguruma/src/iso8859_6.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_7.c +225 -0
- package/deps/jq/modules/oniguruma/src/iso8859_8.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_9.c +231 -0
- package/deps/jq/modules/oniguruma/src/koi8.c +253 -0
- package/deps/jq/modules/oniguruma/src/koi8_r.c +215 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +22 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +306 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +18 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +545 -0
- package/deps/jq/modules/oniguruma/src/mktable.c +1184 -0
- package/deps/jq/modules/oniguruma/src/onig_init.c +45 -0
- package/deps/jq/modules/oniguruma/src/oniggnu.h +85 -0
- package/deps/jq/modules/oniguruma/src/onigposix.h +169 -0
- package/deps/jq/modules/oniguruma/src/oniguruma.h +841 -0
- package/deps/jq/modules/oniguruma/src/regcomp.c +6300 -0
- package/deps/jq/modules/oniguruma/src/regenc.c +917 -0
- package/deps/jq/modules/oniguruma/src/regenc.h +243 -0
- package/deps/jq/modules/oniguruma/src/regerror.c +393 -0
- package/deps/jq/modules/oniguruma/src/regexec.c +3856 -0
- package/deps/jq/modules/oniguruma/src/regext.c +202 -0
- package/deps/jq/modules/oniguruma/src/reggnu.c +147 -0
- package/deps/jq/modules/oniguruma/src/regint.h +779 -0
- package/deps/jq/modules/oniguruma/src/regparse.c +5403 -0
- package/deps/jq/modules/oniguruma/src/regparse.h +351 -0
- package/deps/jq/modules/oniguruma/src/regposerr.c +105 -0
- package/deps/jq/modules/oniguruma/src/regposix.c +306 -0
- package/deps/jq/modules/oniguruma/src/regsyntax.c +315 -0
- package/deps/jq/modules/oniguruma/src/regtrav.c +76 -0
- package/deps/jq/modules/oniguruma/src/regversion.c +57 -0
- package/deps/jq/modules/oniguruma/src/sjis.c +341 -0
- package/deps/jq/modules/oniguruma/src/sjis_prop.c +158 -0
- package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +27 -0
- package/deps/jq/modules/oniguruma/src/st.c +589 -0
- package/deps/jq/modules/oniguruma/src/st.h +68 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +2250 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +203 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +113 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +1225 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +24742 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +4846 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +2571 -0
- package/deps/jq/modules/oniguruma/src/unicode.c +664 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +2548 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +203 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +113 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1366 -0
- package/deps/jq/modules/oniguruma/src/unicode_property_data.c +25306 -0
- package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +4940 -0
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +2854 -0
- package/deps/jq/modules/oniguruma/src/utf16_be.c +235 -0
- package/deps/jq/modules/oniguruma/src/utf16_le.c +245 -0
- package/deps/jq/modules/oniguruma/src/utf32_be.c +194 -0
- package/deps/jq/modules/oniguruma/src/utf32_le.c +194 -0
- package/deps/jq/modules/oniguruma/src/utf8.c +335 -0
- package/deps/jq/modules/oniguruma/test/Makefile.am +28 -0
- package/deps/jq/modules/oniguruma/test/testc.c +874 -0
- package/deps/jq/modules/oniguruma/test/testu.c +916 -0
- package/deps/jq/modules/oniguruma/test-driver +153 -0
- package/deps/jq/modules/oniguruma/windows/testc.c +869 -0
- package/deps/jq/scripts/crosscompile +2 -1
- package/deps/jq/scripts/gen_utf8_tables.py +2 -3
- package/deps/jq/scripts/update-website +29 -0
- package/deps/jq/scripts/version +7 -2
- package/deps/jq/sig/jq-release.key +41 -0
- package/deps/jq/sig/v1.3/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.3/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.3/jq-osx-x86.asc +17 -0
- package/deps/jq/sig/v1.3/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.3/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.3/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.3/sha256sum.txt +6 -0
- package/deps/jq/sig/v1.4/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.4/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-osx-x86.asc +17 -0
- package/deps/jq/sig/v1.4/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-solaris11-32.asc +17 -0
- package/deps/jq/sig/v1.4/jq-solaris11-64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.4/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.4/sha256sum.txt +8 -0
- package/deps/jq/sig/v1.5/jq-linux32-no-oniguruma.asc +17 -0
- package/deps/jq/sig/v1.5/jq-linux32.asc +17 -0
- package/deps/jq/sig/v1.5/jq-linux64.asc +17 -0
- package/deps/jq/sig/v1.5/jq-osx-amd64.asc +17 -0
- package/deps/jq/sig/v1.5/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5/sha256sum.txt +5 -0
- package/deps/jq/sig/v1.5rc1/jq-linux-x86_64-static.asc +17 -0
- package/deps/jq/sig/v1.5rc1/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc1/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc1/sha256sum.txt +3 -0
- package/deps/jq/sig/v1.5rc2/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc2/sha256sum.txt +5 -0
- package/deps/jq/sig/v1.6/jq-linux32.asc +16 -0
- package/deps/jq/sig/v1.6/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.6/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.6/jq-win32.exe.asc +16 -0
- package/deps/jq/sig/v1.6/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.6/sha256sum.txt +5 -0
- package/deps/jq/{builtin.c → src/builtin.c} +449 -344
- package/deps/jq/{builtin.h → src/builtin.h} +0 -0
- package/deps/jq/src/builtin.jq +311 -0
- package/deps/jq/{bytecode.c → src/bytecode.c} +0 -0
- package/deps/jq/{bytecode.h → src/bytecode.h} +0 -0
- package/deps/jq/{compile.c → src/compile.c} +213 -37
- package/deps/jq/{compile.h → src/compile.h} +7 -2
- package/deps/jq/{exec_stack.h → src/exec_stack.h} +0 -0
- package/deps/jq/{execute.c → src/execute.c} +127 -24
- package/deps/jq/{inject_errors.c → src/inject_errors.c} +0 -0
- package/deps/jq/{jq.h → src/jq.h} +13 -2
- package/deps/jq/{jq_parser.h → src/jq_parser.h} +0 -0
- package/deps/jq/{jq_test.c → src/jq_test.c} +1 -1
- package/deps/jq/{jv.c → src/jv.c} +24 -5
- package/deps/jq/{jv.h → src/jv.h} +46 -11
- package/deps/jq/{jv_alloc.c → src/jv_alloc.c} +0 -0
- package/deps/jq/{jv_alloc.h → src/jv_alloc.h} +0 -0
- package/deps/jq/{jv_aux.c → src/jv_aux.c} +38 -14
- package/deps/jq/{jv_dtoa.c → src/jv_dtoa.c} +4 -5
- package/deps/jq/{jv_dtoa.h → src/jv_dtoa.h} +0 -0
- package/deps/jq/src/jv_file.c +81 -0
- package/deps/jq/{jv_parse.c → src/jv_parse.c} +8 -2
- package/deps/jq/{jv_print.c → src/jv_print.c} +80 -27
- package/deps/jq/{jv_unicode.c → src/jv_unicode.c} +28 -4
- package/deps/jq/{jv_unicode.h → src/jv_unicode.h} +1 -0
- package/deps/jq/{jv_utf8_tables.h → src/jv_utf8_tables.h} +0 -0
- package/deps/jq/{lexer.c → src/lexer.c} +317 -292
- package/deps/jq/{lexer.h → src/lexer.h} +16 -12
- package/deps/jq/{lexer.l → src/lexer.l} +5 -4
- package/deps/jq/src/libm.h +291 -0
- package/deps/jq/{linker.c → src/linker.c} +5 -3
- package/deps/jq/{linker.h → src/linker.h} +0 -0
- package/deps/jq/{locfile.c → src/locfile.c} +1 -1
- package/deps/jq/{locfile.h → src/locfile.h} +0 -0
- package/deps/jq/{main.c → src/main.c} +202 -100
- package/deps/jq/{opcode_list.h → src/opcode_list.h} +4 -0
- package/deps/jq/{parser.c → src/parser.c} +1149 -1069
- package/deps/jq/{parser.h → src/parser.h} +28 -24
- package/deps/jq/{parser.y → src/parser.y} +108 -52
- package/deps/jq/{util.c → src/util.c} +12 -9
- package/deps/jq/{util.h → src/util.h} +0 -0
- package/deps/jq/tests/base64.test +35 -0
- package/deps/jq/tests/base64test +5 -0
- package/deps/jq/tests/jq-f-test.sh +4 -0
- package/deps/jq/tests/jq.test +305 -21
- package/deps/jq/tests/jqtest +1 -1
- package/deps/jq/tests/mantest +1 -1
- package/deps/jq/tests/onig.test +13 -0
- package/deps/jq/tests/onigtest +1 -1
- package/deps/jq/tests/optional.test +20 -0
- package/deps/jq/tests/optionaltest +5 -0
- package/deps/jq/tests/setup +7 -1
- package/deps/jq/tests/shtest +133 -29
- package/deps/jq/tests/utf8-truncate.jq +3 -0
- package/deps/jq/tests/utf8test +10 -0
- package/lib/index.js +7 -1
- package/package.json +3 -3
- package/test/santiy.test.js +24 -0
- package/deps/jq/docs/default_manpage.md +0 -22
- package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.css +0 -1058
- package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.min.css +0 -9
- package/deps/jq/docs/public/bootstrap/css/bootstrap.css +0 -5224
- package/deps/jq/docs/public/bootstrap/css/bootstrap.min.css +0 -9
- package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
- package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings.png +0 -0
- package/deps/jq/docs/public/bootstrap/js/bootstrap.js +0 -2027
- package/deps/jq/docs/public/bootstrap/js/bootstrap.min.js +0 -6
- package/deps/jq/docs/templates/shared/_header.liquid +0 -26
- package/deps/jq/jq.1.default +0 -39
- package/deps/jq/jv_file.c +0 -49
- package/deps/jq/libm.h +0 -160
- package/deps/jq/setup.sh +0 -33
- package/reports/jest-port-api.xml +0 -35
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
## Makefile.am for Oniguruma
|
|
2
|
+
|
|
3
|
+
ACLOCAL_AMFLAGS = -I m4
|
|
4
|
+
|
|
5
|
+
SUBDIRS = src test sample
|
|
6
|
+
|
|
7
|
+
EXTRA_DIST = oniguruma.pc.in HISTORY README.ja README.md \
|
|
8
|
+
index.html index_ja.html \
|
|
9
|
+
CMakeLists.txt dist.info oniguruma.pc.cmake.in cmake/dist.cmake \
|
|
10
|
+
src/config.h.cmake.in \
|
|
11
|
+
doc/API doc/API.ja doc/RE doc/RE.ja doc/FAQ doc/FAQ.ja \
|
|
12
|
+
doc/UNICODE_PROPERTIES \
|
|
13
|
+
src/Makefile.windows src/config.h.win32 src/config.h.win64 \
|
|
14
|
+
windows/testc.c contributed/libfuzzer-onig.cpp
|
|
15
|
+
|
|
16
|
+
bin_SCRIPTS = onig-config
|
|
17
|
+
|
|
18
|
+
onig-config: onig-config.in
|
|
19
|
+
|
|
20
|
+
do_subst = sed \
|
|
21
|
+
-e 's,[@]datadir[@],$(datadir),g' \
|
|
22
|
+
-e 's,[@]datarootdir[@],$(datarootdir),g' \
|
|
23
|
+
-e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
|
|
24
|
+
-e 's,[@]prefix[@],$(prefix),g' \
|
|
25
|
+
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
|
|
26
|
+
-e 's,[@]libdir[@],$(libdir),g' \
|
|
27
|
+
-e 's,[@]includedir[@],$(includedir),g'
|
|
28
|
+
|
|
29
|
+
oniguruma.pc: $(srcdir)/oniguruma.pc.in Makefile
|
|
30
|
+
$(do_subst) < $(srcdir)/oniguruma.pc.in > $(@)
|
|
31
|
+
|
|
32
|
+
pkgconfigdir = $(libdir)/pkgconfig
|
|
33
|
+
pkgconfig_DATA = oniguruma.pc
|
|
File without changes
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
README 2016/05/06
|
|
2
|
+
|
|
3
|
+
Oniguruma ---- (C) K.Kosako <kkosako0@gmail.com>
|
|
4
|
+
|
|
5
|
+
https://github.com/kkos/oniguruma
|
|
6
|
+
|
|
7
|
+
Oniguruma is a regular expressions library.
|
|
8
|
+
The characteristics of this library is that different character encoding
|
|
9
|
+
for every regular expression object can be specified.
|
|
10
|
+
|
|
11
|
+
Supported character encodings:
|
|
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: contributed by KUBO Takehiro
|
|
21
|
+
* CP1251: contributed by Byte
|
|
22
|
+
------------------------------------------------------------
|
|
23
|
+
|
|
24
|
+
License
|
|
25
|
+
|
|
26
|
+
BSD license.
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Install
|
|
30
|
+
|
|
31
|
+
Case 1: Unix and Cygwin platform
|
|
32
|
+
|
|
33
|
+
1. autoreconf -vfi (* case: configure script is not found.)
|
|
34
|
+
|
|
35
|
+
2. ./configure
|
|
36
|
+
3. make
|
|
37
|
+
4. make install
|
|
38
|
+
|
|
39
|
+
* uninstall
|
|
40
|
+
|
|
41
|
+
make uninstall
|
|
42
|
+
|
|
43
|
+
* configuration check
|
|
44
|
+
|
|
45
|
+
onig-config --cflags
|
|
46
|
+
onig-config --libs
|
|
47
|
+
onig-config --prefix
|
|
48
|
+
onig-config --exec-prefix
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
Case 2: Windows 64/32bit platform (Visual Studio)
|
|
53
|
+
|
|
54
|
+
execute make_win64 or make_win32
|
|
55
|
+
|
|
56
|
+
src/onig_s.lib: static link library
|
|
57
|
+
src/onig.dll: dynamic link library
|
|
58
|
+
|
|
59
|
+
* test (ASCII/Shift_JIS)
|
|
60
|
+
1. cd src
|
|
61
|
+
2. copy ..\windows\testc.c .
|
|
62
|
+
3. nmake -f Makefile.windows ctest
|
|
63
|
+
|
|
64
|
+
(I have checked by Visual Studio Community 2015)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
Regular Expressions
|
|
69
|
+
|
|
70
|
+
See doc/RE (or doc/RE.ja for Japanese).
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
Usage
|
|
74
|
+
|
|
75
|
+
Include oniguruma.h in your program. (Oniguruma API)
|
|
76
|
+
See doc/API for Oniguruma API.
|
|
77
|
+
|
|
78
|
+
If you want to disable UChar type (== unsigned char) definition
|
|
79
|
+
in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
|
|
80
|
+
include oniguruma.h.
|
|
81
|
+
|
|
82
|
+
If you want to disable regex_t type definition in oniguruma.h,
|
|
83
|
+
define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.
|
|
84
|
+
|
|
85
|
+
Example of the compiling/linking command line in Unix or Cygwin,
|
|
86
|
+
(prefix == /usr/local case)
|
|
87
|
+
|
|
88
|
+
cc sample.c -L/usr/local/lib -lonig
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
If you want to use static link library(onig_s.lib) in Win32,
|
|
92
|
+
add option -DONIG_EXTERN=extern to C compiler.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Sample Programs
|
|
97
|
+
|
|
98
|
+
sample/simple.c example of the minimum (Oniguruma API)
|
|
99
|
+
sample/names.c example of the named group callback.
|
|
100
|
+
sample/encode.c example of some encodings.
|
|
101
|
+
sample/listcap.c example of the capture history.
|
|
102
|
+
sample/posix.c POSIX API sample.
|
|
103
|
+
sample/sql.c example of the variable meta characters.
|
|
104
|
+
(SQL-like pattern matching)
|
|
105
|
+
sample/user_property.c example of user defined Unicode property.
|
|
106
|
+
|
|
107
|
+
Test Programs
|
|
108
|
+
sample/syntax.c Perl, Java and ASIS syntax test.
|
|
109
|
+
sample/crnl.c --enable-crnl-as-line-terminator test
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
Source Files
|
|
113
|
+
|
|
114
|
+
oniguruma.h Oniguruma API header file. (public)
|
|
115
|
+
onig-config.in configuration check program template.
|
|
116
|
+
|
|
117
|
+
regenc.h character encodings framework header file.
|
|
118
|
+
regint.h internal definitions
|
|
119
|
+
regparse.h internal definitions for regparse.c and regcomp.c
|
|
120
|
+
regcomp.c compiling and optimization functions
|
|
121
|
+
regenc.c character encodings framework.
|
|
122
|
+
regerror.c error message function
|
|
123
|
+
regext.c extended API functions. (deluxe version API)
|
|
124
|
+
regexec.c search and match functions
|
|
125
|
+
regparse.c parsing functions.
|
|
126
|
+
regsyntax.c pattern syntax functions and built-in syntax definitions.
|
|
127
|
+
regtrav.c capture history tree data traverse functions.
|
|
128
|
+
regversion.c version info function.
|
|
129
|
+
st.h hash table functions header file
|
|
130
|
+
st.c hash table functions
|
|
131
|
+
|
|
132
|
+
oniggnu.h GNU regex API header file. (public)
|
|
133
|
+
reggnu.c GNU regex API functions
|
|
134
|
+
|
|
135
|
+
onigposix.h POSIX API header file. (public)
|
|
136
|
+
regposerr.c POSIX error message function.
|
|
137
|
+
regposix.c POSIX API functions.
|
|
138
|
+
|
|
139
|
+
mktable.c character type table generator.
|
|
140
|
+
ascii.c ASCII encoding.
|
|
141
|
+
euc_jp.c EUC-JP encoding.
|
|
142
|
+
euc_tw.c EUC-TW encoding.
|
|
143
|
+
euc_kr.c EUC-KR, EUC-CN encoding.
|
|
144
|
+
sjis.c Shift_JIS encoding.
|
|
145
|
+
big5.c Big5 encoding.
|
|
146
|
+
gb18030.c GB18030 encoding.
|
|
147
|
+
koi8.c KOI8 encoding.
|
|
148
|
+
koi8_r.c KOI8-R encoding.
|
|
149
|
+
cp1251.c CP1251 encoding.
|
|
150
|
+
iso8859_1.c ISO-8859-1 encoding. (Latin-1)
|
|
151
|
+
iso8859_2.c ISO-8859-2 encoding. (Latin-2)
|
|
152
|
+
iso8859_3.c ISO-8859-3 encoding. (Latin-3)
|
|
153
|
+
iso8859_4.c ISO-8859-4 encoding. (Latin-4)
|
|
154
|
+
iso8859_5.c ISO-8859-5 encoding. (Cyrillic)
|
|
155
|
+
iso8859_6.c ISO-8859-6 encoding. (Arabic)
|
|
156
|
+
iso8859_7.c ISO-8859-7 encoding. (Greek)
|
|
157
|
+
iso8859_8.c ISO-8859-8 encoding. (Hebrew)
|
|
158
|
+
iso8859_9.c ISO-8859-9 encoding. (Latin-5 or Turkish)
|
|
159
|
+
iso8859_10.c ISO-8859-10 encoding. (Latin-6 or Nordic)
|
|
160
|
+
iso8859_11.c ISO-8859-11 encoding. (Thai)
|
|
161
|
+
iso8859_13.c ISO-8859-13 encoding. (Latin-7 or Baltic Rim)
|
|
162
|
+
iso8859_14.c ISO-8859-14 encoding. (Latin-8 or Celtic)
|
|
163
|
+
iso8859_15.c ISO-8859-15 encoding. (Latin-9 or West European with Euro)
|
|
164
|
+
iso8859_16.c ISO-8859-16 encoding.
|
|
165
|
+
(Latin-10 or South-Eastern European with Euro)
|
|
166
|
+
utf8.c UTF-8 encoding.
|
|
167
|
+
utf16_be.c UTF-16BE encoding.
|
|
168
|
+
utf16_le.c UTF-16LE encoding.
|
|
169
|
+
utf32_be.c UTF-32BE encoding.
|
|
170
|
+
utf32_le.c UTF-32LE encoding.
|
|
171
|
+
unicode.c common codes of Unicode encoding.
|
|
172
|
+
|
|
173
|
+
win32/Makefile Makefile for Win32 (VC++)
|
|
174
|
+
win32/config.h config.h for Win32
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
ToDo
|
|
179
|
+
|
|
180
|
+
? case fold flag: Katakana <-> Hiragana.
|
|
181
|
+
? add ONIG_OPTION_NOTBOS/NOTEOS. (\A, \z, \Z)
|
|
182
|
+
?? \X (== \PM\pM*)
|
|
183
|
+
?? implement syntax behavior ONIG_SYN_CONTEXT_INDEP_ANCHORS.
|
|
184
|
+
?? transmission stopper. (return ONIG_STOP from match_at())
|
|
185
|
+
|
|
186
|
+
and I'm thankful to Akinori MUSHA.
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
Mail Address: K.Kosako <kkosako0@gmail.com>
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
README.ja 2016/05/06
|
|
2
|
+
|
|
3
|
+
���� ---- (C) K.Kosako <kkosako0@gmail.com>
|
|
4
|
+
|
|
5
|
+
https://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
|
+
��������: 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
|
+
��������: 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.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 �����ǥ���
|
|
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
|
+
|
|
183
|
+
|
|
184
|
+
�ķ�
|
|
185
|
+
|
|
186
|
+
? case fold flag: Katakana <-> Hiragana
|
|
187
|
+
? ONIG_OPTION_NOTBOS/NOTEOS�ɲ� (\A, \z, \Z)
|
|
188
|
+
?? \X (== \PM\pM*)
|
|
189
|
+
?? ʸˡ���� ONIG_SYN_CONTEXT_INDEP_ANCHORS�μ���
|
|
190
|
+
?? �������ְ�ư��߱黻�� (match_at()����ONIG_STOP���֤�)
|
|
191
|
+
|
|
192
|
+
and I'm thankful to Akinori MUSHA.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
���ɥ쥹: K.Kosako <kkosako0@gmail.com>
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Oniguruma
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
https://github.com/kkos/oniguruma
|
|
5
|
+
|
|
6
|
+
Oniguruma is a regular expressions library.
|
|
7
|
+
The characteristics of this library is that different character encoding
|
|
8
|
+
for every regular expression object can be specified.
|
|
9
|
+
|
|
10
|
+
Supported character encodings:
|
|
11
|
+
|
|
12
|
+
ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
|
|
13
|
+
EUC-JP, EUC-TW, EUC-KR, EUC-CN,
|
|
14
|
+
Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
|
|
15
|
+
ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
|
|
16
|
+
ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
|
|
17
|
+
ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
|
|
18
|
+
|
|
19
|
+
* GB18030: contributed by KUBO Takehiro
|
|
20
|
+
* CP1251: contributed by Byte
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
New feature of version 6.1.2
|
|
24
|
+
--------------------------
|
|
25
|
+
|
|
26
|
+
* allow word bound, word begin and word end in look-behind.
|
|
27
|
+
* NEW option: ONIG_OPTION_CHECK_VALIDITY_OF_STRING
|
|
28
|
+
|
|
29
|
+
New feature of version 6.1
|
|
30
|
+
--------------------------
|
|
31
|
+
|
|
32
|
+
* improved doc/RE
|
|
33
|
+
* NEW API: onig_scan()
|
|
34
|
+
|
|
35
|
+
New feature of version 6.0
|
|
36
|
+
--------------------------
|
|
37
|
+
|
|
38
|
+
* Update Unicode 8.0 Property/Case-folding
|
|
39
|
+
* NEW API: onig_unicode_define_user_property()
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
License
|
|
43
|
+
-------
|
|
44
|
+
|
|
45
|
+
BSD license.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Install
|
|
49
|
+
-------
|
|
50
|
+
|
|
51
|
+
### Case 1: Unix and Cygwin platform
|
|
52
|
+
|
|
53
|
+
1. autoreconf -vfi (* case: configure script is not found.)
|
|
54
|
+
|
|
55
|
+
2. ./configure
|
|
56
|
+
3. make
|
|
57
|
+
4. make install
|
|
58
|
+
|
|
59
|
+
* uninstall
|
|
60
|
+
|
|
61
|
+
make uninstall
|
|
62
|
+
|
|
63
|
+
* configuration check
|
|
64
|
+
|
|
65
|
+
onig-config --cflags
|
|
66
|
+
onig-config --libs
|
|
67
|
+
onig-config --prefix
|
|
68
|
+
onig-config --exec-prefix
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Case 2: Windows 64/32bit platform (Visual Studio)
|
|
73
|
+
|
|
74
|
+
execute make_win64 or make_win32
|
|
75
|
+
|
|
76
|
+
onig_s.lib: static link library
|
|
77
|
+
onig.dll: dynamic link library
|
|
78
|
+
|
|
79
|
+
* test (ASCII/Shift_JIS)
|
|
80
|
+
|
|
81
|
+
1. cd src
|
|
82
|
+
2. copy ..\windows\testc.c .
|
|
83
|
+
3. nmake -f Makefile.windows ctest
|
|
84
|
+
|
|
85
|
+
(I have checked by Visual Studio Community 2015)
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
Regular Expressions
|
|
90
|
+
-------------------
|
|
91
|
+
|
|
92
|
+
See [doc/RE](doc/RE) or [doc/RE.ja](doc/RE.ja) for Japanese.
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
Usage
|
|
96
|
+
-----
|
|
97
|
+
|
|
98
|
+
Include oniguruma.h in your program. (Oniguruma API)
|
|
99
|
+
See doc/API for Oniguruma API.
|
|
100
|
+
|
|
101
|
+
If you want to disable UChar type (== unsigned char) definition
|
|
102
|
+
in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
|
|
103
|
+
include oniguruma.h.
|
|
104
|
+
|
|
105
|
+
If you want to disable regex_t type definition in oniguruma.h,
|
|
106
|
+
define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.
|
|
107
|
+
|
|
108
|
+
Example of the compiling/linking command line in Unix or Cygwin,
|
|
109
|
+
(prefix == /usr/local case)
|
|
110
|
+
|
|
111
|
+
cc sample.c -L/usr/local/lib -lonig
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
If you want to use static link library(onig_s.lib) in Win32,
|
|
115
|
+
add option -DONIG_EXTERN=extern to C compiler.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
Sample Programs
|
|
120
|
+
---------------
|
|
121
|
+
|
|
122
|
+
|File |Description |
|
|
123
|
+
|:---------------------|:-----------------------------------------|
|
|
124
|
+
|sample/simple.c |example of the minimum (Oniguruma API) |
|
|
125
|
+
|sample/names.c |example of the named group callback. |
|
|
126
|
+
|sample/encode.c |example of some encodings. |
|
|
127
|
+
|sample/listcap.c |example of the capture history. |
|
|
128
|
+
|sample/posix.c |POSIX API sample. |
|
|
129
|
+
|sample/scan.c |example of using onig_scan(). |
|
|
130
|
+
|sample/sql.c |example of the variable meta characters. |
|
|
131
|
+
|sample/user_property.c|example of user defined Unicode property. |
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
Test Programs
|
|
135
|
+
|
|
136
|
+
|File |Description |
|
|
137
|
+
|:------------------|:--------------------------------------|
|
|
138
|
+
|sample/syntax.c |Perl, Java and ASIS syntax test. |
|
|
139
|
+
|sample/crnl.c |--enable-crnl-as-line-terminator test |
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
Source Files
|
|
144
|
+
------------
|
|
145
|
+
|
|
146
|
+
|File |Description |
|
|
147
|
+
|:------------------|:-------------------------------------------------------|
|
|
148
|
+
|oniguruma.h |Oniguruma API header file (public) |
|
|
149
|
+
|onig-config.in |configuration check program template |
|
|
150
|
+
|regenc.h |character encodings framework header file |
|
|
151
|
+
|regint.h |internal definitions |
|
|
152
|
+
|regparse.h |internal definitions for regparse.c and regcomp.c |
|
|
153
|
+
|regcomp.c |compiling and optimization functions |
|
|
154
|
+
|regenc.c |character encodings framework |
|
|
155
|
+
|regerror.c |error message function |
|
|
156
|
+
|regext.c |extended API functions (deluxe version API) |
|
|
157
|
+
|regexec.c |search and match functions |
|
|
158
|
+
|regparse.c |parsing functions. |
|
|
159
|
+
|regsyntax.c |pattern syntax functions and built-in syntax definitions|
|
|
160
|
+
|regtrav.c |capture history tree data traverse functions |
|
|
161
|
+
|regversion.c |version info function |
|
|
162
|
+
|st.h |hash table functions header file |
|
|
163
|
+
|st.c |hash table functions |
|
|
164
|
+
|oniggnu.h |GNU regex API header file (public) |
|
|
165
|
+
|reggnu.c |GNU regex API functions |
|
|
166
|
+
|onigposix.h |POSIX API header file (public) |
|
|
167
|
+
|regposerr.c |POSIX error message function |
|
|
168
|
+
|regposix.c |POSIX API functions |
|
|
169
|
+
|mktable.c |character type table generator |
|
|
170
|
+
|ascii.c |ASCII encoding |
|
|
171
|
+
|euc_jp.c |EUC-JP encoding |
|
|
172
|
+
|euc_tw.c |EUC-TW encoding |
|
|
173
|
+
|euc_kr.c |EUC-KR, EUC-CN encoding |
|
|
174
|
+
|sjis.c |Shift_JIS encoding |
|
|
175
|
+
|big5.c |Big5 encoding |
|
|
176
|
+
|gb18030.c |GB18030 encoding |
|
|
177
|
+
|koi8.c |KOI8 encoding |
|
|
178
|
+
|koi8_r.c |KOI8-R encoding |
|
|
179
|
+
|cp1251.c |CP1251 encoding |
|
|
180
|
+
|iso8859_1.c |ISO-8859-1 (Latin-1) |
|
|
181
|
+
|iso8859_2.c |ISO-8859-2 (Latin-2) |
|
|
182
|
+
|iso8859_3.c |ISO-8859-3 (Latin-3) |
|
|
183
|
+
|iso8859_4.c |ISO-8859-4 (Latin-4) |
|
|
184
|
+
|iso8859_5.c |ISO-8859-5 (Cyrillic) |
|
|
185
|
+
|iso8859_6.c |ISO-8859-6 (Arabic) |
|
|
186
|
+
|iso8859_7.c |ISO-8859-7 (Greek) |
|
|
187
|
+
|iso8859_8.c |ISO-8859-8 (Hebrew) |
|
|
188
|
+
|iso8859_9.c |ISO-8859-9 (Latin-5 or Turkish) |
|
|
189
|
+
|iso8859_10.c |ISO-8859-10 (Latin-6 or Nordic) |
|
|
190
|
+
|iso8859_11.c |ISO-8859-11 (Thai) |
|
|
191
|
+
|iso8859_13.c |ISO-8859-13 (Latin-7 or Baltic Rim) |
|
|
192
|
+
|iso8859_14.c |ISO-8859-14 (Latin-8 or Celtic) |
|
|
193
|
+
|iso8859_15.c |ISO-8859-15 (Latin-9 or West European with Euro) |
|
|
194
|
+
|iso8859_16.c |ISO-8859-16 (Latin-10) |
|
|
195
|
+
|utf8.c |UTF-8 encoding |
|
|
196
|
+
|utf16_be.c |UTF-16BE encoding |
|
|
197
|
+
|utf16_le.c |UTF-16LE encoding |
|
|
198
|
+
|utf32_be.c |UTF-32BE encoding |
|
|
199
|
+
|utf32_le.c |UTF-32LE encoding |
|
|
200
|
+
|unicode.c |common codes of Unicode encoding |
|
|
201
|
+
|unicode_fold_data.c|Unicode folding data |
|
|
202
|
+
|win32/Makefile |Makefile for Win32 (VC++) |
|
|
203
|
+
|win32/config.h |config.h for Win32 |
|