@port-labs/jq-node-bindings 0.0.13 → 0.0.15-dev1
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/README.md +6 -1
- package/binding.gyp +41 -19
- package/configure +1 -1
- package/deps/jq/.gitattributes +12 -0
- package/deps/jq/AUTHORS +149 -43
- package/deps/jq/COPYING +75 -1
- package/deps/jq/ChangeLog +2 -2
- package/deps/jq/Makefile.am +106 -65
- package/deps/jq/NEWS.md +391 -0
- package/deps/jq/README.md +54 -52
- package/deps/jq/SECURITY.md +7 -0
- package/deps/jq/compile-ios.sh +106 -102
- package/deps/jq/configure.ac +72 -59
- package/deps/jq/docs/Pipfile +14 -0
- package/deps/jq/docs/Pipfile.lock +415 -0
- package/deps/jq/docs/README.md +15 -14
- package/deps/jq/docs/build_manpage.py +251 -0
- package/deps/jq/docs/build_mantests.py +21 -0
- package/deps/jq/docs/build_website.py +95 -0
- package/deps/jq/docs/content/download/default.yml +249 -0
- package/deps/jq/docs/content/index.yml +83 -0
- package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
- package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
- package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
- package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
- package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
- package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
- package/deps/jq/docs/content/tutorial/default.yml +337 -0
- package/deps/jq/docs/manual_schema.yml +60 -0
- package/deps/jq/docs/public/css/style.css +99 -0
- package/deps/jq/docs/public/icon.png +0 -0
- package/deps/jq/docs/public/icon.svg +1 -0
- package/deps/jq/docs/public/jq.svg +1 -0
- package/deps/jq/docs/public/js/manual-search.js +31 -49
- package/deps/jq/docs/templates/default.html.j2 +31 -0
- package/deps/jq/docs/templates/index.html.j2 +58 -0
- package/deps/jq/docs/templates/manual.html.j2 +120 -0
- package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
- package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
- package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
- package/deps/jq/docs/validate_manual_schema.py +19 -0
- package/deps/jq/jq.1.prebuilt +1102 -294
- package/deps/jq/jq.spec +2 -3
- package/deps/jq/libjq.pc.in +11 -0
- package/deps/jq/m4/ax_pthread.m4 +522 -0
- package/deps/jq/modules/oniguruma/.travis.yml +17 -0
- package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
- package/deps/jq/modules/oniguruma/COPYING +23 -25
- package/deps/jq/modules/oniguruma/HISTORY +368 -23
- package/deps/jq/modules/oniguruma/Makefile.am +61 -7
- package/deps/jq/modules/oniguruma/README +34 -20
- package/deps/jq/modules/oniguruma/README.md +106 -33
- package/deps/jq/modules/oniguruma/README_japanese +183 -0
- package/deps/jq/modules/oniguruma/autogen.sh +9 -0
- package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
- package/deps/jq/modules/oniguruma/configure.ac +66 -55
- package/deps/jq/modules/oniguruma/doc/API +485 -42
- package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
- package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
- package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
- package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
- package/deps/jq/modules/oniguruma/doc/RE +223 -63
- package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
- package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
- package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
- package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
- package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
- package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
- package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
- package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
- package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
- package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
- package/deps/jq/modules/oniguruma/index.html +16 -5
- package/deps/jq/modules/oniguruma/index_ja.html +16 -5
- package/deps/jq/modules/oniguruma/make_win.bat +5 -0
- package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
- package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
- package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
- package/deps/jq/modules/oniguruma/onig-config.in +1 -1
- package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
- package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
- package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
- package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
- package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
- package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
- package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
- package/deps/jq/modules/oniguruma/sample/count.c +125 -0
- package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
- package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
- package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
- package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
- package/deps/jq/modules/oniguruma/sample/names.c +10 -6
- package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
- package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
- package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
- package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
- package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
- package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
- package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
- package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
- package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
- package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
- package/deps/jq/modules/oniguruma/src/big5.c +25 -15
- package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
- package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
- package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
- package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
- package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
- package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
- package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
- package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
- package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
- package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
- package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
- package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
- package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
- package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
- package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
- package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
- package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
- package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
- package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
- package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
- package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
- package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
- package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
- package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
- package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
- package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
- package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
- package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
- package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
- package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
- package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
- package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
- package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
- package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
- package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
- package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
- package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
- package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
- package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
- package/deps/jq/modules/oniguruma/src/regext.c +8 -8
- package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
- package/deps/jq/modules/oniguruma/src/regint.h +757 -491
- package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
- package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
- package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
- package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
- package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
- package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
- package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
- package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
- package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
- package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
- package/deps/jq/modules/oniguruma/src/st.c +248 -249
- package/deps/jq/modules/oniguruma/src/st.h +4 -5
- package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
- package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
- package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
- package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
- package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
- package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
- package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
- package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
- package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
- package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
- package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
- package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
- package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
- package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
- package/deps/jq/modules/oniguruma/test/test.sh +17 -0
- package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
- package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
- package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
- package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
- package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
- package/deps/jq/modules/oniguruma/test/testc.c +128 -88
- package/deps/jq/modules/oniguruma/test/testp.c +613 -0
- package/deps/jq/modules/oniguruma/test/testu.c +75 -28
- package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
- package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
- package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
- package/deps/jq/modules/oniguruma/tis.config +1336 -0
- package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
- package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
- package/deps/jq/scripts/update-website +6 -5
- package/deps/jq/scripts/version +10 -7
- package/deps/jq/sig/jq-release-new.key +29 -0
- package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
- package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
- package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
- package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
- package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
- package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
- package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
- package/deps/jq/src/builtin.c +537 -343
- package/deps/jq/src/builtin.h +18 -0
- package/deps/jq/src/builtin.jq +116 -143
- package/deps/jq/src/bytecode.h +8 -4
- package/deps/jq/src/compile.c +157 -143
- package/deps/jq/src/compile.h +3 -4
- package/deps/jq/src/decNumber/ICU-license.html +45 -0
- package/deps/jq/src/decNumber/decBasic.c +3908 -0
- package/deps/jq/src/decNumber/decCommon.c +1835 -0
- package/deps/jq/src/decNumber/decContext.c +437 -0
- package/deps/jq/src/decNumber/decContext.h +254 -0
- package/deps/jq/src/decNumber/decDPD.h +1185 -0
- package/deps/jq/src/decNumber/decDouble.c +140 -0
- package/deps/jq/src/decNumber/decDouble.h +155 -0
- package/deps/jq/src/decNumber/decNumber.c +8143 -0
- package/deps/jq/src/decNumber/decNumber.h +182 -0
- package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
- package/deps/jq/src/decNumber/decPacked.c +220 -0
- package/deps/jq/src/decNumber/decPacked.h +52 -0
- package/deps/jq/src/decNumber/decQuad.c +135 -0
- package/deps/jq/src/decNumber/decQuad.h +177 -0
- package/deps/jq/src/decNumber/decSingle.c +71 -0
- package/deps/jq/src/decNumber/decSingle.h +86 -0
- package/deps/jq/src/decNumber/decimal128.c +553 -0
- package/deps/jq/src/decNumber/decimal128.h +81 -0
- package/deps/jq/src/decNumber/decimal32.c +476 -0
- package/deps/jq/src/decNumber/decimal32.h +81 -0
- package/deps/jq/src/decNumber/decimal64.c +839 -0
- package/deps/jq/src/decNumber/decimal64.h +83 -0
- package/deps/jq/src/decNumber/decnumber.pdf +0 -0
- package/deps/jq/src/decNumber/example1.c +38 -0
- package/deps/jq/src/decNumber/example2.c +52 -0
- package/deps/jq/src/decNumber/example3.c +64 -0
- package/deps/jq/src/decNumber/example4.c +61 -0
- package/deps/jq/src/decNumber/example5.c +36 -0
- package/deps/jq/src/decNumber/example6.c +61 -0
- package/deps/jq/src/decNumber/example7.c +35 -0
- package/deps/jq/src/decNumber/example8.c +39 -0
- package/deps/jq/src/decNumber/readme.txt +81 -0
- package/deps/jq/src/exec_stack.h +5 -3
- package/deps/jq/src/execute.c +126 -44
- package/deps/jq/src/inject_errors.c +0 -2
- package/deps/jq/src/jq.h +10 -1
- package/deps/jq/src/jq_test.c +222 -11
- package/deps/jq/src/jv.c +807 -176
- package/deps/jq/src/jv.h +22 -1
- package/deps/jq/src/jv_alloc.c +33 -26
- package/deps/jq/src/jv_alloc.h +0 -11
- package/deps/jq/src/jv_aux.c +153 -67
- package/deps/jq/src/jv_dtoa.c +12 -2
- package/deps/jq/src/jv_dtoa_tsd.c +51 -0
- package/deps/jq/src/jv_dtoa_tsd.h +4 -0
- package/deps/jq/src/jv_parse.c +70 -15
- package/deps/jq/src/jv_print.c +56 -60
- package/deps/jq/src/jv_private.h +7 -0
- package/deps/jq/src/jv_thread.h +76 -0
- package/deps/jq/src/jv_unicode.c +18 -0
- package/deps/jq/src/jv_unicode.h +2 -0
- package/deps/jq/src/lexer.c +782 -543
- package/deps/jq/src/lexer.h +438 -64
- package/deps/jq/src/lexer.l +10 -3
- package/deps/jq/src/libm.h +16 -6
- package/deps/jq/src/linker.c +97 -40
- package/deps/jq/src/locfile.c +2 -1
- package/deps/jq/src/main.c +384 -336
- package/deps/jq/src/opcode_list.h +5 -2
- package/deps/jq/src/parser.c +2260 -1898
- package/deps/jq/src/parser.h +115 -98
- package/deps/jq/src/parser.y +124 -89
- package/deps/jq/src/util.c +854 -55
- package/deps/jq/src/util.h +6 -4
- package/deps/jq/tests/jq.test +762 -26
- package/deps/jq/tests/jq_fuzz_compile.c +27 -0
- package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
- package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
- package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
- package/deps/jq/tests/jq_fuzz_parse.c +21 -0
- package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
- package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
- package/deps/jq/tests/local.supp +14 -0
- package/deps/jq/tests/man.test +979 -0
- package/deps/jq/tests/manonig.test +76 -0
- package/deps/jq/tests/manonigtest +5 -0
- package/deps/jq/tests/mantest +1 -2
- package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
- package/deps/jq/tests/modules/shadow1.jq +2 -0
- package/deps/jq/tests/modules/shadow2.jq +1 -0
- package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
- package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
- package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
- package/deps/jq/tests/no-main-program.jq +1 -0
- package/deps/jq/tests/onig.test +77 -2
- package/deps/jq/tests/setup +7 -2
- package/deps/jq/tests/shtest +478 -59
- package/deps/jq/tests/uri.test +38 -0
- package/deps/jq/tests/uritest +5 -0
- package/deps/jq/tests/yes-main-program.jq +2 -0
- package/lib/index.js +3 -0
- package/lib/jq.js +15 -1
- package/lib/templateAsync.js +137 -0
- package/package.json +7 -7
- package/src/binding.cc +623 -146
- package/src/binding.h +3 -4
- package/test/santiy-async.test.js +171 -0
- package/test/santiy.test.js +2 -2
- package/test/template-async.test.js +182 -0
- package/test/template.test.js +3 -3
- package/deps/jq/.travis.yml +0 -202
- package/deps/jq/NEWS +0 -89
- package/deps/jq/appveyor.yml +0 -53
- package/deps/jq/docs/Gemfile +0 -7
- package/deps/jq/docs/Gemfile.lock +0 -63
- package/deps/jq/docs/Rakefile +0 -24
- package/deps/jq/docs/Rakefile.manual +0 -49
- package/deps/jq/docs/Rakefile.website +0 -76
- package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
- package/deps/jq/docs/content/2.download/default.yml +0 -193
- package/deps/jq/docs/content/index/index.yml +0 -73
- package/deps/jq/docs/public/css/base.scss +0 -181
- package/deps/jq/docs/public/jq.png +0 -0
- package/deps/jq/docs/site.yml +0 -9
- package/deps/jq/docs/templates/default.liquid +0 -34
- package/deps/jq/docs/templates/index.liquid +0 -73
- package/deps/jq/docs/templates/manual.liquid +0 -99
- package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
- package/deps/jq/docs/templates/shared/_head.liquid +0 -17
- package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
- package/deps/jq/modules/oniguruma/README.ja +0 -195
- package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
- package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
- package/deps/jq/modules/oniguruma/dist.info +0 -10
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
- /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
- /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
README
|
|
1
|
+
README 2018/04/05
|
|
2
2
|
|
|
3
|
-
Oniguruma ---- (C) K.Kosako
|
|
3
|
+
Oniguruma ---- (C) K.Kosako
|
|
4
4
|
|
|
5
5
|
https://github.com/kkos/oniguruma
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
FIXED 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
|
+
---
|
|
12
|
+
Oniguruma is a modern and flexible regular expressions library. It
|
|
13
|
+
encompasses features from different regular expression implementations
|
|
14
|
+
that traditionally exist in different languages. It comes close to
|
|
15
|
+
being a complete superset of all regular expression features found
|
|
16
|
+
in other regular expression implementations.
|
|
17
|
+
|
|
18
|
+
Its 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
|
|
10
28
|
|
|
11
29
|
Supported character encodings:
|
|
12
30
|
|
|
@@ -28,7 +46,15 @@ License
|
|
|
28
46
|
|
|
29
47
|
Install
|
|
30
48
|
|
|
31
|
-
Case 1:
|
|
49
|
+
Case 1: Linux distribution packages
|
|
50
|
+
|
|
51
|
+
* Fedora: dnf install oniguruma-devel
|
|
52
|
+
* RHEL/CentOS: yum install oniguruma
|
|
53
|
+
* Debian/Ubuntu: apt install libonig5
|
|
54
|
+
* Arch: pacman -S oniguruma
|
|
55
|
+
* openSUSE: zypper install oniguruma
|
|
56
|
+
|
|
57
|
+
Case 2: Manual compilation on Linux, Unix, and Cygwin platform
|
|
32
58
|
|
|
33
59
|
1. autoreconf -vfi (* case: configure script is not found.)
|
|
34
60
|
|
|
@@ -49,7 +75,7 @@ Install
|
|
|
49
75
|
|
|
50
76
|
|
|
51
77
|
|
|
52
|
-
Case
|
|
78
|
+
Case 3: Windows 64/32bit platform (Visual Studio)
|
|
53
79
|
|
|
54
80
|
execute make_win64 or make_win32
|
|
55
81
|
|
|
@@ -76,7 +102,7 @@ Usage
|
|
|
76
102
|
See doc/API for Oniguruma API.
|
|
77
103
|
|
|
78
104
|
If you want to disable UChar type (== unsigned char) definition
|
|
79
|
-
in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
|
|
105
|
+
in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
|
|
80
106
|
include oniguruma.h.
|
|
81
107
|
|
|
82
108
|
If you want to disable regex_t type definition in oniguruma.h,
|
|
@@ -174,16 +200,4 @@ Source Files
|
|
|
174
200
|
win32/config.h config.h for Win32
|
|
175
201
|
|
|
176
202
|
|
|
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
203
|
and I'm thankful to Akinori MUSHA.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
Mail Address: K.Kosako <kkosako0@gmail.com>
|
|
@@ -1,11 +1,20 @@
|
|
|
1
|
+
[](https://travis-ci.org/kkos/oniguruma)
|
|
2
|
+
[](https://oss-fuzz-build-logs.storage.googleapis.com/index.html#oniguruma)
|
|
3
|
+
[](https://ci.trust-in-soft.com/projects/kkos/oniguruma)
|
|
4
|
+
|
|
1
5
|
Oniguruma
|
|
2
6
|
=========
|
|
3
7
|
|
|
8
|
+
## **Since 2020, Oniguruma has been under attack on Google search in Japan.** [(Issue #234)](https://github.com/kkos/oniguruma/issues/234)
|
|
9
|
+
|
|
10
|
+
|
|
4
11
|
https://github.com/kkos/oniguruma
|
|
5
12
|
|
|
6
|
-
Oniguruma is a regular expressions library.
|
|
7
|
-
|
|
8
|
-
|
|
13
|
+
Oniguruma is a modern and flexible regular expressions library. It
|
|
14
|
+
encompasses features from different regular expression implementations
|
|
15
|
+
that traditionally exist in different languages.
|
|
16
|
+
|
|
17
|
+
Character encoding can be specified per regular expression object.
|
|
9
18
|
|
|
10
19
|
Supported character encodings:
|
|
11
20
|
|
|
@@ -18,25 +27,70 @@ Supported character encodings:
|
|
|
18
27
|
|
|
19
28
|
* GB18030: contributed by KUBO Takehiro
|
|
20
29
|
* CP1251: contributed by Byte
|
|
30
|
+
* doc/SYNTAX.md: contributed by seanofw
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Notice (from 6.9.6)
|
|
34
|
+
-------------------
|
|
35
|
+
When using configure script, if you have the POSIX API enabled in an earlier version (disabled by default in 6.9.5) and you need application binary compatibility with the POSIX API, specify "--enable-binary-compatible-posix-api=yes" instead of "--enable-posix-api=yes". Starting in 6.9.6, "--enable-posix-api=yes" only supports source-level compatibility for 6.9.5 and earlier about POSIX API. (Issue #210)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
Master branch
|
|
39
|
+
-------------
|
|
40
|
+
* Update Unicode version 15.0.0
|
|
41
|
+
* NEW API: ONIG_OPTION_MATCH_WHOLE_STRING
|
|
42
|
+
* Fixed: (?I) option was not enabled for character classes (Issue #264).
|
|
43
|
+
* Changed specification to check for incorrect POSIX bracket (Issue #253).
|
|
44
|
+
* Changed [[:punct:]] in Unicode encodings to be compatible with POSIX definition. (Issue #268)
|
|
45
|
+
* Fixed: ONIG_OPTION_FIND_LONGEST behavior
|
|
46
|
+
|
|
21
47
|
|
|
48
|
+
Version 6.9.8
|
|
49
|
+
-------------
|
|
50
|
+
* Update Unicode version 14.0.0
|
|
51
|
+
* Whole options
|
|
52
|
+
* (?C) : ONIG_OPTION_DONT_CAPTURE_GROUP
|
|
53
|
+
* (?I) : ONIG_OPTION_IGNORECASE_IS_ASCII
|
|
54
|
+
* (?L) : ONIG_OPTION_FIND_LONGEST
|
|
55
|
+
* Fixed some problems found by OSS-Fuzz
|
|
22
56
|
|
|
23
|
-
New feature of version 6.1.2
|
|
24
|
-
--------------------------
|
|
25
57
|
|
|
26
|
-
|
|
27
|
-
|
|
58
|
+
Version 6.9.7
|
|
59
|
+
-------------
|
|
60
|
+
* NEW API: ONIG_OPTION_CALLBACK_EACH_MATCH
|
|
61
|
+
* NEW API: ONIG_OPTION_IGNORECASE_IS_ASCII
|
|
62
|
+
* NEW API: ONIG_SYNTAX_PYTHON
|
|
63
|
+
* Fixed some problems found by OSS-Fuzz
|
|
28
64
|
|
|
29
|
-
New feature of version 6.1
|
|
30
|
-
--------------------------
|
|
31
65
|
|
|
32
|
-
|
|
33
|
-
|
|
66
|
+
Version 6.9.6
|
|
67
|
+
-------------
|
|
68
|
+
* NEW: configure option --enable-binary-compatible-posix-api=[yes/no]
|
|
69
|
+
* NEW API: Limiting the maximum number of calls of subexp-call
|
|
70
|
+
* NEW API: ONIG_OPTION_NOT_BEGIN_STRING / NOT_END_STRING / NOT_BEGIN_POSITION
|
|
71
|
+
* Fixed behavior of ONIG_OPTION_NOTBOL / NOTEOL
|
|
72
|
+
* Fixed many problems found by OSS-Fuzz
|
|
73
|
+
* Fixed many problems found by Coverity
|
|
74
|
+
* Fixed CVE-2020-26159 (This turned out not to be a problem later. #221)
|
|
75
|
+
* Under cygwin and mingw, generate and install the libonig.def file (Issue #220)
|
|
34
76
|
|
|
35
|
-
New feature of version 6.0
|
|
36
|
-
--------------------------
|
|
37
77
|
|
|
38
|
-
|
|
39
|
-
|
|
78
|
+
Version 6.9.5 revised 1
|
|
79
|
+
-----------------------
|
|
80
|
+
|
|
81
|
+
* Fixed Issue #192
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
Version 6.9.5
|
|
85
|
+
-------------
|
|
86
|
+
|
|
87
|
+
* POSIX API disabled by default for Unix (* Enabled by: configure --enable-posix-api=yes)
|
|
88
|
+
* Update Unicode version 13.0.0
|
|
89
|
+
* NEW: Code point sequence notation \x{HHHH HHHH ...}, \o{OOOO OOOO ...}
|
|
90
|
+
* NEW API: retry limit in search functions
|
|
91
|
+
* NEW API: maximum nesting level of subexp call
|
|
92
|
+
* Fixed behavior of isolated options in Perl and Java syntaxes. /...(?i).../
|
|
93
|
+
|
|
40
94
|
|
|
41
95
|
|
|
42
96
|
License
|
|
@@ -48,7 +102,15 @@ License
|
|
|
48
102
|
Install
|
|
49
103
|
-------
|
|
50
104
|
|
|
51
|
-
### Case 1:
|
|
105
|
+
### Case 1: Linux distribution packages
|
|
106
|
+
|
|
107
|
+
* Fedora: `dnf install oniguruma-devel`
|
|
108
|
+
* RHEL/CentOS: `yum install oniguruma`
|
|
109
|
+
* Debian/Ubuntu: `apt install libonig5`
|
|
110
|
+
* Arch: `pacman -S oniguruma`
|
|
111
|
+
* openSUSE: `zypper install oniguruma`
|
|
112
|
+
|
|
113
|
+
### Case 2: Manual compilation on Linux, Unix, and Cygwin platform
|
|
52
114
|
|
|
53
115
|
1. autoreconf -vfi (* case: configure script is not found.)
|
|
54
116
|
|
|
@@ -69,22 +131,30 @@ Install
|
|
|
69
131
|
|
|
70
132
|
|
|
71
133
|
|
|
72
|
-
### Case
|
|
134
|
+
### Case 3: Windows 64/32bit platform (Visual Studio)
|
|
73
135
|
|
|
74
|
-
|
|
136
|
+
* build library
|
|
137
|
+
|
|
138
|
+
.\make_win.bat
|
|
75
139
|
|
|
76
140
|
onig_s.lib: static link library
|
|
77
141
|
onig.dll: dynamic link library
|
|
78
142
|
|
|
79
|
-
* test
|
|
143
|
+
* make test programs
|
|
144
|
+
|
|
145
|
+
.\make_win.bat all-test
|
|
80
146
|
|
|
81
|
-
1. cd src
|
|
82
|
-
2. copy ..\windows\testc.c .
|
|
83
|
-
3. nmake -f Makefile.windows ctest
|
|
84
147
|
|
|
85
|
-
|
|
148
|
+
Alternatively, you can build and install oniguruma using [vcpkg](https://github.com/microsoft/vcpkg/) dependency manager:
|
|
86
149
|
|
|
150
|
+
1. git clone https://github.com/Microsoft/vcpkg.git
|
|
151
|
+
2. cd vcpkg
|
|
152
|
+
3. ./bootstrap-vcpkg.bat
|
|
153
|
+
4. ./vcpkg integrate install
|
|
154
|
+
5. ./vcpkg install oniguruma
|
|
87
155
|
|
|
156
|
+
The oniguruma port in vcpkg is kept up to date by microsoft team members and community contributors.
|
|
157
|
+
If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
|
|
88
158
|
|
|
89
159
|
Regular Expressions
|
|
90
160
|
-------------------
|
|
@@ -99,7 +169,7 @@ Usage
|
|
|
99
169
|
See doc/API for Oniguruma API.
|
|
100
170
|
|
|
101
171
|
If you want to disable UChar type (== unsigned char) definition
|
|
102
|
-
in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
|
|
172
|
+
in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
|
|
103
173
|
include oniguruma.h.
|
|
104
174
|
|
|
105
175
|
If you want to disable regex_t type definition in oniguruma.h,
|
|
@@ -121,14 +191,18 @@ Sample Programs
|
|
|
121
191
|
|
|
122
192
|
|File |Description |
|
|
123
193
|
|:---------------------|:-----------------------------------------|
|
|
194
|
+
|sample/callout.c |example of callouts |
|
|
195
|
+
|sample/count.c |example of built-in callout *COUNT |
|
|
196
|
+
|sample/echo.c |example of user defined callouts of name |
|
|
197
|
+
|sample/encode.c |example of some encodings |
|
|
198
|
+
|sample/listcap.c |example of the capture history |
|
|
199
|
+
|sample/names.c |example of the named group callback |
|
|
200
|
+
|sample/posix.c |POSIX API sample |
|
|
201
|
+
|sample/regset.c |example of using RegSet API |
|
|
202
|
+
|sample/scan.c |example of using onig_scan() |
|
|
124
203
|
|sample/simple.c |example of the minimum (Oniguruma API) |
|
|
125
|
-
|sample/
|
|
126
|
-
|sample/
|
|
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. |
|
|
204
|
+
|sample/sql.c |example of the variable meta characters |
|
|
205
|
+
|sample/user_property.c|example of user defined Unicode property |
|
|
132
206
|
|
|
133
207
|
|
|
134
208
|
Test Programs
|
|
@@ -199,5 +273,4 @@ Source Files
|
|
|
199
273
|
|utf32_le.c |UTF-32LE encoding |
|
|
200
274
|
|unicode.c |common codes of Unicode encoding |
|
|
201
275
|
|unicode_fold_data.c|Unicode folding data |
|
|
202
|
-
|
|
|
203
|
-
|win32/config.h |config.h for Win32 |
|
|
276
|
+
|windows/testc.c |Test program for Windows (VC++) |
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
README.ja 2017/08/25
|
|
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
|
+
ケース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.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
|
+
and I'm thankful to Akinori MUSHA.
|
|
@@ -1,31 +1,51 @@
|
|
|
1
1
|
dnl Process this file with autoconf to produce a configure script.
|
|
2
|
-
AC_INIT(onig, 6.
|
|
2
|
+
AC_INIT(onig, 6.9.8)
|
|
3
3
|
|
|
4
4
|
AC_CONFIG_MACRO_DIR([m4])
|
|
5
5
|
|
|
6
|
-
AM_INIT_AUTOMAKE([-Wno-portability
|
|
7
|
-
|
|
6
|
+
AM_INIT_AUTOMAKE([-Wno-portability])
|
|
7
|
+
AC_CONFIG_HEADERS([src/config.h])
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
AC_ARG_WITH([statistics],
|
|
11
|
+
[AS_HELP_STRING([--with-statistics],
|
|
12
|
+
[take matching time statistical data])],
|
|
13
|
+
AS_VAR_APPEND([CFLAGS], [" -DONIG_DEBUG_STATISTICS"]))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
dnl check for POSIX API
|
|
17
|
+
AC_ARG_ENABLE([posix-api],
|
|
18
|
+
[AS_HELP_STRING([--enable-posix-api],
|
|
19
|
+
[turn on to include POSIX API [default=no]])],
|
|
20
|
+
[\
|
|
21
|
+
case "${enableval}" in
|
|
22
|
+
yes) enable_posix_api=yes ;;
|
|
23
|
+
no) enable_posix_api=no ;;
|
|
24
|
+
*) AC_MSG_ERROR(bad value for --enable-posix-api) ;;
|
|
25
|
+
esac],
|
|
26
|
+
enable_posix_api=no)
|
|
27
|
+
|
|
28
|
+
dnl check for Binary compatible POSIX API
|
|
29
|
+
AC_ARG_ENABLE([binary-compatible-posix-api],
|
|
30
|
+
[AS_HELP_STRING([--enable-binary-compatible-posix-api],
|
|
31
|
+
[turn on to Binary compatible POSIX API [default=no]])],
|
|
32
|
+
[\
|
|
33
|
+
case "${enableval}" in
|
|
34
|
+
yes) enable_binary_compatible_posix_api=yes; enable_posix_api=yes ;;
|
|
35
|
+
no) enable_binary_compatible_posix_api=no ;;
|
|
36
|
+
*) AC_MSG_ERROR(bad value for --enable-binary-compatible-posix-api) ;;
|
|
37
|
+
esac],
|
|
38
|
+
enable_binary_compatible_posix_api=no)
|
|
39
|
+
|
|
40
|
+
AM_CONDITIONAL(ENABLE_BINARY_COMPATIBLE_POSIX_API, test x"${enable_binary_compatible_posix_api}" = xyes)
|
|
41
|
+
AM_CONDITIONAL(ENABLE_POSIX_API, test x"${enable_posix_api}" = xyes)
|
|
16
42
|
|
|
17
|
-
dnl check for COMBINATION_EXPLOSION
|
|
18
|
-
AC_ARG_ENABLE(combination-explosion-check,
|
|
19
|
-
[ --enable-combination-explosion-check enable combination explosion check],
|
|
20
|
-
[comb_expl_check=$enableval])
|
|
21
|
-
if test "${comb_expl_check}" = yes; then
|
|
22
|
-
AC_DEFINE(USE_COMBINATION_EXPLOSION_CHECK,1,[Define if combination explosion check])
|
|
23
|
-
fi
|
|
24
43
|
|
|
25
44
|
dnl check for CRNL_AS_LINE_TERMINATOR
|
|
26
|
-
AC_ARG_ENABLE(crnl-as-line-terminator,
|
|
27
|
-
|
|
28
|
-
|
|
45
|
+
AC_ARG_ENABLE([crnl-as-line-terminator],
|
|
46
|
+
[AS_HELP_STRING([--enable-crnl-as-line-terminator],
|
|
47
|
+
[deprecated])],
|
|
48
|
+
[crnl_as_line_terminator=$enableval])
|
|
29
49
|
if test "${crnl_as_line_terminator}" = yes; then
|
|
30
50
|
AC_DEFINE(USE_CRNL_AS_LINE_TERMINATOR,1,[Define if enable CR+NL as line terminator])
|
|
31
51
|
fi
|
|
@@ -33,8 +53,8 @@ fi
|
|
|
33
53
|
|
|
34
54
|
dnl Checks for programs.
|
|
35
55
|
AC_PROG_CC
|
|
36
|
-
|
|
37
|
-
LTVERSION="
|
|
56
|
+
LT_INIT
|
|
57
|
+
LTVERSION="8:0:3"
|
|
38
58
|
AC_SUBST(LTVERSION)
|
|
39
59
|
|
|
40
60
|
AC_PROG_INSTALL
|
|
@@ -43,45 +63,36 @@ AC_PROG_MAKE_SET
|
|
|
43
63
|
dnl Checks for libraries.
|
|
44
64
|
|
|
45
65
|
dnl Checks for header files.
|
|
46
|
-
|
|
47
|
-
AC_CHECK_HEADERS(stdlib.h string.h strings.h sys/time.h unistd.h sys/times.h)
|
|
66
|
+
AC_CHECK_HEADERS(sys/time.h unistd.h sys/times.h)
|
|
48
67
|
|
|
49
68
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
50
|
-
AC_CHECK_SIZEOF(int
|
|
51
|
-
AC_CHECK_SIZEOF(
|
|
52
|
-
AC_CHECK_SIZEOF(long
|
|
53
|
-
|
|
54
|
-
AC_HEADER_TIME
|
|
69
|
+
AC_CHECK_SIZEOF([int])
|
|
70
|
+
AC_CHECK_SIZEOF([long])
|
|
71
|
+
AC_CHECK_SIZEOF([long long])
|
|
72
|
+
AC_CHECK_SIZEOF([void*])
|
|
55
73
|
|
|
56
74
|
dnl Checks for library functions.
|
|
57
75
|
AC_FUNC_ALLOCA
|
|
58
|
-
AC_FUNC_MEMCMP
|
|
59
|
-
|
|
60
|
-
AC_CACHE_CHECK(for prototypes, _cv_have_prototypes,
|
|
61
|
-
[AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],
|
|
62
|
-
_cv_have_prototypes=yes,
|
|
63
|
-
_cv_have_prototypes=no)])
|
|
64
|
-
if test "$_cv_have_prototypes" = yes; then
|
|
65
|
-
AC_DEFINE(HAVE_PROTOTYPES,1,[Define if compilerr supports prototypes])
|
|
66
|
-
fi
|
|
67
76
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
77
|
+
AC_CONFIG_FILES([Makefile src/Makefile test/Makefile sample/Makefile onig-config])
|
|
78
|
+
AC_CONFIG_COMMANDS([default],[chmod +x onig-config],[])
|
|
79
|
+
|
|
80
|
+
# for Issue #220
|
|
81
|
+
LIBONIG_DEF_FILE=
|
|
82
|
+
FIX_TO_LDFLAGS=
|
|
83
|
+
case $host_os in
|
|
84
|
+
cygwin* | mingw* )
|
|
85
|
+
if test X"$enable_shared" = Xyes; then
|
|
86
|
+
LIBONIG_DEF_FILE=libonig.def
|
|
87
|
+
FIX_TO_LDFLAGS="-no-undefined"
|
|
88
|
+
fi
|
|
89
|
+
;;
|
|
90
|
+
esac
|
|
91
|
+
|
|
92
|
+
EXTRA_LIBONIG_LDFLAGS="$EXTRA_LIBONIG_LDFLAGS $FIX_TO_LDFLAGS"
|
|
93
|
+
AC_SUBST(EXTRA_LIBONIG_LDFLAGS)
|
|
85
94
|
|
|
95
|
+
AM_CONDITIONAL(USE_LIBONIG_DEF_FILE, test -n "${LIBONIG_DEF_FILE}")
|
|
96
|
+
AC_SUBST(LIBONIG_DEF_FILE)
|
|
86
97
|
|
|
87
|
-
AC_OUTPUT
|
|
98
|
+
AC_OUTPUT
|