@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
iso8859_1.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
|
|
30
30
|
#include "regenc.h"
|
|
31
31
|
|
|
32
|
+
#define LARGE_S 0x53
|
|
33
|
+
#define SMALL_S 0x73
|
|
34
|
+
|
|
32
35
|
#define ENC_IS_ISO_8859_1_CTYPE(code,ctype) \
|
|
33
36
|
((EncISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
|
|
34
37
|
|
|
@@ -103,7 +106,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
|
|
|
103
106
|
|
|
104
107
|
static int
|
|
105
108
|
apply_all_case_fold(OnigCaseFoldType flag,
|
|
106
|
-
|
|
109
|
+
OnigApplyAllCaseFoldFunc f, void* arg)
|
|
107
110
|
{
|
|
108
111
|
return onigenc_apply_all_case_fold_with_map(
|
|
109
112
|
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
@@ -111,88 +114,107 @@ apply_all_case_fold(OnigCaseFoldType flag,
|
|
|
111
114
|
}
|
|
112
115
|
|
|
113
116
|
static int
|
|
114
|
-
get_case_fold_codes_by_str(OnigCaseFoldType flag
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
get_case_fold_codes_by_str(OnigCaseFoldType flag,
|
|
118
|
+
const OnigUChar* p, const OnigUChar* end,
|
|
119
|
+
OnigCaseFoldCodeItem items[])
|
|
117
120
|
{
|
|
121
|
+
static OnigUChar sa[] = { LARGE_S, SMALL_S };
|
|
122
|
+
int i, j, n;
|
|
123
|
+
|
|
118
124
|
if (0x41 <= *p && *p <= 0x5a) {
|
|
125
|
+
if (*p == LARGE_S && end > p + 1
|
|
126
|
+
&& (*(p+1) == LARGE_S || *(p+1) == SMALL_S)
|
|
127
|
+
&& CASE_FOLD_IS_NOT_ASCII_ONLY(flag)) { /* SS */
|
|
128
|
+
ss_combination:
|
|
129
|
+
items[0].byte_len = 2;
|
|
130
|
+
items[0].code_len = 1;
|
|
131
|
+
items[0].code[0] = (OnigCodePoint )0xdf;
|
|
132
|
+
|
|
133
|
+
n = 1;
|
|
134
|
+
for (i = 0; i < 2; i++) {
|
|
135
|
+
for (j = 0; j < 2; j++) {
|
|
136
|
+
if (sa[i] == *p && sa[j] == *(p+1))
|
|
137
|
+
continue;
|
|
138
|
+
|
|
139
|
+
items[n].byte_len = 2;
|
|
140
|
+
items[n].code_len = 2;
|
|
141
|
+
items[n].code[0] = (OnigCodePoint )sa[i];
|
|
142
|
+
items[n].code[1] = (OnigCodePoint )sa[j];
|
|
143
|
+
n++;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
return 4;
|
|
147
|
+
}
|
|
148
|
+
|
|
119
149
|
items[0].byte_len = 1;
|
|
120
150
|
items[0].code_len = 1;
|
|
121
151
|
items[0].code[0] = (OnigCodePoint )(*p + 0x20);
|
|
122
|
-
|
|
123
|
-
&& (*(p+1) == 0x53 || *(p+1) == 0x73)) { /* SS */
|
|
124
|
-
items[1].byte_len = 2;
|
|
125
|
-
items[1].code_len = 1;
|
|
126
|
-
items[1].code[0] = (OnigCodePoint )0xdf;
|
|
127
|
-
return 2;
|
|
128
|
-
}
|
|
129
|
-
else
|
|
130
|
-
return 1;
|
|
152
|
+
return 1;
|
|
131
153
|
}
|
|
132
154
|
else if (0x61 <= *p && *p <= 0x7a) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
&& (*(p+1) == 0x73 || *(p+1) == 0x53)) { /* ss */
|
|
138
|
-
items[1].byte_len = 2;
|
|
139
|
-
items[1].code_len = 1;
|
|
140
|
-
items[1].code[0] = (OnigCodePoint )0xdf;
|
|
141
|
-
return 2;
|
|
155
|
+
if (*p == SMALL_S && end > p + 1
|
|
156
|
+
&& (*(p+1) == SMALL_S || *(p+1) == LARGE_S)
|
|
157
|
+
&& CASE_FOLD_IS_NOT_ASCII_ONLY(flag)) { /* ss */
|
|
158
|
+
goto ss_combination;
|
|
142
159
|
}
|
|
143
|
-
|
|
144
|
-
return 1;
|
|
145
|
-
}
|
|
146
|
-
else if (0xc0 <= *p && *p <= 0xcf) {
|
|
160
|
+
|
|
147
161
|
items[0].byte_len = 1;
|
|
148
162
|
items[0].code_len = 1;
|
|
149
|
-
items[0].code[0] = (OnigCodePoint )(*p
|
|
163
|
+
items[0].code[0] = (OnigCodePoint )(*p - 0x20);
|
|
150
164
|
return 1;
|
|
151
165
|
}
|
|
152
|
-
else if (
|
|
153
|
-
if (*p
|
|
166
|
+
else if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag)) {
|
|
167
|
+
if (0xc0 <= *p && *p <= 0xcf) {
|
|
154
168
|
items[0].byte_len = 1;
|
|
155
|
-
items[0].code_len =
|
|
156
|
-
items[0].code[0] = (OnigCodePoint )
|
|
157
|
-
|
|
169
|
+
items[0].code_len = 1;
|
|
170
|
+
items[0].code[0] = (OnigCodePoint )(*p + 0x20);
|
|
171
|
+
return 1;
|
|
172
|
+
}
|
|
173
|
+
else if (0xd0 <= *p && *p <= 0xdf) {
|
|
174
|
+
if (*p == 0xdf) {
|
|
175
|
+
items[0].byte_len = 1;
|
|
176
|
+
items[0].code_len = 2;
|
|
177
|
+
items[0].code[0] = (OnigCodePoint )'s';
|
|
178
|
+
items[0].code[1] = (OnigCodePoint )'s';
|
|
158
179
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
180
|
+
items[1].byte_len = 1;
|
|
181
|
+
items[1].code_len = 2;
|
|
182
|
+
items[1].code[0] = (OnigCodePoint )'S';
|
|
183
|
+
items[1].code[1] = (OnigCodePoint )'S';
|
|
163
184
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
185
|
+
items[2].byte_len = 1;
|
|
186
|
+
items[2].code_len = 2;
|
|
187
|
+
items[2].code[0] = (OnigCodePoint )'s';
|
|
188
|
+
items[2].code[1] = (OnigCodePoint )'S';
|
|
168
189
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
190
|
+
items[3].byte_len = 1;
|
|
191
|
+
items[3].code_len = 2;
|
|
192
|
+
items[3].code[0] = (OnigCodePoint )'S';
|
|
193
|
+
items[3].code[1] = (OnigCodePoint )'s';
|
|
173
194
|
|
|
174
|
-
|
|
195
|
+
return 4;
|
|
196
|
+
}
|
|
197
|
+
else if (*p != 0xd7) {
|
|
198
|
+
items[0].byte_len = 1;
|
|
199
|
+
items[0].code_len = 1;
|
|
200
|
+
items[0].code[0] = (OnigCodePoint )(*p + 0x20);
|
|
201
|
+
return 1;
|
|
202
|
+
}
|
|
175
203
|
}
|
|
176
|
-
else if (*p
|
|
177
|
-
items[0].byte_len = 1;
|
|
178
|
-
items[0].code_len = 1;
|
|
179
|
-
items[0].code[0] = (OnigCodePoint )(*p + 0x20);
|
|
180
|
-
return 1;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
else if (0xe0 <= *p && *p <= 0xef) {
|
|
184
|
-
items[0].byte_len = 1;
|
|
185
|
-
items[0].code_len = 1;
|
|
186
|
-
items[0].code[0] = (OnigCodePoint )(*p - 0x20);
|
|
187
|
-
return 1;
|
|
188
|
-
}
|
|
189
|
-
else if (0xf0 <= *p && *p <= 0xfe) {
|
|
190
|
-
if (*p != 0xf7) {
|
|
204
|
+
else if (0xe0 <= *p && *p <= 0xef) {
|
|
191
205
|
items[0].byte_len = 1;
|
|
192
206
|
items[0].code_len = 1;
|
|
193
207
|
items[0].code[0] = (OnigCodePoint )(*p - 0x20);
|
|
194
208
|
return 1;
|
|
195
209
|
}
|
|
210
|
+
else if (0xf0 <= *p && *p <= 0xfe) {
|
|
211
|
+
if (*p != 0xf7) {
|
|
212
|
+
items[0].byte_len = 1;
|
|
213
|
+
items[0].code_len = 1;
|
|
214
|
+
items[0].code[0] = (OnigCodePoint )(*p - 0x20);
|
|
215
|
+
return 1;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
196
218
|
}
|
|
197
219
|
|
|
198
220
|
return 0;
|
|
@@ -200,7 +222,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag ARG_UNUSED,
|
|
|
200
222
|
|
|
201
223
|
static int
|
|
202
224
|
mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
|
|
203
|
-
|
|
225
|
+
const UChar* end ARG_UNUSED, UChar* lower)
|
|
204
226
|
{
|
|
205
227
|
const UChar* p = *pp;
|
|
206
228
|
|
|
@@ -211,37 +233,14 @@ mbc_case_fold(OnigCaseFoldType flag, const UChar** pp,
|
|
|
211
233
|
return 2;
|
|
212
234
|
}
|
|
213
235
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
#if 0
|
|
220
|
-
static int
|
|
221
|
-
is_mbc_ambiguous(OnigCaseFoldType flag,
|
|
222
|
-
const UChar** pp, const UChar* end)
|
|
223
|
-
{
|
|
224
|
-
int v;
|
|
225
|
-
const UChar* p = *pp;
|
|
226
|
-
|
|
227
|
-
if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
|
|
228
|
-
(*pp)++;
|
|
229
|
-
return TRUE;
|
|
230
|
-
}
|
|
236
|
+
if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p))
|
|
237
|
+
*lower = ONIGENC_ISO_8859_1_TO_LOWER_CASE(*p);
|
|
238
|
+
else
|
|
239
|
+
*lower = *p;
|
|
231
240
|
|
|
232
241
|
(*pp)++;
|
|
233
|
-
|
|
234
|
-
if ((v | BIT_CTYPE_LOWER) != 0) {
|
|
235
|
-
/* 0xdf, 0xaa, 0xb5, 0xba are lower case letter, but can't convert. */
|
|
236
|
-
if (*p >= 0xaa && *p <= 0xba)
|
|
237
|
-
return FALSE;
|
|
238
|
-
else
|
|
239
|
-
return TRUE;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
return (v != 0 ? TRUE : FALSE);
|
|
242
|
+
return 1;
|
|
243
243
|
}
|
|
244
|
-
#endif
|
|
245
244
|
|
|
246
245
|
static int
|
|
247
246
|
is_code_ctype(OnigCodePoint code, unsigned int ctype)
|
|
@@ -271,5 +270,7 @@ OnigEncodingType OnigEncodingISO_8859_1 = {
|
|
|
271
270
|
onigenc_always_true_is_allowed_reverse_match,
|
|
272
271
|
NULL, /* init */
|
|
273
272
|
NULL, /* is_initialized */
|
|
274
|
-
onigenc_always_true_is_valid_mbc_string
|
|
273
|
+
onigenc_always_true_is_valid_mbc_string,
|
|
274
|
+
ENC_FLAG_ASCII_COMPATIBLE|ENC_FLAG_SKIP_OFFSET_1,
|
|
275
|
+
0, 0
|
|
275
276
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
iso8859_10.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_10_CtypeTable[256] = {
|
|
|
105
105
|
|
|
106
106
|
static int
|
|
107
107
|
mbc_case_fold(OnigCaseFoldType flag,
|
|
108
|
-
|
|
108
|
+
const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
|
|
109
109
|
{
|
|
110
110
|
const UChar* p = *pp;
|
|
111
111
|
|
|
@@ -116,32 +116,14 @@ mbc_case_fold(OnigCaseFoldType flag,
|
|
|
116
116
|
return 2;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#if 0
|
|
125
|
-
static int
|
|
126
|
-
is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
|
|
127
|
-
{
|
|
128
|
-
int v;
|
|
129
|
-
const UChar* p = *pp;
|
|
130
|
-
|
|
131
|
-
if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
|
|
132
|
-
(*pp)++;
|
|
133
|
-
return TRUE;
|
|
134
|
-
}
|
|
119
|
+
if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p))
|
|
120
|
+
*lower = ENC_ISO_8859_10_TO_LOWER_CASE(*p);
|
|
121
|
+
else
|
|
122
|
+
*lower = *p;
|
|
135
123
|
|
|
136
124
|
(*pp)++;
|
|
137
|
-
|
|
138
|
-
if ((v | BIT_CTYPE_LOWER) != 0) {
|
|
139
|
-
return TRUE;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return (v != 0 ? TRUE : FALSE);
|
|
125
|
+
return 1;
|
|
143
126
|
}
|
|
144
|
-
#endif
|
|
145
127
|
|
|
146
128
|
static int
|
|
147
129
|
is_code_ctype(OnigCodePoint code, unsigned int ctype)
|
|
@@ -203,7 +185,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
|
|
|
203
185
|
|
|
204
186
|
static int
|
|
205
187
|
apply_all_case_fold(OnigCaseFoldType flag,
|
|
206
|
-
|
|
188
|
+
OnigApplyAllCaseFoldFunc f, void* arg)
|
|
207
189
|
{
|
|
208
190
|
return onigenc_apply_all_case_fold_with_map(
|
|
209
191
|
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
@@ -215,8 +197,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
|
|
|
215
197
|
const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
|
|
216
198
|
{
|
|
217
199
|
return onigenc_get_case_fold_codes_by_str_with_map(
|
|
218
|
-
|
|
219
|
-
|
|
200
|
+
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
201
|
+
flag, p, end, items);
|
|
220
202
|
}
|
|
221
203
|
|
|
222
204
|
OnigEncodingType OnigEncodingISO_8859_10 = {
|
|
@@ -238,5 +220,7 @@ OnigEncodingType OnigEncodingISO_8859_10 = {
|
|
|
238
220
|
onigenc_always_true_is_allowed_reverse_match,
|
|
239
221
|
NULL, /* init */
|
|
240
222
|
NULL, /* is_initialized */
|
|
241
|
-
onigenc_always_true_is_valid_mbc_string
|
|
223
|
+
onigenc_always_true_is_valid_mbc_string,
|
|
224
|
+
ENC_FLAG_ASCII_COMPATIBLE|ENC_FLAG_SKIP_OFFSET_1,
|
|
225
|
+
0, 0
|
|
242
226
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
iso8859_11.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2019 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -95,5 +95,7 @@ OnigEncodingType OnigEncodingISO_8859_11 = {
|
|
|
95
95
|
onigenc_always_true_is_allowed_reverse_match,
|
|
96
96
|
NULL, /* init */
|
|
97
97
|
NULL, /* is_initialized */
|
|
98
|
-
onigenc_always_true_is_valid_mbc_string
|
|
98
|
+
onigenc_always_true_is_valid_mbc_string,
|
|
99
|
+
ENC_FLAG_ASCII_COMPATIBLE|ENC_FLAG_SKIP_OFFSET_1,
|
|
100
|
+
0, 0
|
|
99
101
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
iso8859_13.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_13_CtypeTable[256] = {
|
|
|
105
105
|
|
|
106
106
|
static int
|
|
107
107
|
mbc_case_fold(OnigCaseFoldType flag,
|
|
108
|
-
|
|
108
|
+
const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
|
|
109
109
|
{
|
|
110
110
|
const UChar* p = *pp;
|
|
111
111
|
|
|
@@ -116,36 +116,14 @@ mbc_case_fold(OnigCaseFoldType flag,
|
|
|
116
116
|
return 2;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#if 0
|
|
125
|
-
static int
|
|
126
|
-
is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
|
|
127
|
-
{
|
|
128
|
-
int v;
|
|
129
|
-
const UChar* p = *pp;
|
|
130
|
-
|
|
131
|
-
if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
|
|
132
|
-
(*pp)++;
|
|
133
|
-
return TRUE;
|
|
134
|
-
}
|
|
119
|
+
if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p))
|
|
120
|
+
*lower = ENC_ISO_8859_13_TO_LOWER_CASE(*p);
|
|
121
|
+
else
|
|
122
|
+
*lower = *p;
|
|
135
123
|
|
|
136
124
|
(*pp)++;
|
|
137
|
-
|
|
138
|
-
if ((v | BIT_CTYPE_LOWER) != 0) {
|
|
139
|
-
/* 0xdf, 0xb5 are lower case letter, but can't convert. */
|
|
140
|
-
if (*p == 0xb5)
|
|
141
|
-
return FALSE;
|
|
142
|
-
else
|
|
143
|
-
return TRUE;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return (v != 0 ? TRUE : FALSE);
|
|
125
|
+
return 1;
|
|
147
126
|
}
|
|
148
|
-
#endif
|
|
149
127
|
|
|
150
128
|
static int
|
|
151
129
|
is_code_ctype(OnigCodePoint code, unsigned int ctype)
|
|
@@ -192,7 +170,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
|
|
|
192
170
|
|
|
193
171
|
static int
|
|
194
172
|
apply_all_case_fold(OnigCaseFoldType flag,
|
|
195
|
-
|
|
173
|
+
OnigApplyAllCaseFoldFunc f, void* arg)
|
|
196
174
|
{
|
|
197
175
|
return onigenc_apply_all_case_fold_with_map(
|
|
198
176
|
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
@@ -204,8 +182,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
|
|
|
204
182
|
const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
|
|
205
183
|
{
|
|
206
184
|
return onigenc_get_case_fold_codes_by_str_with_map(
|
|
207
|
-
|
|
208
|
-
|
|
185
|
+
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
186
|
+
flag, p, end, items);
|
|
209
187
|
}
|
|
210
188
|
|
|
211
189
|
OnigEncodingType OnigEncodingISO_8859_13 = {
|
|
@@ -227,5 +205,7 @@ OnigEncodingType OnigEncodingISO_8859_13 = {
|
|
|
227
205
|
onigenc_always_true_is_allowed_reverse_match,
|
|
228
206
|
NULL, /* init */
|
|
229
207
|
NULL, /* is_initialized */
|
|
230
|
-
onigenc_always_true_is_valid_mbc_string
|
|
208
|
+
onigenc_always_true_is_valid_mbc_string,
|
|
209
|
+
ENC_FLAG_ASCII_COMPATIBLE|ENC_FLAG_SKIP_OFFSET_1,
|
|
210
|
+
0, 0
|
|
231
211
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
iso8859_14.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_14_CtypeTable[256] = {
|
|
|
105
105
|
|
|
106
106
|
static int
|
|
107
107
|
mbc_case_fold(OnigCaseFoldType flag,
|
|
108
|
-
|
|
108
|
+
const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
|
|
109
109
|
{
|
|
110
110
|
const UChar* p = *pp;
|
|
111
111
|
|
|
@@ -116,33 +116,14 @@ mbc_case_fold(OnigCaseFoldType flag,
|
|
|
116
116
|
return 2;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#if 0
|
|
125
|
-
static int
|
|
126
|
-
is_mbc_ambiguous(OnigCaseFoldType flag,
|
|
127
|
-
const UChar** pp, const UChar* end)
|
|
128
|
-
{
|
|
129
|
-
int v;
|
|
130
|
-
const UChar* p = *pp;
|
|
131
|
-
|
|
132
|
-
if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
|
|
133
|
-
(*pp)++;
|
|
134
|
-
return TRUE;
|
|
135
|
-
}
|
|
119
|
+
if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p))
|
|
120
|
+
*lower = ENC_ISO_8859_14_TO_LOWER_CASE(*p);
|
|
121
|
+
else
|
|
122
|
+
*lower = *p;
|
|
136
123
|
|
|
137
124
|
(*pp)++;
|
|
138
|
-
|
|
139
|
-
if ((v | BIT_CTYPE_LOWER) != 0) {
|
|
140
|
-
return TRUE;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return (v != 0 ? TRUE : FALSE);
|
|
125
|
+
return 1; /* return byte length of converted char to lower */
|
|
144
126
|
}
|
|
145
|
-
#endif
|
|
146
127
|
|
|
147
128
|
static int
|
|
148
129
|
is_code_ctype(OnigCodePoint code, unsigned int ctype)
|
|
@@ -205,7 +186,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
|
|
|
205
186
|
|
|
206
187
|
static int
|
|
207
188
|
apply_all_case_fold(OnigCaseFoldType flag,
|
|
208
|
-
|
|
189
|
+
OnigApplyAllCaseFoldFunc f, void* arg)
|
|
209
190
|
{
|
|
210
191
|
return onigenc_apply_all_case_fold_with_map(
|
|
211
192
|
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
@@ -217,8 +198,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
|
|
|
217
198
|
const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
|
|
218
199
|
{
|
|
219
200
|
return onigenc_get_case_fold_codes_by_str_with_map(
|
|
220
|
-
|
|
221
|
-
|
|
201
|
+
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
202
|
+
flag, p, end, items);
|
|
222
203
|
}
|
|
223
204
|
|
|
224
205
|
OnigEncodingType OnigEncodingISO_8859_14 = {
|
|
@@ -240,5 +221,7 @@ OnigEncodingType OnigEncodingISO_8859_14 = {
|
|
|
240
221
|
onigenc_always_true_is_allowed_reverse_match,
|
|
241
222
|
NULL, /* init */
|
|
242
223
|
NULL, /* is_initialized */
|
|
243
|
-
onigenc_always_true_is_valid_mbc_string
|
|
224
|
+
onigenc_always_true_is_valid_mbc_string,
|
|
225
|
+
ENC_FLAG_ASCII_COMPATIBLE|ENC_FLAG_SKIP_OFFSET_1,
|
|
226
|
+
0, 0
|
|
244
227
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
iso8859_15.c - Oniguruma (regular expression library)
|
|
3
3
|
**********************************************************************/
|
|
4
4
|
/*-
|
|
5
|
-
* Copyright (c) 2002-
|
|
5
|
+
* Copyright (c) 2002-2020 K.Kosako
|
|
6
6
|
* All rights reserved.
|
|
7
7
|
*
|
|
8
8
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -105,7 +105,7 @@ static const unsigned short EncISO_8859_15_CtypeTable[256] = {
|
|
|
105
105
|
|
|
106
106
|
static int
|
|
107
107
|
mbc_case_fold(OnigCaseFoldType flag,
|
|
108
|
-
|
|
108
|
+
const UChar** pp, const UChar* end ARG_UNUSED, UChar* lower)
|
|
109
109
|
{
|
|
110
110
|
const UChar* p = *pp;
|
|
111
111
|
|
|
@@ -116,37 +116,14 @@ mbc_case_fold(OnigCaseFoldType flag,
|
|
|
116
116
|
return 2;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
#if 0
|
|
125
|
-
static int
|
|
126
|
-
is_mbc_ambiguous(OnigCaseFoldType flag,
|
|
127
|
-
const UChar** pp, const UChar* end)
|
|
128
|
-
{
|
|
129
|
-
int v;
|
|
130
|
-
const UChar* p = *pp;
|
|
131
|
-
|
|
132
|
-
if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
|
|
133
|
-
(*pp)++;
|
|
134
|
-
return TRUE;
|
|
135
|
-
}
|
|
119
|
+
if (CASE_FOLD_IS_NOT_ASCII_ONLY(flag) || ONIGENC_IS_ASCII_CODE(*p))
|
|
120
|
+
*lower = ENC_ISO_8859_15_TO_LOWER_CASE(*p);
|
|
121
|
+
else
|
|
122
|
+
*lower = *p;
|
|
136
123
|
|
|
137
124
|
(*pp)++;
|
|
138
|
-
|
|
139
|
-
if ((v | BIT_CTYPE_LOWER) != 0) {
|
|
140
|
-
/* 0xdf etc.. are lower case letter, but can't convert. */
|
|
141
|
-
if (*p == 0xaa || *p == 0xb5 || *p == 0xba)
|
|
142
|
-
return FALSE;
|
|
143
|
-
else
|
|
144
|
-
return TRUE;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
return (v != 0 ? TRUE : FALSE);
|
|
125
|
+
return 1; /* return byte length of converted char to lower */
|
|
148
126
|
}
|
|
149
|
-
#endif
|
|
150
127
|
|
|
151
128
|
static int
|
|
152
129
|
is_code_ctype(OnigCodePoint code, unsigned int ctype)
|
|
@@ -199,7 +176,7 @@ static const OnigPairCaseFoldCodes CaseFoldMap[] = {
|
|
|
199
176
|
|
|
200
177
|
static int
|
|
201
178
|
apply_all_case_fold(OnigCaseFoldType flag,
|
|
202
|
-
|
|
179
|
+
OnigApplyAllCaseFoldFunc f, void* arg)
|
|
203
180
|
{
|
|
204
181
|
return onigenc_apply_all_case_fold_with_map(
|
|
205
182
|
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
@@ -211,8 +188,8 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
|
|
|
211
188
|
const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[])
|
|
212
189
|
{
|
|
213
190
|
return onigenc_get_case_fold_codes_by_str_with_map(
|
|
214
|
-
|
|
215
|
-
|
|
191
|
+
sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
|
|
192
|
+
flag, p, end, items);
|
|
216
193
|
}
|
|
217
194
|
|
|
218
195
|
OnigEncodingType OnigEncodingISO_8859_15 = {
|
|
@@ -234,5 +211,7 @@ OnigEncodingType OnigEncodingISO_8859_15 = {
|
|
|
234
211
|
onigenc_always_true_is_allowed_reverse_match,
|
|
235
212
|
NULL, /* init */
|
|
236
213
|
NULL, /* is_initialized */
|
|
237
|
-
onigenc_always_true_is_valid_mbc_string
|
|
214
|
+
onigenc_always_true_is_valid_mbc_string,
|
|
215
|
+
ENC_FLAG_ASCII_COMPATIBLE|ENC_FLAG_SKIP_OFFSET_1,
|
|
216
|
+
0, 0
|
|
238
217
|
};
|