@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
oniguruma.h - Oniguruma (regular expression library)
|
|
5
5
|
**********************************************************************/
|
|
6
6
|
/*-
|
|
7
|
-
* Copyright (c) 2002-
|
|
7
|
+
* Copyright (c) 2002-2022 K.Kosako
|
|
8
8
|
* All rights reserved.
|
|
9
9
|
*
|
|
10
10
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -35,30 +35,10 @@ extern "C" {
|
|
|
35
35
|
|
|
36
36
|
#define ONIGURUMA
|
|
37
37
|
#define ONIGURUMA_VERSION_MAJOR 6
|
|
38
|
-
#define ONIGURUMA_VERSION_MINOR
|
|
39
|
-
#define ONIGURUMA_VERSION_TEENY
|
|
38
|
+
#define ONIGURUMA_VERSION_MINOR 9
|
|
39
|
+
#define ONIGURUMA_VERSION_TEENY 8
|
|
40
40
|
|
|
41
|
-
#
|
|
42
|
-
# ifndef HAVE_PROTOTYPES
|
|
43
|
-
# define HAVE_PROTOTYPES 1
|
|
44
|
-
# endif
|
|
45
|
-
# ifndef HAVE_STDARG_PROTOTYPES
|
|
46
|
-
# define HAVE_STDARG_PROTOTYPES 1
|
|
47
|
-
# endif
|
|
48
|
-
#endif
|
|
49
|
-
|
|
50
|
-
/* escape Mac OS X/Xcode 2.4/gcc 4.0.1 problem */
|
|
51
|
-
#if defined(__APPLE__) && defined(__GNUC__) && __GNUC__ >= 4
|
|
52
|
-
# ifndef HAVE_STDARG_PROTOTYPES
|
|
53
|
-
# define HAVE_STDARG_PROTOTYPES 1
|
|
54
|
-
# endif
|
|
55
|
-
#endif
|
|
56
|
-
|
|
57
|
-
#ifdef HAVE_STDARG_H
|
|
58
|
-
# ifndef HAVE_STDARG_PROTOTYPES
|
|
59
|
-
# define HAVE_STDARG_PROTOTYPES 1
|
|
60
|
-
# endif
|
|
61
|
-
#endif
|
|
41
|
+
#define ONIGURUMA_VERSION_INT 60908
|
|
62
42
|
|
|
63
43
|
#ifndef P_
|
|
64
44
|
#if defined(__STDC__) || defined(_WIN32)
|
|
@@ -69,16 +49,13 @@ extern "C" {
|
|
|
69
49
|
#endif
|
|
70
50
|
|
|
71
51
|
#ifndef PV_
|
|
72
|
-
#ifdef HAVE_STDARG_PROTOTYPES
|
|
73
52
|
# define PV_(args) args
|
|
74
|
-
#else
|
|
75
|
-
# define PV_(args) ()
|
|
76
|
-
#endif
|
|
77
53
|
#endif
|
|
78
54
|
|
|
55
|
+
#ifndef ONIG_STATIC
|
|
79
56
|
#ifndef ONIG_EXTERN
|
|
80
57
|
#if defined(_WIN32) && !defined(__GNUC__)
|
|
81
|
-
#if defined(
|
|
58
|
+
#if defined(ONIGURUMA_EXPORT)
|
|
82
59
|
#define ONIG_EXTERN extern __declspec(dllexport)
|
|
83
60
|
#else
|
|
84
61
|
#define ONIG_EXTERN extern __declspec(dllimport)
|
|
@@ -89,6 +66,13 @@ extern "C" {
|
|
|
89
66
|
#ifndef ONIG_EXTERN
|
|
90
67
|
#define ONIG_EXTERN extern
|
|
91
68
|
#endif
|
|
69
|
+
#else
|
|
70
|
+
#define ONIG_EXTERN extern
|
|
71
|
+
#endif
|
|
72
|
+
|
|
73
|
+
#ifndef ONIG_VARIADIC_FUNC_ATTR
|
|
74
|
+
#define ONIG_VARIADIC_FUNC_ATTR
|
|
75
|
+
#endif
|
|
92
76
|
|
|
93
77
|
/* PART: character encoding */
|
|
94
78
|
|
|
@@ -96,10 +80,6 @@ extern "C" {
|
|
|
96
80
|
#define UChar OnigUChar
|
|
97
81
|
#endif
|
|
98
82
|
|
|
99
|
-
#ifdef _WIN32
|
|
100
|
-
#include <windows.h>
|
|
101
|
-
#endif
|
|
102
|
-
|
|
103
83
|
typedef unsigned int OnigCodePoint;
|
|
104
84
|
typedef unsigned char OnigUChar;
|
|
105
85
|
typedef unsigned int OnigCtype;
|
|
@@ -111,6 +91,7 @@ typedef unsigned int OnigCaseFoldType; /* case fold flag */
|
|
|
111
91
|
|
|
112
92
|
ONIG_EXTERN OnigCaseFoldType OnigDefaultCaseFoldFlag;
|
|
113
93
|
|
|
94
|
+
#define ONIGENC_CASE_FOLD_ASCII_ONLY (1)
|
|
114
95
|
/* #define ONIGENC_CASE_FOLD_HIRAGANA_KATAKANA (1<<1) */
|
|
115
96
|
/* #define ONIGENC_CASE_FOLD_KATAKANA_WIDTH (1<<2) */
|
|
116
97
|
#define ONIGENC_CASE_FOLD_TURKISH_AZERI (1<<20)
|
|
@@ -143,7 +124,7 @@ typedef struct {
|
|
|
143
124
|
OnigCodePoint one_or_more_time;
|
|
144
125
|
OnigCodePoint anychar_anytime;
|
|
145
126
|
} OnigMetaCharTableType;
|
|
146
|
-
|
|
127
|
+
|
|
147
128
|
typedef int (*OnigApplyAllCaseFoldFunc)(OnigCodePoint from, OnigCodePoint* to, int to_len, void* arg);
|
|
148
129
|
|
|
149
130
|
typedef struct OnigEncodingTypeST {
|
|
@@ -166,6 +147,9 @@ typedef struct OnigEncodingTypeST {
|
|
|
166
147
|
int (*init)(void);
|
|
167
148
|
int (*is_initialized)(void);
|
|
168
149
|
int (*is_valid_mbc_string)(const OnigUChar* s, const OnigUChar* end);
|
|
150
|
+
unsigned int flag;
|
|
151
|
+
OnigCodePoint sb_range;
|
|
152
|
+
int index;
|
|
169
153
|
} OnigEncodingType;
|
|
170
154
|
|
|
171
155
|
typedef OnigEncodingType* OnigEncoding;
|
|
@@ -243,21 +227,24 @@ ONIG_EXTERN OnigEncodingType OnigEncodingGB18030;
|
|
|
243
227
|
/* 18: 6(max-byte) * 3(case-fold chars) */
|
|
244
228
|
|
|
245
229
|
/* character types */
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
230
|
+
typedef enum {
|
|
231
|
+
ONIGENC_CTYPE_NEWLINE = 0,
|
|
232
|
+
ONIGENC_CTYPE_ALPHA = 1,
|
|
233
|
+
ONIGENC_CTYPE_BLANK = 2,
|
|
234
|
+
ONIGENC_CTYPE_CNTRL = 3,
|
|
235
|
+
ONIGENC_CTYPE_DIGIT = 4,
|
|
236
|
+
ONIGENC_CTYPE_GRAPH = 5,
|
|
237
|
+
ONIGENC_CTYPE_LOWER = 6,
|
|
238
|
+
ONIGENC_CTYPE_PRINT = 7,
|
|
239
|
+
ONIGENC_CTYPE_PUNCT = 8,
|
|
240
|
+
ONIGENC_CTYPE_SPACE = 9,
|
|
241
|
+
ONIGENC_CTYPE_UPPER = 10,
|
|
242
|
+
ONIGENC_CTYPE_XDIGIT = 11,
|
|
243
|
+
ONIGENC_CTYPE_WORD = 12,
|
|
244
|
+
ONIGENC_CTYPE_ALNUM = 13, /* alpha || digit */
|
|
245
|
+
ONIGENC_CTYPE_ASCII = 14
|
|
246
|
+
} OnigEncCtype;
|
|
247
|
+
|
|
261
248
|
#define ONIGENC_MAX_STD_CTYPE ONIGENC_CTYPE_ASCII
|
|
262
249
|
|
|
263
250
|
|
|
@@ -270,7 +257,7 @@ ONIG_EXTERN OnigEncodingType OnigEncodingGB18030;
|
|
|
270
257
|
#define ONIGENC_IS_CODE_ASCII(code) ((code) < 128)
|
|
271
258
|
#define ONIGENC_IS_MBC_WORD(enc,s,end) \
|
|
272
259
|
ONIGENC_IS_CODE_WORD(enc,ONIGENC_MBC_TO_CODE(enc,s,end))
|
|
273
|
-
|
|
260
|
+
#define ONIGENC_IS_MBC_WORD_ASCII(enc,s,end) onigenc_is_mbc_word_ascii(enc,s,end)
|
|
274
261
|
|
|
275
262
|
#define ONIGENC_NAME(enc) ((enc)->name)
|
|
276
263
|
|
|
@@ -365,14 +352,15 @@ ONIG_EXTERN
|
|
|
365
352
|
int onigenc_str_bytelen_null P_((OnigEncoding enc, const OnigUChar* p));
|
|
366
353
|
ONIG_EXTERN
|
|
367
354
|
int onigenc_is_valid_mbc_string P_((OnigEncoding enc, const OnigUChar* s, const OnigUChar* end));
|
|
368
|
-
|
|
355
|
+
ONIG_EXTERN
|
|
356
|
+
OnigUChar* onigenc_strdup P_((OnigEncoding enc, const OnigUChar* s, const OnigUChar* end));
|
|
369
357
|
|
|
370
358
|
|
|
371
359
|
/* PART: regular expression */
|
|
372
360
|
|
|
373
361
|
/* config parameters */
|
|
374
362
|
#define ONIG_NREGION 10
|
|
375
|
-
#define ONIG_MAX_CAPTURE_NUM
|
|
363
|
+
#define ONIG_MAX_CAPTURE_NUM 2147483647 /* 2**31 - 1 */
|
|
376
364
|
#define ONIG_MAX_BACKREF_NUM 1000
|
|
377
365
|
#define ONIG_MAX_REPEAT_NUM 100000
|
|
378
366
|
#define ONIG_MAX_MULTI_BYTE_RANGES_NUM 10000
|
|
@@ -385,6 +373,7 @@ typedef unsigned int OnigOptionType;
|
|
|
385
373
|
|
|
386
374
|
/* options */
|
|
387
375
|
#define ONIG_OPTION_NONE 0U
|
|
376
|
+
/* options (compile time) */
|
|
388
377
|
#define ONIG_OPTION_IGNORECASE 1U
|
|
389
378
|
#define ONIG_OPTION_EXTEND (ONIG_OPTION_IGNORECASE << 1)
|
|
390
379
|
#define ONIG_OPTION_MULTILINE (ONIG_OPTION_EXTEND << 1)
|
|
@@ -395,11 +384,26 @@ typedef unsigned int OnigOptionType;
|
|
|
395
384
|
#define ONIG_OPTION_DONT_CAPTURE_GROUP (ONIG_OPTION_NEGATE_SINGLELINE << 1)
|
|
396
385
|
#define ONIG_OPTION_CAPTURE_GROUP (ONIG_OPTION_DONT_CAPTURE_GROUP << 1)
|
|
397
386
|
/* options (search time) */
|
|
398
|
-
#define ONIG_OPTION_NOTBOL
|
|
399
|
-
#define ONIG_OPTION_NOTEOL
|
|
400
|
-
#define ONIG_OPTION_POSIX_REGION
|
|
401
|
-
#define ONIG_OPTION_CHECK_VALIDITY_OF_STRING
|
|
402
|
-
|
|
387
|
+
#define ONIG_OPTION_NOTBOL (ONIG_OPTION_CAPTURE_GROUP << 1)
|
|
388
|
+
#define ONIG_OPTION_NOTEOL (ONIG_OPTION_NOTBOL << 1)
|
|
389
|
+
#define ONIG_OPTION_POSIX_REGION (ONIG_OPTION_NOTEOL << 1)
|
|
390
|
+
#define ONIG_OPTION_CHECK_VALIDITY_OF_STRING (ONIG_OPTION_POSIX_REGION << 1)
|
|
391
|
+
/* options (compile time) */
|
|
392
|
+
#define ONIG_OPTION_IGNORECASE_IS_ASCII (ONIG_OPTION_CHECK_VALIDITY_OF_STRING << 3)
|
|
393
|
+
#define ONIG_OPTION_WORD_IS_ASCII (ONIG_OPTION_IGNORECASE_IS_ASCII << 1)
|
|
394
|
+
#define ONIG_OPTION_DIGIT_IS_ASCII (ONIG_OPTION_WORD_IS_ASCII << 1)
|
|
395
|
+
#define ONIG_OPTION_SPACE_IS_ASCII (ONIG_OPTION_DIGIT_IS_ASCII << 1)
|
|
396
|
+
#define ONIG_OPTION_POSIX_IS_ASCII (ONIG_OPTION_SPACE_IS_ASCII << 1)
|
|
397
|
+
#define ONIG_OPTION_TEXT_SEGMENT_EXTENDED_GRAPHEME_CLUSTER (ONIG_OPTION_POSIX_IS_ASCII << 1)
|
|
398
|
+
#define ONIG_OPTION_TEXT_SEGMENT_WORD (ONIG_OPTION_TEXT_SEGMENT_EXTENDED_GRAPHEME_CLUSTER << 1)
|
|
399
|
+
/* options (search time) */
|
|
400
|
+
#define ONIG_OPTION_NOT_BEGIN_STRING (ONIG_OPTION_TEXT_SEGMENT_WORD << 1)
|
|
401
|
+
#define ONIG_OPTION_NOT_END_STRING (ONIG_OPTION_NOT_BEGIN_STRING << 1)
|
|
402
|
+
#define ONIG_OPTION_NOT_BEGIN_POSITION (ONIG_OPTION_NOT_END_STRING << 1)
|
|
403
|
+
#define ONIG_OPTION_CALLBACK_EACH_MATCH (ONIG_OPTION_NOT_BEGIN_POSITION << 1)
|
|
404
|
+
#define ONIG_OPTION_MATCH_WHOLE_STRING (ONIG_OPTION_CALLBACK_EACH_MATCH << 1)
|
|
405
|
+
|
|
406
|
+
#define ONIG_OPTION_MAXBIT ONIG_OPTION_MATCH_WHOLE_STRING
|
|
403
407
|
|
|
404
408
|
#define ONIG_OPTION_ON(options,regopt) ((options) |= (regopt))
|
|
405
409
|
#define ONIG_OPTION_OFF(options,regopt) ((options) &= ~(regopt))
|
|
@@ -424,6 +428,8 @@ ONIG_EXTERN OnigSyntaxType OnigSyntaxJava;
|
|
|
424
428
|
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl;
|
|
425
429
|
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl_NG;
|
|
426
430
|
ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby;
|
|
431
|
+
ONIG_EXTERN OnigSyntaxType OnigSyntaxPython;
|
|
432
|
+
ONIG_EXTERN OnigSyntaxType OnigSyntaxOniguruma;
|
|
427
433
|
|
|
428
434
|
/* predefined syntaxes (see regsyntax.c) */
|
|
429
435
|
#define ONIG_SYNTAX_ASIS (&OnigSyntaxASIS)
|
|
@@ -436,6 +442,8 @@ ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby;
|
|
|
436
442
|
#define ONIG_SYNTAX_PERL (&OnigSyntaxPerl)
|
|
437
443
|
#define ONIG_SYNTAX_PERL_NG (&OnigSyntaxPerl_NG)
|
|
438
444
|
#define ONIG_SYNTAX_RUBY (&OnigSyntaxRuby)
|
|
445
|
+
#define ONIG_SYNTAX_PYTHON (&OnigSyntaxPython)
|
|
446
|
+
#define ONIG_SYNTAX_ONIGURUMA (&OnigSyntaxOniguruma)
|
|
439
447
|
|
|
440
448
|
/* default syntax */
|
|
441
449
|
ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
@@ -473,6 +481,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
473
481
|
#define ONIG_SYN_OP_ESC_OCTAL3 (1U<<28) /* \OOO */
|
|
474
482
|
#define ONIG_SYN_OP_ESC_X_HEX2 (1U<<29) /* \xHH */
|
|
475
483
|
#define ONIG_SYN_OP_ESC_X_BRACE_HEX8 (1U<<30) /* \x{7HHHHHHH} */
|
|
484
|
+
#define ONIG_SYN_OP_ESC_O_BRACE_OCTAL (1U<<31) /* \o{1OOOOOOOOOO} */
|
|
476
485
|
|
|
477
486
|
#define ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE (1U<<0) /* \Q...\E */
|
|
478
487
|
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT (1U<<1) /* (?...) */
|
|
@@ -495,6 +504,18 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
495
504
|
/* #define ONIG_SYN_OP2_CHAR_PROPERTY_PREFIX_IS (1U<<18) */
|
|
496
505
|
#define ONIG_SYN_OP2_ESC_H_XDIGIT (1U<<19) /* \h, \H */
|
|
497
506
|
#define ONIG_SYN_OP2_INEFFECTIVE_ESCAPE (1U<<20) /* \ */
|
|
507
|
+
#define ONIG_SYN_OP2_QMARK_LPAREN_IF_ELSE (1U<<21) /* (?(n)) (?(...)...|...) */
|
|
508
|
+
#define ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP (1U<<22) /* \K */
|
|
509
|
+
#define ONIG_SYN_OP2_ESC_CAPITAL_R_GENERAL_NEWLINE (1U<<23) /* \R \r\n else [\x0a-\x0d] */
|
|
510
|
+
#define ONIG_SYN_OP2_ESC_CAPITAL_N_O_SUPER_DOT (1U<<24) /* \N (?-m:.), \O (?m:.) */
|
|
511
|
+
#define ONIG_SYN_OP2_QMARK_TILDE_ABSENT_GROUP (1U<<25) /* (?~...) */
|
|
512
|
+
#define ONIG_SYN_OP2_ESC_X_Y_GRAPHEME_CLUSTER (1U<<26) /* obsoleted: use next */
|
|
513
|
+
#define ONIG_SYN_OP2_ESC_X_Y_TEXT_SEGMENT (1U<<26) /* \X \y \Y */
|
|
514
|
+
#define ONIG_SYN_OP2_QMARK_PERL_SUBEXP_CALL (1U<<27) /* (?R), (?&name)... */
|
|
515
|
+
#define ONIG_SYN_OP2_QMARK_BRACE_CALLOUT_CONTENTS (1U<<28) /* (?{...}) (?{{...}}) */
|
|
516
|
+
#define ONIG_SYN_OP2_ASTERISK_CALLOUT_NAME (1U<<29) /* (*name) (*name{a,..}) */
|
|
517
|
+
#define ONIG_SYN_OP2_OPTION_ONIGURUMA (1U<<30) /* (?imxWDSPy) */
|
|
518
|
+
#define ONIG_SYN_OP2_QMARK_CAPITAL_P_NAME (1U<<31) /* (?P<name>...) (?P=name) */
|
|
498
519
|
|
|
499
520
|
/* syntax (behavior) */
|
|
500
521
|
#define ONIG_SYN_CONTEXT_INDEP_ANCHORS (1U<<31) /* not implemented */
|
|
@@ -508,12 +529,18 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
508
529
|
#define ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP (1U<<7) /* see doc/RE */
|
|
509
530
|
#define ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME (1U<<8) /* (?<x>)(?<x>) */
|
|
510
531
|
#define ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY (1U<<9) /* a{n}?=(?:a{n})? */
|
|
532
|
+
#define ONIG_SYN_ISOLATED_OPTION_CONTINUE_BRANCH (1U<<10) /* ..(?i)...|... */
|
|
533
|
+
#define ONIG_SYN_VARIABLE_LEN_LOOK_BEHIND (1U<<11) /* (?<=a+|..) */
|
|
534
|
+
#define ONIG_SYN_PYTHON (1U<<12) /* \UHHHHHHHH */
|
|
535
|
+
#define ONIG_SYN_WHOLE_OPTIONS (1U<<13) /* (?Ie) */
|
|
536
|
+
#define ONIG_SYN_BRE_ANCHOR_AT_EDGE_OF_SUBEXP (1U<<14) /* \(^abc$\) */
|
|
511
537
|
|
|
512
538
|
/* syntax (behavior) in char class [...] */
|
|
513
539
|
#define ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC (1U<<20) /* [^...] */
|
|
514
540
|
#define ONIG_SYN_BACKSLASH_ESCAPE_IN_CC (1U<<21) /* [..\w..] etc.. */
|
|
515
541
|
#define ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC (1U<<22)
|
|
516
542
|
#define ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC (1U<<23) /* [0-9-a]=[0-9\-a] */
|
|
543
|
+
#define ONIG_SYN_ALLOW_INVALID_CODE_END_OF_RANGE_IN_CC (1U<<26)
|
|
517
544
|
/* syntax (behavior) warning */
|
|
518
545
|
#define ONIG_SYN_WARN_CC_OP_NOT_ESCAPED (1U<<24) /* [,-,] */
|
|
519
546
|
#define ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT (1U<<25) /* (?:a*)+ */
|
|
@@ -530,10 +557,13 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
530
557
|
|
|
531
558
|
/* error codes */
|
|
532
559
|
#define ONIG_IS_PATTERN_ERROR(ecode) ((ecode) <= -100 && (ecode) > -1000)
|
|
560
|
+
|
|
533
561
|
/* normal return */
|
|
534
562
|
#define ONIG_NORMAL 0
|
|
563
|
+
#define ONIG_VALUE_IS_NOT_SET 1
|
|
535
564
|
#define ONIG_MISMATCH -1
|
|
536
565
|
#define ONIG_NO_SUPPORT_CONFIG -2
|
|
566
|
+
#define ONIG_ABORT -3
|
|
537
567
|
|
|
538
568
|
/* internal error */
|
|
539
569
|
#define ONIGERR_MEMORY -5
|
|
@@ -544,11 +574,15 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
544
574
|
#define ONIGERR_UNEXPECTED_BYTECODE -14
|
|
545
575
|
#define ONIGERR_MATCH_STACK_LIMIT_OVER -15
|
|
546
576
|
#define ONIGERR_PARSE_DEPTH_LIMIT_OVER -16
|
|
547
|
-
#define
|
|
577
|
+
#define ONIGERR_RETRY_LIMIT_IN_MATCH_OVER -17
|
|
578
|
+
#define ONIGERR_RETRY_LIMIT_IN_SEARCH_OVER -18
|
|
579
|
+
#define ONIGERR_SUBEXP_CALL_LIMIT_IN_SEARCH_OVER -19
|
|
580
|
+
#define ONIGERR_DEFAULT_ENCODING_IS_NOT_SETTED -21 /*dont use*/
|
|
581
|
+
#define ONIGERR_DEFAULT_ENCODING_IS_NOT_SET -21
|
|
548
582
|
#define ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR -22
|
|
549
583
|
#define ONIGERR_FAIL_TO_INITIALIZE -23
|
|
550
584
|
/* general error */
|
|
551
|
-
#define ONIGERR_INVALID_ARGUMENT -30
|
|
585
|
+
#define ONIGERR_INVALID_ARGUMENT -30
|
|
552
586
|
/* syntax error */
|
|
553
587
|
#define ONIGERR_END_PATTERN_AT_LEFT_BRACE -100
|
|
554
588
|
#define ONIGERR_END_PATTERN_AT_LEFT_BRACKET -101
|
|
@@ -569,6 +603,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
569
603
|
#define ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS -117
|
|
570
604
|
#define ONIGERR_END_PATTERN_IN_GROUP -118
|
|
571
605
|
#define ONIGERR_UNDEFINED_GROUP_OPTION -119
|
|
606
|
+
#define ONIGERR_INVALID_GROUP_OPTION -120
|
|
572
607
|
#define ONIGERR_INVALID_POSIX_BRACKET_TYPE -121
|
|
573
608
|
#define ONIGERR_INVALID_LOOK_BEHIND_PATTERN -122
|
|
574
609
|
#define ONIGERR_INVALID_REPEAT_RANGE_PATTERN -123
|
|
@@ -585,6 +620,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
585
620
|
#define ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED -209
|
|
586
621
|
#define ONIGERR_TOO_MANY_CAPTURES -210
|
|
587
622
|
#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE -212
|
|
623
|
+
#define ONIGERR_UNDEFINED_OPERATOR -213
|
|
588
624
|
#define ONIGERR_EMPTY_GROUP_NAME -214
|
|
589
625
|
#define ONIGERR_INVALID_GROUP_NAME -215
|
|
590
626
|
#define ONIGERR_INVALID_CHAR_IN_GROUP_NAME -216
|
|
@@ -595,6 +631,15 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
595
631
|
#define ONIGERR_NEVER_ENDING_RECURSION -221
|
|
596
632
|
#define ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY -222
|
|
597
633
|
#define ONIGERR_INVALID_CHAR_PROPERTY_NAME -223
|
|
634
|
+
#define ONIGERR_INVALID_IF_ELSE_SYNTAX -224
|
|
635
|
+
#define ONIGERR_INVALID_ABSENT_GROUP_PATTERN -225
|
|
636
|
+
#define ONIGERR_INVALID_ABSENT_GROUP_GENERATOR_PATTERN -226
|
|
637
|
+
#define ONIGERR_INVALID_CALLOUT_PATTERN -227
|
|
638
|
+
#define ONIGERR_INVALID_CALLOUT_NAME -228
|
|
639
|
+
#define ONIGERR_UNDEFINED_CALLOUT_NAME -229
|
|
640
|
+
#define ONIGERR_INVALID_CALLOUT_BODY -230
|
|
641
|
+
#define ONIGERR_INVALID_CALLOUT_TAG_NAME -231
|
|
642
|
+
#define ONIGERR_INVALID_CALLOUT_ARG -232
|
|
598
643
|
#define ONIGERR_INVALID_CODE_POINT_VALUE -400
|
|
599
644
|
#define ONIGERR_INVALID_WIDE_CHAR_VALUE -400
|
|
600
645
|
#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE -401
|
|
@@ -602,13 +647,14 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
|
602
647
|
#define ONIGERR_INVALID_COMBINATION_OF_OPTIONS -403
|
|
603
648
|
#define ONIGERR_TOO_MANY_USER_DEFINED_OBJECTS -404
|
|
604
649
|
#define ONIGERR_TOO_LONG_PROPERTY_NAME -405
|
|
650
|
+
#define ONIGERR_VERY_INEFFICIENT_PATTERN -406
|
|
605
651
|
#define ONIGERR_LIBRARY_IS_NOT_INITIALIZED -500
|
|
606
652
|
|
|
607
653
|
/* errors related to thread */
|
|
608
654
|
/* #define ONIGERR_OVER_THREAD_PASS_LIMIT_COUNT -1001 */
|
|
609
655
|
|
|
610
656
|
|
|
611
|
-
/* must be smaller than
|
|
657
|
+
/* must be smaller than MEM_STATUS_BITS_NUM (unsigned int * 8) */
|
|
612
658
|
#define ONIG_MAX_CAPTURE_HISTORY_GROUP 31
|
|
613
659
|
#define ONIG_IS_CAPTURE_HISTORY_GROUP(r, i) \
|
|
614
660
|
((i) <= ONIG_MAX_CAPTURE_HISTORY_GROUP && (r)->list && (r)->list[i])
|
|
@@ -660,55 +706,22 @@ extern void onig_null_warn P_((const char* s));
|
|
|
660
706
|
|
|
661
707
|
#define ONIG_CHAR_TABLE_SIZE 256
|
|
662
708
|
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
unsigned char* p; /* compiled pattern */
|
|
666
|
-
unsigned int used; /* used space for p */
|
|
667
|
-
unsigned int alloc; /* allocated space for p */
|
|
668
|
-
|
|
669
|
-
int num_mem; /* used memory(...) num counted from 1 */
|
|
670
|
-
int num_repeat; /* OP_REPEAT/OP_REPEAT_NG id-counter */
|
|
671
|
-
int num_null_check; /* OP_NULL_CHECK_START/END id counter */
|
|
672
|
-
int num_comb_exp_check; /* combination explosion check */
|
|
673
|
-
int num_call; /* number of subexp call */
|
|
674
|
-
unsigned int capture_history; /* (?@...) flag (1-31) */
|
|
675
|
-
unsigned int bt_mem_start; /* need backtrack flag */
|
|
676
|
-
unsigned int bt_mem_end; /* need backtrack flag */
|
|
677
|
-
int stack_pop_level;
|
|
678
|
-
int repeat_range_alloc;
|
|
679
|
-
OnigRepeatRange* repeat_range;
|
|
680
|
-
|
|
681
|
-
OnigEncoding enc;
|
|
682
|
-
OnigOptionType options;
|
|
683
|
-
OnigSyntaxType* syntax;
|
|
684
|
-
OnigCaseFoldType case_fold_flag;
|
|
685
|
-
void* name_table;
|
|
686
|
-
|
|
687
|
-
/* optimization info (string search, char-map and anchors) */
|
|
688
|
-
int optimize; /* optimize flag */
|
|
689
|
-
int threshold_len; /* search str-length for apply optimize */
|
|
690
|
-
int anchor; /* BEGIN_BUF, BEGIN_POS, (SEMI_)END_BUF */
|
|
691
|
-
OnigLen anchor_dmin; /* (SEMI_)END_BUF anchor distance */
|
|
692
|
-
OnigLen anchor_dmax; /* (SEMI_)END_BUF anchor distance */
|
|
693
|
-
int sub_anchor; /* start-anchor for exact or map */
|
|
694
|
-
unsigned char *exact;
|
|
695
|
-
unsigned char *exact_end;
|
|
696
|
-
unsigned char map[ONIG_CHAR_TABLE_SIZE]; /* used as BM skip or char-map */
|
|
697
|
-
int *int_map; /* BM skip for exact_len > 255 */
|
|
698
|
-
int *int_map_backward; /* BM skip for backward search */
|
|
699
|
-
OnigLen dmin; /* min-distance of exact or map */
|
|
700
|
-
OnigLen dmax; /* max-distance of exact or map */
|
|
701
|
-
|
|
702
|
-
/* regex_t link chain */
|
|
703
|
-
struct re_pattern_buffer* chain; /* escape compile-conflict */
|
|
704
|
-
} OnigRegexType;
|
|
705
|
-
|
|
709
|
+
struct re_pattern_buffer;
|
|
710
|
+
typedef struct re_pattern_buffer OnigRegexType;
|
|
706
711
|
typedef OnigRegexType* OnigRegex;
|
|
707
712
|
|
|
708
713
|
#ifndef ONIG_ESCAPE_REGEX_T_COLLISION
|
|
709
714
|
typedef OnigRegexType regex_t;
|
|
710
715
|
#endif
|
|
711
716
|
|
|
717
|
+
struct OnigRegSetStruct;
|
|
718
|
+
typedef struct OnigRegSetStruct OnigRegSet;
|
|
719
|
+
|
|
720
|
+
typedef enum {
|
|
721
|
+
ONIG_REGSET_POSITION_LEAD = 0,
|
|
722
|
+
ONIG_REGSET_REGEX_LEAD = 1,
|
|
723
|
+
ONIG_REGSET_PRIORITY_TO_REGEX_ORDER = 2
|
|
724
|
+
} OnigRegSetLead;
|
|
712
725
|
|
|
713
726
|
typedef struct {
|
|
714
727
|
int num_of_elements;
|
|
@@ -719,15 +732,83 @@ typedef struct {
|
|
|
719
732
|
OnigCaseFoldType case_fold_flag;
|
|
720
733
|
} OnigCompileInfo;
|
|
721
734
|
|
|
735
|
+
typedef int (*OnigCallbackEachMatchFunc)(const OnigUChar* str, const OnigUChar* end, const OnigUChar* match_start, OnigRegion* region, void* user_data);
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
/* types for callout */
|
|
739
|
+
typedef enum {
|
|
740
|
+
ONIG_CALLOUT_IN_PROGRESS = 1, /* 1<<0 */
|
|
741
|
+
ONIG_CALLOUT_IN_RETRACTION = 2 /* 1<<1 */
|
|
742
|
+
} OnigCalloutIn;
|
|
743
|
+
|
|
744
|
+
#define ONIG_CALLOUT_IN_BOTH (ONIG_CALLOUT_IN_PROGRESS | ONIG_CALLOUT_IN_RETRACTION)
|
|
745
|
+
|
|
746
|
+
typedef enum {
|
|
747
|
+
ONIG_CALLOUT_OF_CONTENTS = 0,
|
|
748
|
+
ONIG_CALLOUT_OF_NAME = 1
|
|
749
|
+
} OnigCalloutOf;
|
|
750
|
+
|
|
751
|
+
typedef enum {
|
|
752
|
+
ONIG_CALLOUT_TYPE_SINGLE = 0,
|
|
753
|
+
ONIG_CALLOUT_TYPE_START_CALL = 1,
|
|
754
|
+
ONIG_CALLOUT_TYPE_BOTH_CALL = 2,
|
|
755
|
+
ONIG_CALLOUT_TYPE_START_MARK_END_CALL = 3,
|
|
756
|
+
} OnigCalloutType;
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
#define ONIG_NON_NAME_ID -1
|
|
760
|
+
#define ONIG_NON_CALLOUT_NUM 0
|
|
761
|
+
|
|
762
|
+
#define ONIG_CALLOUT_MAX_ARGS_NUM 4
|
|
763
|
+
#define ONIG_CALLOUT_DATA_SLOT_NUM 5
|
|
764
|
+
|
|
765
|
+
struct OnigCalloutArgsStruct;
|
|
766
|
+
typedef struct OnigCalloutArgsStruct OnigCalloutArgs;
|
|
767
|
+
|
|
768
|
+
typedef int (*OnigCalloutFunc)(OnigCalloutArgs* args, void* user_data);
|
|
769
|
+
|
|
770
|
+
/* callout function return values (less than -1: error code) */
|
|
771
|
+
typedef enum {
|
|
772
|
+
ONIG_CALLOUT_FAIL = 1,
|
|
773
|
+
ONIG_CALLOUT_SUCCESS = 0
|
|
774
|
+
} OnigCalloutResult;
|
|
775
|
+
|
|
776
|
+
typedef enum {
|
|
777
|
+
ONIG_TYPE_VOID = 0,
|
|
778
|
+
ONIG_TYPE_LONG = 1<<0,
|
|
779
|
+
ONIG_TYPE_CHAR = 1<<1,
|
|
780
|
+
ONIG_TYPE_STRING = 1<<2,
|
|
781
|
+
ONIG_TYPE_POINTER = 1<<3,
|
|
782
|
+
ONIG_TYPE_TAG = 1<<4,
|
|
783
|
+
} OnigType;
|
|
784
|
+
|
|
785
|
+
typedef union {
|
|
786
|
+
long l;
|
|
787
|
+
OnigCodePoint c;
|
|
788
|
+
struct {
|
|
789
|
+
OnigUChar* start;
|
|
790
|
+
OnigUChar* end;
|
|
791
|
+
} s;
|
|
792
|
+
void* p;
|
|
793
|
+
int tag; /* tag -> callout_num */
|
|
794
|
+
} OnigValue;
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
struct OnigMatchParamStruct;
|
|
798
|
+
typedef struct OnigMatchParamStruct OnigMatchParam;
|
|
799
|
+
|
|
800
|
+
|
|
722
801
|
/* Oniguruma Native API */
|
|
723
802
|
|
|
724
803
|
ONIG_EXTERN
|
|
725
|
-
int onig_initialize P_((OnigEncoding encodings[], int
|
|
804
|
+
int onig_initialize P_((OnigEncoding encodings[], int number_of_encodings));
|
|
726
805
|
/* onig_init(): deprecated function. Use onig_initialize(). */
|
|
727
806
|
ONIG_EXTERN
|
|
728
807
|
int onig_init P_((void));
|
|
729
808
|
ONIG_EXTERN
|
|
730
|
-
int onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...));
|
|
809
|
+
int ONIG_VARIADIC_FUNC_ATTR onig_error_code_to_str PV_((OnigUChar* s, int err_code, ...));
|
|
810
|
+
ONIG_EXTERN
|
|
811
|
+
int onig_is_error_code_needs_param PV_((int code));
|
|
731
812
|
ONIG_EXTERN
|
|
732
813
|
void onig_set_warn_func P_((OnigWarnFunc f));
|
|
733
814
|
ONIG_EXTERN
|
|
@@ -735,7 +816,7 @@ void onig_set_verb_warn_func P_((OnigWarnFunc f));
|
|
|
735
816
|
ONIG_EXTERN
|
|
736
817
|
int onig_new P_((OnigRegex*, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
|
|
737
818
|
ONIG_EXTERN
|
|
738
|
-
int onig_reg_init P_((
|
|
819
|
+
int onig_reg_init P_((OnigRegex reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, OnigSyntaxType* syntax));
|
|
739
820
|
int onig_new_without_alloc P_((OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
|
|
740
821
|
ONIG_EXTERN
|
|
741
822
|
int onig_new_deluxe P_((OnigRegex* reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo));
|
|
@@ -744,11 +825,35 @@ void onig_free P_((OnigRegex));
|
|
|
744
825
|
ONIG_EXTERN
|
|
745
826
|
void onig_free_body P_((OnigRegex));
|
|
746
827
|
ONIG_EXTERN
|
|
747
|
-
int onig_scan(
|
|
828
|
+
int onig_scan(OnigRegex reg, const OnigUChar* str, const OnigUChar* end, OnigRegion* region, OnigOptionType option, int (*scan_callback)(int, int, OnigRegion*, void*), void* callback_arg);
|
|
748
829
|
ONIG_EXTERN
|
|
749
830
|
int onig_search P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option));
|
|
750
831
|
ONIG_EXTERN
|
|
832
|
+
int onig_search_with_param P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option, OnigMatchParam* mp));
|
|
833
|
+
ONIG_EXTERN
|
|
751
834
|
int onig_match P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option));
|
|
835
|
+
ONIG_EXTERN
|
|
836
|
+
int onig_match_with_param P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option, OnigMatchParam* mp));
|
|
837
|
+
|
|
838
|
+
ONIG_EXTERN
|
|
839
|
+
int onig_regset_new P_((OnigRegSet** rset, int n, OnigRegex regs[]));
|
|
840
|
+
ONIG_EXTERN
|
|
841
|
+
int onig_regset_add P_((OnigRegSet* set, OnigRegex reg));
|
|
842
|
+
ONIG_EXTERN
|
|
843
|
+
int onig_regset_replace P_((OnigRegSet* set, int at, OnigRegex reg));
|
|
844
|
+
ONIG_EXTERN
|
|
845
|
+
void onig_regset_free P_((OnigRegSet* set));
|
|
846
|
+
ONIG_EXTERN
|
|
847
|
+
int onig_regset_number_of_regex P_((OnigRegSet* set));
|
|
848
|
+
ONIG_EXTERN
|
|
849
|
+
OnigRegex onig_regset_get_regex P_((OnigRegSet* set, int at));
|
|
850
|
+
ONIG_EXTERN
|
|
851
|
+
OnigRegion* onig_regset_get_region P_((OnigRegSet* set, int at));
|
|
852
|
+
ONIG_EXTERN
|
|
853
|
+
int onig_regset_search P_((OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegSetLead lead, OnigOptionType option, int* rmatch_pos));
|
|
854
|
+
ONIG_EXTERN
|
|
855
|
+
int onig_regset_search_with_param P_((OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegSetLead lead, OnigOptionType option, OnigMatchParam* mps[], int* rmatch_pos));
|
|
856
|
+
|
|
752
857
|
ONIG_EXTERN
|
|
753
858
|
OnigRegion* onig_region_new P_((void));
|
|
754
859
|
ONIG_EXTERN
|
|
@@ -822,10 +927,28 @@ unsigned int onig_get_match_stack_limit_size P_((void));
|
|
|
822
927
|
ONIG_EXTERN
|
|
823
928
|
int onig_set_match_stack_limit_size P_((unsigned int size));
|
|
824
929
|
ONIG_EXTERN
|
|
930
|
+
unsigned long onig_get_retry_limit_in_match P_((void));
|
|
931
|
+
ONIG_EXTERN
|
|
932
|
+
int onig_set_retry_limit_in_match P_((unsigned long n));
|
|
933
|
+
ONIG_EXTERN
|
|
934
|
+
unsigned long onig_get_retry_limit_in_search P_((void));
|
|
935
|
+
ONIG_EXTERN
|
|
936
|
+
int onig_set_retry_limit_in_search P_((unsigned long n));
|
|
937
|
+
ONIG_EXTERN
|
|
825
938
|
unsigned int onig_get_parse_depth_limit P_((void));
|
|
826
939
|
ONIG_EXTERN
|
|
940
|
+
int onig_set_capture_num_limit P_((int num));
|
|
941
|
+
ONIG_EXTERN
|
|
827
942
|
int onig_set_parse_depth_limit P_((unsigned int depth));
|
|
828
943
|
ONIG_EXTERN
|
|
944
|
+
unsigned long onig_get_subexp_call_limit_in_search P_((void));
|
|
945
|
+
ONIG_EXTERN
|
|
946
|
+
int onig_set_subexp_call_limit_in_search P_((unsigned long n));
|
|
947
|
+
ONIG_EXTERN
|
|
948
|
+
int onig_get_subexp_call_max_nest_level P_((void));
|
|
949
|
+
ONIG_EXTERN
|
|
950
|
+
int onig_set_subexp_call_max_nest_level P_((int level));
|
|
951
|
+
ONIG_EXTERN
|
|
829
952
|
int onig_unicode_define_user_property P_((const char* name, OnigCodePoint* ranges));
|
|
830
953
|
ONIG_EXTERN
|
|
831
954
|
int onig_end P_((void));
|
|
@@ -834,6 +957,133 @@ const char* onig_version P_((void));
|
|
|
834
957
|
ONIG_EXTERN
|
|
835
958
|
const char* onig_copyright P_((void));
|
|
836
959
|
|
|
960
|
+
/* for callback each match */
|
|
961
|
+
ONIG_EXTERN
|
|
962
|
+
OnigCallbackEachMatchFunc onig_get_callback_each_match P_((void));
|
|
963
|
+
ONIG_EXTERN
|
|
964
|
+
int onig_set_callback_each_match P_((OnigCallbackEachMatchFunc f));
|
|
965
|
+
|
|
966
|
+
/* for OnigMatchParam */
|
|
967
|
+
ONIG_EXTERN
|
|
968
|
+
OnigMatchParam* onig_new_match_param P_((void));
|
|
969
|
+
ONIG_EXTERN
|
|
970
|
+
void onig_free_match_param P_((OnigMatchParam* p));
|
|
971
|
+
ONIG_EXTERN
|
|
972
|
+
void onig_free_match_param_content P_((OnigMatchParam* p));
|
|
973
|
+
ONIG_EXTERN
|
|
974
|
+
int onig_initialize_match_param P_((OnigMatchParam* mp));
|
|
975
|
+
ONIG_EXTERN
|
|
976
|
+
int onig_set_match_stack_limit_size_of_match_param P_((OnigMatchParam* param, unsigned int limit));
|
|
977
|
+
ONIG_EXTERN
|
|
978
|
+
int onig_set_retry_limit_in_match_of_match_param P_((OnigMatchParam* param, unsigned long limit));
|
|
979
|
+
ONIG_EXTERN
|
|
980
|
+
int onig_set_retry_limit_in_search_of_match_param P_((OnigMatchParam* param, unsigned long limit));
|
|
981
|
+
ONIG_EXTERN
|
|
982
|
+
int onig_set_progress_callout_of_match_param P_((OnigMatchParam* param, OnigCalloutFunc f));
|
|
983
|
+
ONIG_EXTERN
|
|
984
|
+
int onig_set_retraction_callout_of_match_param P_((OnigMatchParam* param, OnigCalloutFunc f));
|
|
985
|
+
ONIG_EXTERN
|
|
986
|
+
int onig_set_callout_user_data_of_match_param P_((OnigMatchParam* param, void* user_data));
|
|
987
|
+
|
|
988
|
+
/* for callout functions */
|
|
989
|
+
ONIG_EXTERN
|
|
990
|
+
OnigCalloutFunc onig_get_progress_callout P_((void));
|
|
991
|
+
ONIG_EXTERN
|
|
992
|
+
int onig_set_progress_callout P_((OnigCalloutFunc f));
|
|
993
|
+
ONIG_EXTERN
|
|
994
|
+
OnigCalloutFunc onig_get_retraction_callout P_((void));
|
|
995
|
+
ONIG_EXTERN
|
|
996
|
+
int onig_set_retraction_callout P_((OnigCalloutFunc f));
|
|
997
|
+
ONIG_EXTERN
|
|
998
|
+
int onig_set_callout_of_name P_((OnigEncoding enc, OnigCalloutType type, OnigUChar* name, OnigUChar* name_end, int callout_in, OnigCalloutFunc callout, OnigCalloutFunc end_callout, int arg_num, unsigned int arg_types[], int optional_arg_num, OnigValue opt_defaults[]));
|
|
999
|
+
ONIG_EXTERN
|
|
1000
|
+
OnigUChar* onig_get_callout_name_by_name_id P_((int id));
|
|
1001
|
+
ONIG_EXTERN
|
|
1002
|
+
int onig_get_callout_num_by_tag P_((OnigRegex reg, const OnigUChar* tag, const OnigUChar* tag_end));
|
|
1003
|
+
ONIG_EXTERN
|
|
1004
|
+
int onig_get_callout_data_by_tag P_((OnigRegex reg, OnigMatchParam* mp, const OnigUChar* tag, const OnigUChar* tag_end, int slot, OnigType* type, OnigValue* val));
|
|
1005
|
+
ONIG_EXTERN
|
|
1006
|
+
int onig_set_callout_data_by_tag P_((OnigRegex reg, OnigMatchParam* mp, const OnigUChar* tag, const OnigUChar* tag_end, int slot, OnigType type, OnigValue* val));
|
|
1007
|
+
ONIG_EXTERN
|
|
1008
|
+
int onig_get_callout_data_by_tag_dont_clear_old P_((OnigRegex reg, OnigMatchParam* mp, const OnigUChar* tag, const OnigUChar* tag_end, int slot, OnigType* type, OnigValue* val));
|
|
1009
|
+
|
|
1010
|
+
/* used in callout functions */
|
|
1011
|
+
ONIG_EXTERN
|
|
1012
|
+
int onig_get_callout_num_by_callout_args P_((OnigCalloutArgs* args));
|
|
1013
|
+
ONIG_EXTERN
|
|
1014
|
+
OnigCalloutIn onig_get_callout_in_by_callout_args P_((OnigCalloutArgs* args));
|
|
1015
|
+
ONIG_EXTERN
|
|
1016
|
+
int onig_get_name_id_by_callout_args P_((OnigCalloutArgs* args));
|
|
1017
|
+
ONIG_EXTERN
|
|
1018
|
+
const OnigUChar* onig_get_contents_by_callout_args P_((OnigCalloutArgs* args));
|
|
1019
|
+
ONIG_EXTERN
|
|
1020
|
+
const OnigUChar* onig_get_contents_end_by_callout_args P_((OnigCalloutArgs* args));
|
|
1021
|
+
ONIG_EXTERN
|
|
1022
|
+
int onig_get_args_num_by_callout_args P_((OnigCalloutArgs* args));
|
|
1023
|
+
ONIG_EXTERN
|
|
1024
|
+
int onig_get_passed_args_num_by_callout_args P_((OnigCalloutArgs* args));
|
|
1025
|
+
ONIG_EXTERN
|
|
1026
|
+
int onig_get_arg_by_callout_args P_((OnigCalloutArgs* args, int index, OnigType* type, OnigValue* val));
|
|
1027
|
+
ONIG_EXTERN
|
|
1028
|
+
const OnigUChar* onig_get_string_by_callout_args P_((OnigCalloutArgs* args));
|
|
1029
|
+
ONIG_EXTERN
|
|
1030
|
+
const OnigUChar* onig_get_string_end_by_callout_args P_((OnigCalloutArgs* args));
|
|
1031
|
+
ONIG_EXTERN
|
|
1032
|
+
const OnigUChar* onig_get_start_by_callout_args P_((OnigCalloutArgs* args));
|
|
1033
|
+
ONIG_EXTERN
|
|
1034
|
+
const OnigUChar* onig_get_right_range_by_callout_args P_((OnigCalloutArgs* args));
|
|
1035
|
+
ONIG_EXTERN
|
|
1036
|
+
const OnigUChar* onig_get_current_by_callout_args P_((OnigCalloutArgs* args));
|
|
1037
|
+
ONIG_EXTERN
|
|
1038
|
+
OnigRegex onig_get_regex_by_callout_args P_((OnigCalloutArgs* args));
|
|
1039
|
+
ONIG_EXTERN
|
|
1040
|
+
unsigned long onig_get_retry_counter_by_callout_args P_((OnigCalloutArgs* args));
|
|
1041
|
+
ONIG_EXTERN
|
|
1042
|
+
int onig_callout_tag_is_exist_at_callout_num P_((OnigRegex reg, int callout_num));
|
|
1043
|
+
ONIG_EXTERN
|
|
1044
|
+
const OnigUChar* onig_get_callout_tag_start P_((OnigRegex reg, int callout_num));
|
|
1045
|
+
ONIG_EXTERN
|
|
1046
|
+
const OnigUChar* onig_get_callout_tag_end P_((OnigRegex reg, int callout_num));
|
|
1047
|
+
ONIG_EXTERN
|
|
1048
|
+
int onig_get_callout_data_dont_clear_old P_((OnigRegex reg, OnigMatchParam* mp, int callout_num, int slot, OnigType* type, OnigValue* val));
|
|
1049
|
+
ONIG_EXTERN
|
|
1050
|
+
int onig_get_callout_data_by_callout_args_self_dont_clear_old P_((OnigCalloutArgs* args, int slot, OnigType* type, OnigValue* val));
|
|
1051
|
+
ONIG_EXTERN
|
|
1052
|
+
int onig_get_callout_data P_((OnigRegex reg, OnigMatchParam* mp, int callout_num, int slot, OnigType* type, OnigValue* val));
|
|
1053
|
+
ONIG_EXTERN
|
|
1054
|
+
int onig_get_callout_data_by_callout_args P_((OnigCalloutArgs* args, int callout_num, int slot, OnigType* type, OnigValue* val));
|
|
1055
|
+
ONIG_EXTERN
|
|
1056
|
+
int onig_get_callout_data_by_callout_args_self P_((OnigCalloutArgs* args, int slot, OnigType* type, OnigValue* val));
|
|
1057
|
+
ONIG_EXTERN
|
|
1058
|
+
int onig_set_callout_data P_((OnigRegex reg, OnigMatchParam* mp, int callout_num, int slot, OnigType type, OnigValue* val));
|
|
1059
|
+
ONIG_EXTERN
|
|
1060
|
+
int onig_set_callout_data_by_callout_args P_((OnigCalloutArgs* args, int callout_num, int slot, OnigType type, OnigValue* val));
|
|
1061
|
+
ONIG_EXTERN
|
|
1062
|
+
int onig_set_callout_data_by_callout_args_self P_((OnigCalloutArgs* args, int slot, OnigType type, OnigValue* val));
|
|
1063
|
+
ONIG_EXTERN
|
|
1064
|
+
int onig_get_capture_range_in_callout P_((OnigCalloutArgs* args, int mem_num, int* begin, int* end));
|
|
1065
|
+
ONIG_EXTERN
|
|
1066
|
+
int onig_get_used_stack_size_in_callout P_((OnigCalloutArgs* args, int* used_num, int* used_bytes));
|
|
1067
|
+
|
|
1068
|
+
/* builtin callout functions */
|
|
1069
|
+
ONIG_EXTERN
|
|
1070
|
+
int onig_builtin_fail P_((OnigCalloutArgs* args, void* user_data));
|
|
1071
|
+
ONIG_EXTERN
|
|
1072
|
+
int onig_builtin_mismatch P_((OnigCalloutArgs* args, void* user_data));
|
|
1073
|
+
ONIG_EXTERN
|
|
1074
|
+
int onig_builtin_error P_((OnigCalloutArgs* args, void* user_data));
|
|
1075
|
+
ONIG_EXTERN
|
|
1076
|
+
int onig_builtin_count P_((OnigCalloutArgs* args, void* user_data));
|
|
1077
|
+
ONIG_EXTERN
|
|
1078
|
+
int onig_builtin_total_count P_((OnigCalloutArgs* args, void* user_data));
|
|
1079
|
+
ONIG_EXTERN
|
|
1080
|
+
int onig_builtin_max P_((OnigCalloutArgs* args, void* user_data));
|
|
1081
|
+
ONIG_EXTERN
|
|
1082
|
+
int onig_builtin_cmp P_((OnigCalloutArgs* args, void* user_data));
|
|
1083
|
+
|
|
1084
|
+
ONIG_EXTERN
|
|
1085
|
+
int onig_setup_builtin_monitors_by_ascii_encoded_name P_((void* fp));
|
|
1086
|
+
|
|
837
1087
|
#ifdef __cplusplus
|
|
838
1088
|
}
|
|
839
1089
|
#endif
|