@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
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
# make_unicode_wb_data.py
|
|
4
|
+
# Copyright (c) 2019-2022 K.Kosako
|
|
5
|
+
|
|
6
|
+
import sys
|
|
7
|
+
import re
|
|
8
|
+
|
|
9
|
+
MAX_CODE_POINT = 0x10ffff
|
|
10
|
+
|
|
11
|
+
PR_TOTAL_REG = re.compile("#\s*Total\s+(?:code\s+points|elements):")
|
|
12
|
+
PR_LINE_REG = re.compile("([0-9A-Fa-f]+)(?:..([0-9A-Fa-f]+))?\s*;\s*(\w+)")
|
|
13
|
+
PA_LINE_REG = re.compile("(\w+)\s*;\s*(\w+)")
|
|
14
|
+
PVA_LINE_REG = re.compile("(sc|gc)\s*;\s*(\w+)\s*;\s*(\w+)(?:\s*;\s*(\w+))?")
|
|
15
|
+
BL_LINE_REG = re.compile("([0-9A-Fa-f]+)\.\.([0-9A-Fa-f]+)\s*;\s*(.*)")
|
|
16
|
+
VERSION_REG = re.compile("#\s*.*-(\d+)\.(\d+)\.(\d+)\.txt")
|
|
17
|
+
|
|
18
|
+
VERSION_INFO = [-1, -1, -1]
|
|
19
|
+
DIC = { }
|
|
20
|
+
PROPS = []
|
|
21
|
+
PropIndex = { }
|
|
22
|
+
|
|
23
|
+
def check_version_info(s):
|
|
24
|
+
m = VERSION_REG.match(s)
|
|
25
|
+
if m is not None:
|
|
26
|
+
VERSION_INFO[0] = int(m.group(1))
|
|
27
|
+
VERSION_INFO[1] = int(m.group(2))
|
|
28
|
+
VERSION_INFO[2] = int(m.group(3))
|
|
29
|
+
|
|
30
|
+
def print_ranges(ranges):
|
|
31
|
+
for (start, end) in ranges:
|
|
32
|
+
print "0x%06x, 0x%06x" % (start, end)
|
|
33
|
+
|
|
34
|
+
def print_prop_and_index(prop, i):
|
|
35
|
+
print "%-35s %3d" % (prop + ',', i)
|
|
36
|
+
PropIndex[prop] = i
|
|
37
|
+
|
|
38
|
+
def dic_find_by_value(dic, v):
|
|
39
|
+
for key, val in dic.items():
|
|
40
|
+
if val == v:
|
|
41
|
+
return key
|
|
42
|
+
|
|
43
|
+
return None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def normalize_ranges(in_ranges, sort=False):
|
|
47
|
+
if sort:
|
|
48
|
+
ranges = sorted(in_ranges)
|
|
49
|
+
else:
|
|
50
|
+
ranges = in_ranges
|
|
51
|
+
|
|
52
|
+
r = []
|
|
53
|
+
prev = None
|
|
54
|
+
for (start, end) in ranges:
|
|
55
|
+
if prev >= start - 1:
|
|
56
|
+
(pstart, pend) = r.pop()
|
|
57
|
+
end = max(pend, end)
|
|
58
|
+
start = pstart
|
|
59
|
+
|
|
60
|
+
r.append((start, end))
|
|
61
|
+
prev = end
|
|
62
|
+
|
|
63
|
+
return r
|
|
64
|
+
|
|
65
|
+
def inverse_ranges(in_ranges):
|
|
66
|
+
r = []
|
|
67
|
+
prev = 0x000000
|
|
68
|
+
for (start, end) in in_ranges:
|
|
69
|
+
if prev < start:
|
|
70
|
+
r.append((prev, start - 1))
|
|
71
|
+
|
|
72
|
+
prev = end + 1
|
|
73
|
+
|
|
74
|
+
if prev < MAX_CODE_POINT:
|
|
75
|
+
r.append((prev, MAX_CODE_POINT))
|
|
76
|
+
|
|
77
|
+
return r
|
|
78
|
+
|
|
79
|
+
def add_ranges(r1, r2):
|
|
80
|
+
r = r1 + r2
|
|
81
|
+
return normalize_ranges(r, True)
|
|
82
|
+
|
|
83
|
+
def sub_one_range(one_range, rs):
|
|
84
|
+
r = []
|
|
85
|
+
(s1, e1) = one_range
|
|
86
|
+
n = len(rs)
|
|
87
|
+
for i in range(0, n):
|
|
88
|
+
(s2, e2) = rs[i]
|
|
89
|
+
if s2 >= s1 and s2 <= e1:
|
|
90
|
+
if s2 > s1:
|
|
91
|
+
r.append((s1, s2 - 1))
|
|
92
|
+
if e2 >= e1:
|
|
93
|
+
return r
|
|
94
|
+
|
|
95
|
+
s1 = e2 + 1
|
|
96
|
+
elif s2 < s1 and e2 >= s1:
|
|
97
|
+
if e2 < e1:
|
|
98
|
+
s1 = e2 + 1
|
|
99
|
+
else:
|
|
100
|
+
return r
|
|
101
|
+
|
|
102
|
+
r.append((s1, e1))
|
|
103
|
+
return r
|
|
104
|
+
|
|
105
|
+
def sub_ranges(r1, r2):
|
|
106
|
+
r = []
|
|
107
|
+
for one_range in r1:
|
|
108
|
+
rs = sub_one_range(one_range, r2)
|
|
109
|
+
r.extend(rs)
|
|
110
|
+
|
|
111
|
+
return r
|
|
112
|
+
|
|
113
|
+
def add_ranges_in_dic(dic):
|
|
114
|
+
r = []
|
|
115
|
+
for k, v in dic.items():
|
|
116
|
+
r = r + v
|
|
117
|
+
|
|
118
|
+
return normalize_ranges(r, True)
|
|
119
|
+
|
|
120
|
+
def normalize_ranges_in_dic(dic, sort=False):
|
|
121
|
+
for k, v in dic.items():
|
|
122
|
+
r = normalize_ranges(v, sort)
|
|
123
|
+
dic[k] = r
|
|
124
|
+
|
|
125
|
+
def merge_dic(to_dic, from_dic):
|
|
126
|
+
to_keys = to_dic.keys()
|
|
127
|
+
from_keys = from_dic.keys()
|
|
128
|
+
common = list(set(to_keys) & set(from_keys))
|
|
129
|
+
if len(common) != 0:
|
|
130
|
+
print >> sys.stderr, "merge_dic: collision: %s" % sorted(common)
|
|
131
|
+
|
|
132
|
+
to_dic.update(from_dic)
|
|
133
|
+
|
|
134
|
+
def merge_props(to_props, from_props):
|
|
135
|
+
common = list(set(to_props) & set(from_props))
|
|
136
|
+
if len(common) != 0:
|
|
137
|
+
print >> sys.stderr, "merge_props: collision: %s" % sorted(common)
|
|
138
|
+
|
|
139
|
+
to_props.extend(from_props)
|
|
140
|
+
|
|
141
|
+
def add_range_into_dic(dic, name, start, end):
|
|
142
|
+
d = dic.get(name, None)
|
|
143
|
+
if d is None:
|
|
144
|
+
d = [(start, end)]
|
|
145
|
+
dic[name] = d
|
|
146
|
+
else:
|
|
147
|
+
d.append((start, end))
|
|
148
|
+
|
|
149
|
+
def list_sub(a, b):
|
|
150
|
+
x = set(a) - set(b)
|
|
151
|
+
return list(x)
|
|
152
|
+
|
|
153
|
+
def parse_properties(path):
|
|
154
|
+
with open(path, 'r') as f:
|
|
155
|
+
dic = { }
|
|
156
|
+
prop = None
|
|
157
|
+
props = []
|
|
158
|
+
for line in f:
|
|
159
|
+
s = line.strip()
|
|
160
|
+
if len(s) == 0:
|
|
161
|
+
continue
|
|
162
|
+
|
|
163
|
+
if s[0] == '#':
|
|
164
|
+
if VERSION_INFO[0] < 0:
|
|
165
|
+
check_version_info(s)
|
|
166
|
+
|
|
167
|
+
m = PR_LINE_REG.match(s)
|
|
168
|
+
if m:
|
|
169
|
+
prop = m.group(3)
|
|
170
|
+
if m.group(2):
|
|
171
|
+
start = int(m.group(1), 16)
|
|
172
|
+
end = int(m.group(2), 16)
|
|
173
|
+
add_range_into_dic(dic, prop, start, end)
|
|
174
|
+
else:
|
|
175
|
+
start = int(m.group(1), 16)
|
|
176
|
+
add_range_into_dic(dic, prop, start, start)
|
|
177
|
+
|
|
178
|
+
elif PR_TOTAL_REG.match(s) is not None:
|
|
179
|
+
props.append(prop)
|
|
180
|
+
|
|
181
|
+
normalize_ranges_in_dic(dic)
|
|
182
|
+
return (dic, props)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
### main ###
|
|
186
|
+
argv = sys.argv
|
|
187
|
+
argc = len(argv)
|
|
188
|
+
|
|
189
|
+
dic, props = parse_properties('WordBreakProperty.txt')
|
|
190
|
+
merge_dic(DIC, dic)
|
|
191
|
+
merge_props(PROPS, props)
|
|
192
|
+
|
|
193
|
+
PROPS = sorted(PROPS)
|
|
194
|
+
|
|
195
|
+
print '/* unicode_wb_data.c: Generated by make_unicode_wb_data.py. */'
|
|
196
|
+
COPYRIGHT = '''
|
|
197
|
+
/*-
|
|
198
|
+
* Copyright (c) 2019-2022 K.Kosako
|
|
199
|
+
* All rights reserved.
|
|
200
|
+
*
|
|
201
|
+
* Redistribution and use in source and binary forms, with or without
|
|
202
|
+
* modification, are permitted provided that the following conditions
|
|
203
|
+
* are met:
|
|
204
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
205
|
+
* notice, this list of conditions and the following disclaimer.
|
|
206
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
207
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
208
|
+
* documentation and/or other materials provided with the distribution.
|
|
209
|
+
*
|
|
210
|
+
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
211
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
212
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
213
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
214
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
215
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
216
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
217
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
218
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
219
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
220
|
+
* SUCH DAMAGE.
|
|
221
|
+
*/
|
|
222
|
+
'''.strip()
|
|
223
|
+
|
|
224
|
+
print COPYRIGHT
|
|
225
|
+
print ''
|
|
226
|
+
if VERSION_INFO[0] < 0:
|
|
227
|
+
raise RuntimeError("Version is not found.")
|
|
228
|
+
|
|
229
|
+
print "#define WORD_BREAK_PROPERTY_VERSION %02d%02d%02d" % (VERSION_INFO[0], VERSION_INFO[1], VERSION_INFO[2])
|
|
230
|
+
print ''
|
|
231
|
+
|
|
232
|
+
ranges = []
|
|
233
|
+
for prop in PROPS:
|
|
234
|
+
rs = DIC[prop]
|
|
235
|
+
for (start, end) in rs:
|
|
236
|
+
ranges.append((start, end, prop))
|
|
237
|
+
|
|
238
|
+
ranges = sorted(ranges, key=lambda x: x[0])
|
|
239
|
+
|
|
240
|
+
prev = -1
|
|
241
|
+
for (start, end, prop) in ranges:
|
|
242
|
+
if prev >= start:
|
|
243
|
+
raise ValueError("{2}:{0} - {1} range overlap prev value {3}".format(start, end, prop, prev))
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
print '/*'
|
|
247
|
+
for prop in PROPS:
|
|
248
|
+
print "%s" % prop
|
|
249
|
+
print '*/'
|
|
250
|
+
print ''
|
|
251
|
+
|
|
252
|
+
num_ranges = len(ranges)
|
|
253
|
+
print "static int WB_RANGE_NUM = %d;" % num_ranges
|
|
254
|
+
|
|
255
|
+
print 'static WB_RANGE_TYPE WB_RANGES[] = {'
|
|
256
|
+
for i, (start, end, prop) in enumerate(ranges):
|
|
257
|
+
if i == num_ranges - 1:
|
|
258
|
+
comma = ''
|
|
259
|
+
else:
|
|
260
|
+
comma = ','
|
|
261
|
+
|
|
262
|
+
type_name = 'WB_' + prop
|
|
263
|
+
print " {0x%06x, 0x%06x, %s }%s" % (start, end, type_name, comma)
|
|
264
|
+
|
|
265
|
+
print '};'
|
|
266
|
+
|
|
267
|
+
sys.exit(0)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
mktable.c
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2022 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -269,7 +269,7 @@ static int IsBlank(int enc, int c)
|
|
|
269
269
|
if (enc == ASCII)
|
|
270
270
|
return isblank(c);
|
|
271
271
|
|
|
272
|
-
if (c == 0x09
|
|
272
|
+
if (c == 0x09 || c == 0x20) return 1;
|
|
273
273
|
|
|
274
274
|
switch (enc) {
|
|
275
275
|
case UNICODE_ISO_8859_1:
|
|
@@ -308,7 +308,7 @@ static int IsCntrl(int enc, int c)
|
|
|
308
308
|
if (enc == ASCII)
|
|
309
309
|
return iscntrl(c);
|
|
310
310
|
|
|
311
|
-
if (c >= 0x00
|
|
311
|
+
if (c >= 0x00 && c <= 0x1F) return 1;
|
|
312
312
|
|
|
313
313
|
switch (enc) {
|
|
314
314
|
case UNICODE_ISO_8859_1:
|
|
@@ -376,10 +376,10 @@ static int IsGraph(int enc, int c)
|
|
|
376
376
|
case ISO_8859_3:
|
|
377
377
|
if (c >= 0xa1) {
|
|
378
378
|
if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 ||
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
c == 0xe3 || c == 0xf0)
|
|
380
|
+
return 0;
|
|
381
381
|
else
|
|
382
|
-
|
|
382
|
+
return 1;
|
|
383
383
|
}
|
|
384
384
|
break;
|
|
385
385
|
|
|
@@ -392,8 +392,8 @@ static int IsGraph(int enc, int c)
|
|
|
392
392
|
|
|
393
393
|
case ISO_8859_7:
|
|
394
394
|
if (c >= 0xa1 && c <= 0xfe &&
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
c != 0xa4 && c != 0xa5 && c != 0xaa &&
|
|
396
|
+
c != 0xae && c != 0xd2) return 1;
|
|
397
397
|
break;
|
|
398
398
|
|
|
399
399
|
case ISO_8859_8:
|
|
@@ -583,10 +583,10 @@ static int IsPrint(int enc, int c)
|
|
|
583
583
|
case ISO_8859_3:
|
|
584
584
|
if (c >= 0xa0) {
|
|
585
585
|
if (c == 0xa5 || c == 0xae || c == 0xbe || c == 0xc3 || c == 0xd0 ||
|
|
586
|
-
|
|
587
|
-
|
|
586
|
+
c == 0xe3 || c == 0xf0)
|
|
587
|
+
return 0;
|
|
588
588
|
else
|
|
589
|
-
|
|
589
|
+
return 1;
|
|
590
590
|
}
|
|
591
591
|
break;
|
|
592
592
|
|
|
@@ -600,8 +600,8 @@ static int IsPrint(int enc, int c)
|
|
|
600
600
|
|
|
601
601
|
case ISO_8859_7:
|
|
602
602
|
if (c >= 0xa0 && c <= 0xfe &&
|
|
603
|
-
|
|
604
|
-
|
|
603
|
+
c != 0xa4 && c != 0xa5 && c != 0xaa &&
|
|
604
|
+
c != 0xae && c != 0xd2) return 1;
|
|
605
605
|
break;
|
|
606
606
|
|
|
607
607
|
case ISO_8859_8:
|
|
@@ -638,24 +638,28 @@ static int IsPunct(int enc, int c)
|
|
|
638
638
|
if (enc == ASCII)
|
|
639
639
|
return ispunct(c);
|
|
640
640
|
|
|
641
|
-
if (enc == UNICODE_ISO_8859_1) {
|
|
642
|
-
if (c == 0x24 || c == 0x2b || c == 0x5e || c == 0x60 ||
|
|
643
|
-
c == 0x7c || c == 0x7e) return 1;
|
|
644
|
-
if (c >= 0x3c && c <= 0x3e) return 1;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
641
|
if (c >= 0x21 && c <= 0x2f) return 1;
|
|
648
642
|
if (c >= 0x3a && c <= 0x40) return 1;
|
|
649
643
|
if (c >= 0x5b && c <= 0x60) return 1;
|
|
650
644
|
if (c >= 0x7b && c <= 0x7e) return 1;
|
|
651
645
|
|
|
646
|
+
if (enc == UNICODE_ISO_8859_1) {
|
|
647
|
+
if (c < 0x80) return 0;
|
|
648
|
+
|
|
649
|
+
if (c >= 0xa1 && c <= 0xa9) return 1;
|
|
650
|
+
if (c >= 0xab && c <= 0xac) return 1;
|
|
651
|
+
if (c >= 0xae && c <= 0xb1) return 1;
|
|
652
|
+
if (c == 0xb4) return 1;
|
|
653
|
+
if (c >= 0xb6 && c <= 0xb8) return 1;
|
|
654
|
+
if (c == 0xbb || c == 0xbf || c == 0xd7 || c == 0xf7) return 1;
|
|
655
|
+
return 0;
|
|
656
|
+
}
|
|
657
|
+
|
|
652
658
|
switch (enc) {
|
|
653
659
|
case ISO_8859_1:
|
|
654
660
|
case ISO_8859_9:
|
|
655
661
|
case ISO_8859_15:
|
|
656
662
|
if (c == 0xad) return 1;
|
|
657
|
-
/* fall */
|
|
658
|
-
case UNICODE_ISO_8859_1:
|
|
659
663
|
if (c == 0xa1) return 1;
|
|
660
664
|
if (c == 0xab) return 1;
|
|
661
665
|
if (c == 0xb7) return 1;
|
|
@@ -1012,7 +1016,7 @@ static int IsWord(int enc, int c)
|
|
|
1012
1016
|
case ISO_8859_10:
|
|
1013
1017
|
if (c >= 0xa1 && c <= 0xff) {
|
|
1014
1018
|
if (c != 0xa7 && c != 0xad && c != 0xb0 && c != 0xb7 && c != 0xbd)
|
|
1015
|
-
|
|
1019
|
+
return 1;
|
|
1016
1020
|
}
|
|
1017
1021
|
break;
|
|
1018
1022
|
|
|
@@ -1037,7 +1041,7 @@ static int IsWord(int enc, int c)
|
|
|
1037
1041
|
case ISO_8859_14:
|
|
1038
1042
|
if (c >= 0xa1 && c <= 0xff) {
|
|
1039
1043
|
if (c == 0xa3 || c == 0xa7 || c == 0xa9 || c == 0xad || c == 0xae ||
|
|
1040
|
-
|
|
1044
|
+
c == 0xb6) return 0;
|
|
1041
1045
|
return 1;
|
|
1042
1046
|
}
|
|
1043
1047
|
break;
|
|
@@ -1102,7 +1106,7 @@ static int IsAscii(int enc ARG_UNUSED, int c)
|
|
|
1102
1106
|
|
|
1103
1107
|
static int IsNewline(int enc ARG_UNUSED, int c)
|
|
1104
1108
|
{
|
|
1105
|
-
if (c ==
|
|
1109
|
+
if (c == NEWLINE_CODE) return 1;
|
|
1106
1110
|
return 0;
|
|
1107
1111
|
}
|
|
1108
1112
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
onig_init.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2016 K.Kosako
|
|
5
|
+
* Copyright (c) 2016-2019 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* SUCH DAMAGE.
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
#include "
|
|
30
|
+
#include "regint.h"
|
|
31
31
|
|
|
32
32
|
/* onig_init(): deprecated function */
|
|
33
33
|
extern int
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
oniggnu.h - Oniguruma (regular expression library)
|
|
5
5
|
**********************************************************************/
|
|
6
6
|
/*-
|
|
7
|
-
* Copyright (c) 2002-
|
|
7
|
+
* Copyright (c) 2002-2019 K.Kosako
|
|
8
8
|
* All rights reserved.
|
|
9
9
|
*
|
|
10
10
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -35,10 +35,12 @@
|
|
|
35
35
|
extern "C" {
|
|
36
36
|
#endif
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
enum {
|
|
39
|
+
RE_MBCTYPE_ASCII = 0,
|
|
40
|
+
RE_MBCTYPE_EUC = 1,
|
|
41
|
+
RE_MBCTYPE_SJIS = 2,
|
|
42
|
+
RE_MBCTYPE_UTF8 = 3
|
|
43
|
+
};
|
|
42
44
|
|
|
43
45
|
/* GNU regex options */
|
|
44
46
|
#ifndef RE_NREGS
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
onigposix.h - Oniguruma (regular expression library)
|
|
5
5
|
**********************************************************************/
|
|
6
6
|
/*-
|
|
7
|
-
* Copyright (c) 2002-
|
|
7
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
8
8
|
* All rights reserved.
|
|
9
9
|
*
|
|
10
10
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -28,7 +28,9 @@
|
|
|
28
28
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
29
29
|
* SUCH DAMAGE.
|
|
30
30
|
*/
|
|
31
|
-
#
|
|
31
|
+
#ifndef ONIG_NO_STANDARD_C_HEADERS
|
|
32
|
+
#include <stddef.h>
|
|
33
|
+
#endif
|
|
32
34
|
|
|
33
35
|
#ifdef __cplusplus
|
|
34
36
|
extern "C" {
|
|
@@ -72,19 +74,19 @@ extern "C" {
|
|
|
72
74
|
#define REG_POSIX_ENCODING_UTF16_LE 5
|
|
73
75
|
|
|
74
76
|
|
|
75
|
-
typedef int
|
|
77
|
+
typedef int onig_posix_regoff_t;
|
|
76
78
|
|
|
77
79
|
typedef struct {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
80
|
+
onig_posix_regoff_t rm_so;
|
|
81
|
+
onig_posix_regoff_t rm_eo;
|
|
82
|
+
} onig_posix_regmatch_t;
|
|
81
83
|
|
|
82
84
|
/* POSIX regex_t */
|
|
83
85
|
typedef struct {
|
|
84
86
|
void* onig; /* Oniguruma regex_t* */
|
|
85
87
|
size_t re_nsub;
|
|
86
88
|
int comp_options;
|
|
87
|
-
}
|
|
89
|
+
} onig_posix_regex_t;
|
|
88
90
|
|
|
89
91
|
|
|
90
92
|
#ifndef P_
|
|
@@ -95,9 +97,10 @@ typedef struct {
|
|
|
95
97
|
#endif
|
|
96
98
|
#endif
|
|
97
99
|
|
|
100
|
+
#ifndef ONIG_STATIC
|
|
98
101
|
#ifndef ONIG_EXTERN
|
|
99
102
|
#if defined(_WIN32) && !defined(__GNUC__)
|
|
100
|
-
#if defined(
|
|
103
|
+
#if defined(ONIGURUMA_EXPORT)
|
|
101
104
|
#define ONIG_EXTERN extern __declspec(dllexport)
|
|
102
105
|
#else
|
|
103
106
|
#define ONIG_EXTERN extern __declspec(dllimport)
|
|
@@ -108,6 +111,9 @@ typedef struct {
|
|
|
108
111
|
#ifndef ONIG_EXTERN
|
|
109
112
|
#define ONIG_EXTERN extern
|
|
110
113
|
#endif
|
|
114
|
+
#else
|
|
115
|
+
#define ONIG_EXTERN extern
|
|
116
|
+
#endif
|
|
111
117
|
|
|
112
118
|
#ifndef ONIGURUMA_H
|
|
113
119
|
typedef unsigned int OnigOptionType;
|
|
@@ -128,6 +134,7 @@ ONIG_EXTERN OnigSyntaxType OnigSyntaxGnuRegex;
|
|
|
128
134
|
ONIG_EXTERN OnigSyntaxType OnigSyntaxJava;
|
|
129
135
|
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl;
|
|
130
136
|
ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby;
|
|
137
|
+
ONIG_EXTERN OnigSyntaxType OnigSyntaxOniguruma;
|
|
131
138
|
|
|
132
139
|
/* predefined syntaxes (see regsyntax.c) */
|
|
133
140
|
#define ONIG_SYNTAX_POSIX_BASIC (&OnigSyntaxPosixBasic)
|
|
@@ -138,6 +145,7 @@ ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby;
|
|
|
138
145
|
#define ONIG_SYNTAX_JAVA (&OnigSyntaxJava)
|
|
139
146
|
#define ONIG_SYNTAX_PERL (&OnigSyntaxPerl)
|
|
140
147
|
#define ONIG_SYNTAX_RUBY (&OnigSyntaxRuby)
|
|
148
|
+
#define ONIG_SYNTAX_ONIGURUMA (&OnigSyntaxOniguruma)
|
|
141
149
|
/* default syntax */
|
|
142
150
|
#define ONIG_SYNTAX_DEFAULT OnigDefaultSyntax
|
|
143
151
|
|
|
@@ -147,20 +155,36 @@ ONIG_EXTERN int onig_set_default_syntax P_((OnigSyntaxType* syntax));
|
|
|
147
155
|
ONIG_EXTERN void onig_copy_syntax P_((OnigSyntaxType* to, OnigSyntaxType* from));
|
|
148
156
|
ONIG_EXTERN const char* onig_version P_((void));
|
|
149
157
|
ONIG_EXTERN const char* onig_copyright P_((void));
|
|
158
|
+
ONIG_EXTERN int onig_end P_((void));
|
|
150
159
|
|
|
151
160
|
#endif /* ONIGURUMA_H */
|
|
152
161
|
|
|
153
162
|
|
|
154
|
-
ONIG_EXTERN int
|
|
155
|
-
ONIG_EXTERN int
|
|
156
|
-
ONIG_EXTERN void
|
|
157
|
-
ONIG_EXTERN size_t
|
|
163
|
+
ONIG_EXTERN int onig_posix_regcomp P_((onig_posix_regex_t* reg, const char* pat, int options));
|
|
164
|
+
ONIG_EXTERN int onig_posix_regexec P_((onig_posix_regex_t* reg, const char* str, size_t nmatch, onig_posix_regmatch_t* matches, int options));
|
|
165
|
+
ONIG_EXTERN void onig_posix_regfree P_((onig_posix_regex_t* reg));
|
|
166
|
+
ONIG_EXTERN size_t onig_posix_regerror P_((int code, const onig_posix_regex_t* reg, char* buf, size_t size));
|
|
158
167
|
|
|
159
168
|
/* extended API */
|
|
160
|
-
ONIG_EXTERN void
|
|
161
|
-
ONIG_EXTERN int
|
|
162
|
-
ONIG_EXTERN int
|
|
163
|
-
ONIG_EXTERN int
|
|
169
|
+
ONIG_EXTERN void onig_posix_reg_set_encoding P_((int enc));
|
|
170
|
+
ONIG_EXTERN int onig_posix_reg_name_to_group_numbers P_((onig_posix_regex_t* reg, const unsigned char* name, const unsigned char* name_end, int** nums));
|
|
171
|
+
ONIG_EXTERN int onig_posix_reg_foreach_name P_((onig_posix_regex_t* reg, int (*func)(const unsigned char*, const unsigned char*,int,int*,onig_posix_regex_t*,void*), void* arg));
|
|
172
|
+
ONIG_EXTERN int onig_posix_reg_number_of_names P_((onig_posix_regex_t* reg));
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/* aliases */
|
|
176
|
+
#define regex_t onig_posix_regex_t
|
|
177
|
+
#define regmatch_t onig_posix_regmatch_t
|
|
178
|
+
#define regoff_t onig_posix_regoff_t
|
|
179
|
+
|
|
180
|
+
#define regcomp onig_posix_regcomp
|
|
181
|
+
#define regexec onig_posix_regexec
|
|
182
|
+
#define regfree onig_posix_regfree
|
|
183
|
+
#define regerror onig_posix_regerror
|
|
184
|
+
#define reg_set_encoding onig_posix_reg_set_encoding
|
|
185
|
+
#define reg_name_to_group_numbers onig_posix_reg_name_to_group_numbers
|
|
186
|
+
#define reg_foreach_name onig_posix_reg_foreach_name
|
|
187
|
+
#define reg_number_of_names onig_posix_reg_number_of_names
|
|
164
188
|
|
|
165
189
|
#ifdef __cplusplus
|
|
166
190
|
}
|