@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.
Files changed (453) hide show
  1. package/README.md +6 -1
  2. package/binding.gyp +41 -19
  3. package/configure +1 -1
  4. package/deps/jq/.gitattributes +12 -0
  5. package/deps/jq/AUTHORS +149 -43
  6. package/deps/jq/COPYING +75 -1
  7. package/deps/jq/ChangeLog +2 -2
  8. package/deps/jq/Makefile.am +106 -65
  9. package/deps/jq/NEWS.md +391 -0
  10. package/deps/jq/README.md +54 -52
  11. package/deps/jq/SECURITY.md +7 -0
  12. package/deps/jq/compile-ios.sh +106 -102
  13. package/deps/jq/configure.ac +72 -59
  14. package/deps/jq/docs/Pipfile +14 -0
  15. package/deps/jq/docs/Pipfile.lock +415 -0
  16. package/deps/jq/docs/README.md +15 -14
  17. package/deps/jq/docs/build_manpage.py +251 -0
  18. package/deps/jq/docs/build_mantests.py +21 -0
  19. package/deps/jq/docs/build_website.py +95 -0
  20. package/deps/jq/docs/content/download/default.yml +249 -0
  21. package/deps/jq/docs/content/index.yml +83 -0
  22. package/deps/jq/docs/content/{3.manual/v1.6 → manual/dev}/manual.yml +992 -452
  23. package/deps/jq/docs/content/{3.manual → manual}/v1.3/manual.yml +105 -116
  24. package/deps/jq/docs/content/{3.manual → manual}/v1.4/manual.yml +122 -129
  25. package/deps/jq/docs/content/{3.manual → manual}/v1.5/manual.yml +313 -262
  26. package/deps/jq/docs/content/{3.manual → manual/v1.6}/manual.yml +407 -332
  27. package/deps/jq/docs/content/manual/v1.7/manual.yml +3697 -0
  28. package/deps/jq/docs/content/tutorial/default.yml +337 -0
  29. package/deps/jq/docs/manual_schema.yml +60 -0
  30. package/deps/jq/docs/public/css/style.css +99 -0
  31. package/deps/jq/docs/public/icon.png +0 -0
  32. package/deps/jq/docs/public/icon.svg +1 -0
  33. package/deps/jq/docs/public/jq.svg +1 -0
  34. package/deps/jq/docs/public/js/manual-search.js +31 -49
  35. package/deps/jq/docs/templates/default.html.j2 +31 -0
  36. package/deps/jq/docs/templates/index.html.j2 +58 -0
  37. package/deps/jq/docs/templates/manual.html.j2 +120 -0
  38. package/deps/jq/docs/templates/shared/_footer.html.j2 +14 -0
  39. package/deps/jq/docs/templates/shared/_head.html.j2 +23 -0
  40. package/deps/jq/docs/templates/shared/_navbar.html.j2 +40 -0
  41. package/deps/jq/docs/validate_manual_schema.py +19 -0
  42. package/deps/jq/jq.1.prebuilt +1102 -294
  43. package/deps/jq/jq.spec +2 -3
  44. package/deps/jq/libjq.pc.in +11 -0
  45. package/deps/jq/m4/ax_pthread.m4 +522 -0
  46. package/deps/jq/modules/oniguruma/.travis.yml +17 -0
  47. package/deps/jq/modules/oniguruma/CMakeLists.txt +206 -41
  48. package/deps/jq/modules/oniguruma/COPYING +23 -25
  49. package/deps/jq/modules/oniguruma/HISTORY +368 -23
  50. package/deps/jq/modules/oniguruma/Makefile.am +61 -7
  51. package/deps/jq/modules/oniguruma/README +34 -20
  52. package/deps/jq/modules/oniguruma/README.md +106 -33
  53. package/deps/jq/modules/oniguruma/README_japanese +183 -0
  54. package/deps/jq/modules/oniguruma/autogen.sh +9 -0
  55. package/deps/jq/modules/oniguruma/cmake/Config.cmake.in +4 -0
  56. package/deps/jq/modules/oniguruma/configure.ac +66 -55
  57. package/deps/jq/modules/oniguruma/doc/API +485 -42
  58. package/deps/jq/modules/oniguruma/doc/API.ja +732 -293
  59. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API +397 -0
  60. package/deps/jq/modules/oniguruma/doc/CALLOUTS.API.ja +393 -0
  61. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN +95 -0
  62. package/deps/jq/modules/oniguruma/doc/CALLOUTS.BUILTIN.ja +93 -0
  63. package/deps/jq/modules/oniguruma/doc/FAQ +3 -3
  64. package/deps/jq/modules/oniguruma/doc/FAQ.ja +8 -8
  65. package/deps/jq/modules/oniguruma/doc/RE +223 -63
  66. package/deps/jq/modules/oniguruma/doc/RE.ja +420 -265
  67. package/deps/jq/modules/oniguruma/doc/SYNTAX.md +1091 -0
  68. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +840 -697
  69. package/deps/jq/modules/oniguruma/harnesses/ascii_compatible.dict +113 -0
  70. package/deps/jq/modules/oniguruma/harnesses/base.c +749 -0
  71. package/deps/jq/modules/oniguruma/harnesses/deluxe.c +206 -0
  72. package/deps/jq/modules/oniguruma/harnesses/dict_conv.py +72 -0
  73. package/deps/jq/modules/oniguruma/harnesses/fuzzer.options +2 -0
  74. package/deps/jq/modules/oniguruma/harnesses/libfuzzer-onig.cpp +45 -0
  75. package/deps/jq/modules/oniguruma/harnesses/regset.c +392 -0
  76. package/deps/jq/modules/oniguruma/index.html +16 -5
  77. package/deps/jq/modules/oniguruma/index_ja.html +16 -5
  78. package/deps/jq/modules/oniguruma/make_win.bat +5 -0
  79. package/deps/jq/modules/oniguruma/make_win32.bat +5 -3
  80. package/deps/jq/modules/oniguruma/make_win64.bat +5 -3
  81. package/deps/jq/modules/oniguruma/onig-config.cmake.in +80 -0
  82. package/deps/jq/modules/oniguruma/onig-config.in +1 -1
  83. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +1 -1
  84. package/deps/jq/modules/oniguruma/oniguruma.pc.in +0 -1
  85. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +9 -2
  86. package/deps/jq/modules/oniguruma/sample/Makefile.am +24 -5
  87. package/deps/jq/modules/oniguruma/sample/bug_fix.c +13 -51
  88. package/deps/jq/modules/oniguruma/sample/callback_each_match.c +168 -0
  89. package/deps/jq/modules/oniguruma/sample/callout.c +268 -0
  90. package/deps/jq/modules/oniguruma/sample/count.c +125 -0
  91. package/deps/jq/modules/oniguruma/sample/crnl.c +6 -4
  92. package/deps/jq/modules/oniguruma/sample/echo.c +136 -0
  93. package/deps/jq/modules/oniguruma/sample/encode.c +53 -146
  94. package/deps/jq/modules/oniguruma/sample/listcap.c +18 -10
  95. package/deps/jq/modules/oniguruma/sample/names.c +10 -6
  96. package/deps/jq/modules/oniguruma/sample/posix.c +13 -2
  97. package/deps/jq/modules/oniguruma/sample/regset.c +95 -0
  98. package/deps/jq/modules/oniguruma/sample/scan.c +20 -6
  99. package/deps/jq/modules/oniguruma/sample/simple.c +8 -4
  100. package/deps/jq/modules/oniguruma/sample/sql.c +13 -8
  101. package/deps/jq/modules/oniguruma/sample/syntax.c +11 -10
  102. package/deps/jq/modules/oniguruma/sample/user_property.c +12 -7
  103. package/deps/jq/modules/oniguruma/src/Makefile.am +41 -15
  104. package/deps/jq/modules/oniguruma/src/Makefile.windows +196 -183
  105. package/deps/jq/modules/oniguruma/src/ascii.c +64 -7
  106. package/deps/jq/modules/oniguruma/src/big5.c +25 -15
  107. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +7 -22
  108. package/deps/jq/modules/oniguruma/src/config.h.win32 +56 -84
  109. package/deps/jq/modules/oniguruma/src/config.h.win64 +56 -84
  110. package/deps/jq/modules/oniguruma/src/config.h.windows.in +62 -0
  111. package/deps/jq/modules/oniguruma/src/cp1251.c +14 -8
  112. package/deps/jq/modules/oniguruma/src/euc_jp.c +28 -30
  113. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +25 -32
  114. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +1 -2
  115. package/deps/jq/modules/oniguruma/src/euc_kr.c +27 -15
  116. package/deps/jq/modules/oniguruma/src/euc_tw.c +40 -17
  117. package/deps/jq/modules/oniguruma/src/gb18030.c +177 -119
  118. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +12 -8
  119. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +8 -6
  120. package/deps/jq/modules/oniguruma/src/iso8859_1.c +92 -91
  121. package/deps/jq/modules/oniguruma/src/iso8859_10.c +13 -29
  122. package/deps/jq/modules/oniguruma/src/iso8859_11.c +4 -2
  123. package/deps/jq/modules/oniguruma/src/iso8859_13.c +13 -33
  124. package/deps/jq/modules/oniguruma/src/iso8859_14.c +13 -30
  125. package/deps/jq/modules/oniguruma/src/iso8859_15.c +13 -34
  126. package/deps/jq/modules/oniguruma/src/iso8859_16.c +13 -29
  127. package/deps/jq/modules/oniguruma/src/iso8859_2.c +13 -29
  128. package/deps/jq/modules/oniguruma/src/iso8859_3.c +13 -33
  129. package/deps/jq/modules/oniguruma/src/iso8859_4.c +13 -32
  130. package/deps/jq/modules/oniguruma/src/iso8859_5.c +16 -23
  131. package/deps/jq/modules/oniguruma/src/iso8859_6.c +4 -2
  132. package/deps/jq/modules/oniguruma/src/iso8859_7.c +14 -29
  133. package/deps/jq/modules/oniguruma/src/iso8859_8.c +4 -2
  134. package/deps/jq/modules/oniguruma/src/iso8859_9.c +13 -33
  135. package/deps/jq/modules/oniguruma/src/koi8.c +14 -27
  136. package/deps/jq/modules/oniguruma/src/koi8_r.c +12 -19
  137. package/deps/jq/modules/oniguruma/src/make_property.sh +21 -0
  138. package/deps/jq/modules/oniguruma/src/make_unicode_egcb.sh +7 -0
  139. package/deps/jq/modules/oniguruma/src/make_unicode_egcb_data.py +267 -0
  140. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +25 -11
  141. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +206 -26
  142. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +19 -10
  143. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +474 -375
  144. package/deps/jq/modules/oniguruma/src/make_unicode_wb.sh +7 -0
  145. package/deps/jq/modules/oniguruma/src/make_unicode_wb_data.py +267 -0
  146. package/deps/jq/modules/oniguruma/src/mktable.c +28 -24
  147. package/deps/jq/modules/oniguruma/src/onig_init.c +2 -2
  148. package/deps/jq/modules/oniguruma/src/oniggnu.h +7 -5
  149. package/deps/jq/modules/oniguruma/src/onigposix.h +40 -16
  150. package/deps/jq/modules/oniguruma/src/oniguruma.h +357 -107
  151. package/deps/jq/modules/oniguruma/src/regcomp.c +6214 -3933
  152. package/deps/jq/modules/oniguruma/src/regenc.c +197 -120
  153. package/deps/jq/modules/oniguruma/src/regenc.h +106 -63
  154. package/deps/jq/modules/oniguruma/src/regerror.c +112 -91
  155. package/deps/jq/modules/oniguruma/src/regexec.c +4876 -2010
  156. package/deps/jq/modules/oniguruma/src/regext.c +8 -8
  157. package/deps/jq/modules/oniguruma/src/reggnu.c +13 -17
  158. package/deps/jq/modules/oniguruma/src/regint.h +757 -491
  159. package/deps/jq/modules/oniguruma/src/regparse.c +7204 -3240
  160. package/deps/jq/modules/oniguruma/src/regparse.h +361 -218
  161. package/deps/jq/modules/oniguruma/src/regposerr.c +49 -9
  162. package/deps/jq/modules/oniguruma/src/regposix.c +106 -24
  163. package/deps/jq/modules/oniguruma/src/regsyntax.c +66 -13
  164. package/deps/jq/modules/oniguruma/src/regtrav.c +1 -1
  165. package/deps/jq/modules/oniguruma/src/regversion.c +6 -4
  166. package/deps/jq/modules/oniguruma/src/sjis.c +23 -52
  167. package/deps/jq/modules/oniguruma/src/sjis_prop.c +25 -32
  168. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +1 -2
  169. package/deps/jq/modules/oniguruma/src/st.c +248 -249
  170. package/deps/jq/modules/oniguruma/src/st.h +4 -5
  171. package/deps/jq/modules/oniguruma/src/unicode.c +869 -294
  172. package/deps/jq/modules/oniguruma/src/unicode_egcb_data.c +1419 -0
  173. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +1829 -1300
  174. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +32 -9
  175. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +32 -9
  176. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1210 -984
  177. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +22480 -15198
  178. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +1463 -591
  179. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +1958 -1418
  180. package/deps/jq/modules/oniguruma/src/unicode_wb_data.c +1106 -0
  181. package/deps/jq/modules/oniguruma/src/utf16_be.c +90 -49
  182. package/deps/jq/modules/oniguruma/src/utf16_le.c +80 -49
  183. package/deps/jq/modules/oniguruma/src/utf32_be.c +14 -42
  184. package/deps/jq/modules/oniguruma/src/utf32_le.c +13 -40
  185. package/deps/jq/modules/oniguruma/src/utf8.c +33 -78
  186. package/deps/jq/modules/oniguruma/test/CMakeLists.txt +55 -0
  187. package/deps/jq/modules/oniguruma/test/Makefile.am +65 -10
  188. package/deps/jq/modules/oniguruma/test/test.sh +17 -0
  189. package/deps/jq/modules/oniguruma/test/test_back.c +1450 -0
  190. package/deps/jq/modules/oniguruma/test/test_options.c +228 -0
  191. package/deps/jq/modules/oniguruma/test/test_regset.c +466 -0
  192. package/deps/jq/modules/oniguruma/test/test_syntax.c +365 -0
  193. package/deps/jq/modules/oniguruma/test/test_utf8.c +1761 -0
  194. package/deps/jq/modules/oniguruma/test/testc.c +128 -88
  195. package/deps/jq/modules/oniguruma/test/testp.c +613 -0
  196. package/deps/jq/modules/oniguruma/test/testu.c +75 -28
  197. package/deps/jq/modules/oniguruma/tis-ci/stub.c +3 -0
  198. package/deps/jq/modules/oniguruma/tis-ci/test_back.config +26 -0
  199. package/deps/jq/modules/oniguruma/tis-ci/test_regset.config +20 -0
  200. package/deps/jq/modules/oniguruma/tis-ci/test_syntax.config +26 -0
  201. package/deps/jq/modules/oniguruma/tis-ci/test_utf8.config +25 -0
  202. package/deps/jq/modules/oniguruma/tis-ci/testc.config +26 -0
  203. package/deps/jq/modules/oniguruma/tis-ci/testu.config +24 -0
  204. package/deps/jq/modules/oniguruma/tis.config +1336 -0
  205. package/deps/jq/modules/oniguruma/windows/CMakeLists.txt +8 -0
  206. package/deps/jq/modules/oniguruma/windows/testc.c +865 -869
  207. package/deps/jq/scripts/update-website +6 -5
  208. package/deps/jq/scripts/version +10 -7
  209. package/deps/jq/sig/jq-release-new.key +29 -0
  210. package/deps/jq/sig/v1.4/sha256sum.txt +1 -0
  211. package/deps/jq/sig/v1.5/sha256sum.txt +2 -0
  212. package/deps/jq/sig/v1.5rc1/sha256sum.txt +1 -0
  213. package/deps/jq/sig/v1.5rc2/sha256sum.txt +2 -0
  214. package/deps/jq/sig/v1.6/sha256sum.txt +2 -0
  215. package/deps/jq/sig/v1.7/jq-1.7.tar.gz.asc +16 -0
  216. package/deps/jq/sig/v1.7/jq-1.7.zip.asc +16 -0
  217. package/deps/jq/sig/v1.7/jq-linux-amd64.asc +16 -0
  218. package/deps/jq/sig/v1.7/jq-linux-arm64.asc +16 -0
  219. package/deps/jq/sig/v1.7/jq-linux-armel.asc +16 -0
  220. package/deps/jq/sig/v1.7/jq-linux-armhf.asc +16 -0
  221. package/deps/jq/sig/v1.7/jq-linux-i386.asc +16 -0
  222. package/deps/jq/sig/v1.7/jq-linux-mips.asc +16 -0
  223. package/deps/jq/sig/v1.7/jq-linux-mips64.asc +16 -0
  224. package/deps/jq/sig/v1.7/jq-linux-mips64el.asc +16 -0
  225. package/deps/jq/sig/v1.7/jq-linux-mips64r6.asc +16 -0
  226. package/deps/jq/sig/v1.7/jq-linux-mips64r6el.asc +16 -0
  227. package/deps/jq/sig/v1.7/jq-linux-mipsel.asc +16 -0
  228. package/deps/jq/sig/v1.7/jq-linux-mipsr6.asc +16 -0
  229. package/deps/jq/sig/v1.7/jq-linux-mipsr6el.asc +16 -0
  230. package/deps/jq/sig/v1.7/jq-linux-powerpc.asc +16 -0
  231. package/deps/jq/sig/v1.7/jq-linux-ppc64el.asc +16 -0
  232. package/deps/jq/sig/v1.7/jq-linux-riscv64.asc +16 -0
  233. package/deps/jq/sig/v1.7/jq-linux-s390x.asc +16 -0
  234. package/deps/jq/sig/v1.7/jq-macos-amd64.asc +16 -0
  235. package/deps/jq/sig/v1.7/jq-macos-arm64.asc +16 -0
  236. package/deps/jq/sig/v1.7/jq-windows-amd64.exe.asc +16 -0
  237. package/deps/jq/sig/v1.7/jq-windows-i386.exe.asc +16 -0
  238. package/deps/jq/sig/v1.7/sha256sum.txt +23 -0
  239. package/deps/jq/sig/v1.7.1/jq-1.7.1.tar.gz.asc +16 -0
  240. package/deps/jq/sig/v1.7.1/jq-1.7.1.zip.asc +16 -0
  241. package/deps/jq/sig/v1.7.1/jq-linux-amd64.asc +16 -0
  242. package/deps/jq/sig/v1.7.1/jq-linux-arm64.asc +16 -0
  243. package/deps/jq/sig/v1.7.1/jq-linux-armel.asc +16 -0
  244. package/deps/jq/sig/v1.7.1/jq-linux-armhf.asc +16 -0
  245. package/deps/jq/sig/v1.7.1/jq-linux-i386.asc +16 -0
  246. package/deps/jq/sig/v1.7.1/jq-linux-mips.asc +16 -0
  247. package/deps/jq/sig/v1.7.1/jq-linux-mips64.asc +16 -0
  248. package/deps/jq/sig/v1.7.1/jq-linux-mips64el.asc +16 -0
  249. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6.asc +16 -0
  250. package/deps/jq/sig/v1.7.1/jq-linux-mips64r6el.asc +16 -0
  251. package/deps/jq/sig/v1.7.1/jq-linux-mipsel.asc +16 -0
  252. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6.asc +16 -0
  253. package/deps/jq/sig/v1.7.1/jq-linux-mipsr6el.asc +16 -0
  254. package/deps/jq/sig/v1.7.1/jq-linux-powerpc.asc +16 -0
  255. package/deps/jq/sig/v1.7.1/jq-linux-ppc64el.asc +16 -0
  256. package/deps/jq/sig/v1.7.1/jq-linux-riscv64.asc +16 -0
  257. package/deps/jq/sig/v1.7.1/jq-linux-s390x.asc +16 -0
  258. package/deps/jq/sig/v1.7.1/jq-linux64.asc +16 -0
  259. package/deps/jq/sig/v1.7.1/jq-macos-amd64.asc +16 -0
  260. package/deps/jq/sig/v1.7.1/jq-macos-arm64.asc +16 -0
  261. package/deps/jq/sig/v1.7.1/jq-osx-amd64.asc +16 -0
  262. package/deps/jq/sig/v1.7.1/jq-win64.exe.asc +16 -0
  263. package/deps/jq/sig/v1.7.1/jq-windows-amd64.exe.asc +16 -0
  264. package/deps/jq/sig/v1.7.1/jq-windows-i386.exe.asc +16 -0
  265. package/deps/jq/sig/v1.7.1/sha256sum.txt +26 -0
  266. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.tar.gz.asc +16 -0
  267. package/deps/jq/sig/v1.7rc1/jq-1.7rc1.zip.asc +16 -0
  268. package/deps/jq/sig/v1.7rc1/jq-linux-amd64.asc +16 -0
  269. package/deps/jq/sig/v1.7rc1/jq-linux-arm64.asc +16 -0
  270. package/deps/jq/sig/v1.7rc1/jq-linux-armel.asc +16 -0
  271. package/deps/jq/sig/v1.7rc1/jq-linux-armhf.asc +16 -0
  272. package/deps/jq/sig/v1.7rc1/jq-linux-i386.asc +16 -0
  273. package/deps/jq/sig/v1.7rc1/jq-linux-mips.asc +16 -0
  274. package/deps/jq/sig/v1.7rc1/jq-linux-mips64.asc +16 -0
  275. package/deps/jq/sig/v1.7rc1/jq-linux-mips64el.asc +16 -0
  276. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6.asc +16 -0
  277. package/deps/jq/sig/v1.7rc1/jq-linux-mips64r6el.asc +16 -0
  278. package/deps/jq/sig/v1.7rc1/jq-linux-mipsel.asc +16 -0
  279. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6.asc +16 -0
  280. package/deps/jq/sig/v1.7rc1/jq-linux-mipsr6el.asc +16 -0
  281. package/deps/jq/sig/v1.7rc1/jq-linux-powerpc.asc +16 -0
  282. package/deps/jq/sig/v1.7rc1/jq-linux-ppc64el.asc +16 -0
  283. package/deps/jq/sig/v1.7rc1/jq-linux-riscv64.asc +16 -0
  284. package/deps/jq/sig/v1.7rc1/jq-linux-s390x.asc +16 -0
  285. package/deps/jq/sig/v1.7rc1/jq-macos-amd64.asc +16 -0
  286. package/deps/jq/sig/v1.7rc1/jq-macos-arm64.asc +16 -0
  287. package/deps/jq/sig/v1.7rc1/jq-windows-amd64.exe.asc +16 -0
  288. package/deps/jq/sig/v1.7rc1/jq-windows-i386.exe.asc +16 -0
  289. package/deps/jq/sig/v1.7rc1/sha256sum.txt +23 -0
  290. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.tar.gz.asc +16 -0
  291. package/deps/jq/sig/v1.7rc2/jq-1.7rc2.zip.asc +16 -0
  292. package/deps/jq/sig/v1.7rc2/jq-linux-amd64.asc +16 -0
  293. package/deps/jq/sig/v1.7rc2/jq-linux-arm64.asc +16 -0
  294. package/deps/jq/sig/v1.7rc2/jq-linux-armel.asc +16 -0
  295. package/deps/jq/sig/v1.7rc2/jq-linux-armhf.asc +16 -0
  296. package/deps/jq/sig/v1.7rc2/jq-linux-i386.asc +16 -0
  297. package/deps/jq/sig/v1.7rc2/jq-linux-mips.asc +16 -0
  298. package/deps/jq/sig/v1.7rc2/jq-linux-mips64.asc +16 -0
  299. package/deps/jq/sig/v1.7rc2/jq-linux-mips64el.asc +16 -0
  300. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6.asc +16 -0
  301. package/deps/jq/sig/v1.7rc2/jq-linux-mips64r6el.asc +16 -0
  302. package/deps/jq/sig/v1.7rc2/jq-linux-mipsel.asc +16 -0
  303. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6.asc +16 -0
  304. package/deps/jq/sig/v1.7rc2/jq-linux-mipsr6el.asc +16 -0
  305. package/deps/jq/sig/v1.7rc2/jq-linux-powerpc.asc +16 -0
  306. package/deps/jq/sig/v1.7rc2/jq-linux-ppc64el.asc +16 -0
  307. package/deps/jq/sig/v1.7rc2/jq-linux-riscv64.asc +16 -0
  308. package/deps/jq/sig/v1.7rc2/jq-linux-s390x.asc +16 -0
  309. package/deps/jq/sig/v1.7rc2/jq-macos-amd64.asc +16 -0
  310. package/deps/jq/sig/v1.7rc2/jq-macos-arm64.asc +16 -0
  311. package/deps/jq/sig/v1.7rc2/jq-windows-amd64.exe.asc +16 -0
  312. package/deps/jq/sig/v1.7rc2/jq-windows-i386.exe.asc +16 -0
  313. package/deps/jq/sig/v1.7rc2/sha256sum.txt +23 -0
  314. package/deps/jq/src/builtin.c +537 -343
  315. package/deps/jq/src/builtin.h +18 -0
  316. package/deps/jq/src/builtin.jq +116 -143
  317. package/deps/jq/src/bytecode.h +8 -4
  318. package/deps/jq/src/compile.c +157 -143
  319. package/deps/jq/src/compile.h +3 -4
  320. package/deps/jq/src/decNumber/ICU-license.html +45 -0
  321. package/deps/jq/src/decNumber/decBasic.c +3908 -0
  322. package/deps/jq/src/decNumber/decCommon.c +1835 -0
  323. package/deps/jq/src/decNumber/decContext.c +437 -0
  324. package/deps/jq/src/decNumber/decContext.h +254 -0
  325. package/deps/jq/src/decNumber/decDPD.h +1185 -0
  326. package/deps/jq/src/decNumber/decDouble.c +140 -0
  327. package/deps/jq/src/decNumber/decDouble.h +155 -0
  328. package/deps/jq/src/decNumber/decNumber.c +8143 -0
  329. package/deps/jq/src/decNumber/decNumber.h +182 -0
  330. package/deps/jq/src/decNumber/decNumberLocal.h +757 -0
  331. package/deps/jq/src/decNumber/decPacked.c +220 -0
  332. package/deps/jq/src/decNumber/decPacked.h +52 -0
  333. package/deps/jq/src/decNumber/decQuad.c +135 -0
  334. package/deps/jq/src/decNumber/decQuad.h +177 -0
  335. package/deps/jq/src/decNumber/decSingle.c +71 -0
  336. package/deps/jq/src/decNumber/decSingle.h +86 -0
  337. package/deps/jq/src/decNumber/decimal128.c +553 -0
  338. package/deps/jq/src/decNumber/decimal128.h +81 -0
  339. package/deps/jq/src/decNumber/decimal32.c +476 -0
  340. package/deps/jq/src/decNumber/decimal32.h +81 -0
  341. package/deps/jq/src/decNumber/decimal64.c +839 -0
  342. package/deps/jq/src/decNumber/decimal64.h +83 -0
  343. package/deps/jq/src/decNumber/decnumber.pdf +0 -0
  344. package/deps/jq/src/decNumber/example1.c +38 -0
  345. package/deps/jq/src/decNumber/example2.c +52 -0
  346. package/deps/jq/src/decNumber/example3.c +64 -0
  347. package/deps/jq/src/decNumber/example4.c +61 -0
  348. package/deps/jq/src/decNumber/example5.c +36 -0
  349. package/deps/jq/src/decNumber/example6.c +61 -0
  350. package/deps/jq/src/decNumber/example7.c +35 -0
  351. package/deps/jq/src/decNumber/example8.c +39 -0
  352. package/deps/jq/src/decNumber/readme.txt +81 -0
  353. package/deps/jq/src/exec_stack.h +5 -3
  354. package/deps/jq/src/execute.c +126 -44
  355. package/deps/jq/src/inject_errors.c +0 -2
  356. package/deps/jq/src/jq.h +10 -1
  357. package/deps/jq/src/jq_test.c +222 -11
  358. package/deps/jq/src/jv.c +807 -176
  359. package/deps/jq/src/jv.h +22 -1
  360. package/deps/jq/src/jv_alloc.c +33 -26
  361. package/deps/jq/src/jv_alloc.h +0 -11
  362. package/deps/jq/src/jv_aux.c +153 -67
  363. package/deps/jq/src/jv_dtoa.c +12 -2
  364. package/deps/jq/src/jv_dtoa_tsd.c +51 -0
  365. package/deps/jq/src/jv_dtoa_tsd.h +4 -0
  366. package/deps/jq/src/jv_parse.c +70 -15
  367. package/deps/jq/src/jv_print.c +56 -60
  368. package/deps/jq/src/jv_private.h +7 -0
  369. package/deps/jq/src/jv_thread.h +76 -0
  370. package/deps/jq/src/jv_unicode.c +18 -0
  371. package/deps/jq/src/jv_unicode.h +2 -0
  372. package/deps/jq/src/lexer.c +782 -543
  373. package/deps/jq/src/lexer.h +438 -64
  374. package/deps/jq/src/lexer.l +10 -3
  375. package/deps/jq/src/libm.h +16 -6
  376. package/deps/jq/src/linker.c +97 -40
  377. package/deps/jq/src/locfile.c +2 -1
  378. package/deps/jq/src/main.c +384 -336
  379. package/deps/jq/src/opcode_list.h +5 -2
  380. package/deps/jq/src/parser.c +2260 -1898
  381. package/deps/jq/src/parser.h +115 -98
  382. package/deps/jq/src/parser.y +124 -89
  383. package/deps/jq/src/util.c +854 -55
  384. package/deps/jq/src/util.h +6 -4
  385. package/deps/jq/tests/jq.test +762 -26
  386. package/deps/jq/tests/jq_fuzz_compile.c +27 -0
  387. package/deps/jq/tests/jq_fuzz_execute.cpp +42 -0
  388. package/deps/jq/tests/jq_fuzz_fixed.cpp +297 -0
  389. package/deps/jq/tests/jq_fuzz_load_file.c +28 -0
  390. package/deps/jq/tests/jq_fuzz_parse.c +21 -0
  391. package/deps/jq/tests/jq_fuzz_parse_extended.c +36 -0
  392. package/deps/jq/tests/jq_fuzz_parse_stream.c +21 -0
  393. package/deps/jq/tests/local.supp +14 -0
  394. package/deps/jq/tests/man.test +979 -0
  395. package/deps/jq/tests/manonig.test +76 -0
  396. package/deps/jq/tests/manonigtest +5 -0
  397. package/deps/jq/tests/mantest +1 -2
  398. package/deps/jq/tests/modules/home2/.jq/g.jq +1 -0
  399. package/deps/jq/tests/modules/shadow1.jq +2 -0
  400. package/deps/jq/tests/modules/shadow2.jq +1 -0
  401. package/deps/jq/tests/modules/test_bind_order0.jq +1 -0
  402. package/deps/jq/tests/modules/test_bind_order1.jq +1 -1
  403. package/deps/jq/tests/modules/test_bind_order2.jq +0 -1
  404. package/deps/jq/tests/no-main-program.jq +1 -0
  405. package/deps/jq/tests/onig.test +77 -2
  406. package/deps/jq/tests/setup +7 -2
  407. package/deps/jq/tests/shtest +478 -59
  408. package/deps/jq/tests/uri.test +38 -0
  409. package/deps/jq/tests/uritest +5 -0
  410. package/deps/jq/tests/yes-main-program.jq +2 -0
  411. package/lib/index.js +3 -0
  412. package/lib/jq.js +15 -1
  413. package/lib/templateAsync.js +137 -0
  414. package/package.json +7 -7
  415. package/src/binding.cc +623 -146
  416. package/src/binding.h +3 -4
  417. package/test/santiy-async.test.js +171 -0
  418. package/test/santiy.test.js +2 -2
  419. package/test/template-async.test.js +182 -0
  420. package/test/template.test.js +3 -3
  421. package/deps/jq/.travis.yml +0 -202
  422. package/deps/jq/NEWS +0 -89
  423. package/deps/jq/appveyor.yml +0 -53
  424. package/deps/jq/docs/Gemfile +0 -7
  425. package/deps/jq/docs/Gemfile.lock +0 -63
  426. package/deps/jq/docs/Rakefile +0 -24
  427. package/deps/jq/docs/Rakefile.manual +0 -49
  428. package/deps/jq/docs/Rakefile.website +0 -76
  429. package/deps/jq/docs/content/1.tutorial/default.yml +0 -327
  430. package/deps/jq/docs/content/2.download/default.yml +0 -193
  431. package/deps/jq/docs/content/index/index.yml +0 -73
  432. package/deps/jq/docs/public/css/base.scss +0 -181
  433. package/deps/jq/docs/public/jq.png +0 -0
  434. package/deps/jq/docs/site.yml +0 -9
  435. package/deps/jq/docs/templates/default.liquid +0 -34
  436. package/deps/jq/docs/templates/index.liquid +0 -73
  437. package/deps/jq/docs/templates/manual.liquid +0 -99
  438. package/deps/jq/docs/templates/shared/_footer.liquid +0 -10
  439. package/deps/jq/docs/templates/shared/_head.liquid +0 -17
  440. package/deps/jq/docs/templates/shared/_navbar.liquid +0 -27
  441. package/deps/jq/modules/oniguruma/README.ja +0 -195
  442. package/deps/jq/modules/oniguruma/cmake/dist.cmake +0 -321
  443. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +0 -31
  444. package/deps/jq/modules/oniguruma/dist.info +0 -10
  445. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +0 -2250
  446. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +0 -203
  447. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +0 -113
  448. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +0 -1225
  449. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +0 -24742
  450. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +0 -4846
  451. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +0 -2571
  452. /package/deps/jq/sig/{jq-release.key → jq-release-old.key} +0 -0
  453. /package/deps/jq/tests/modules/{.jq → home1/.jq} +0 -0
@@ -1,4 +1,4 @@
1
- Oniguruma API Version 6.1.0 2016/08/22
1
+ Oniguruma API Version 6.9.9 2022/10/28
2
2
 
3
3
  #include <oniguruma.h>
4
4
 
@@ -15,6 +15,10 @@ Oniguruma API Version 6.1.0 2016/08/22
15
15
  1 use_encodings: array of encodings used in application.
16
16
  2 num_encodings: number of encodings.
17
17
 
18
+ return value
19
+ normal: ONIG_NORMAL == 0
20
+ error: error code < 0
21
+
18
22
 
19
23
  # int onig_error_code_to_str(UChar* err_buf, int err_code, ...)
20
24
 
@@ -22,7 +26,8 @@ Oniguruma API Version 6.1.0 2016/08/22
22
26
  If this function is used for onig_new(),
23
27
  don't call this after the pattern argument of onig_new() is freed.
24
28
 
25
- normal return: error message string length
29
+ return value
30
+ normal: error message string length
26
31
 
27
32
  arguments
28
33
  1 err_buf: error message string buffer.
@@ -60,7 +65,9 @@ Oniguruma API Version 6.1.0 2016/08/22
60
65
 
61
66
  Create a regex object.
62
67
 
63
- normal return: ONIG_NORMAL
68
+ return value
69
+ normal: ONIG_NORMAL == 0
70
+ error: error code < 0
64
71
 
65
72
  arguments
66
73
  1 reg: return regex object's address.
@@ -75,14 +82,28 @@ Oniguruma API Version 6.1.0 2016/08/22
75
82
  ONIG_OPTION_EXTEND extended pattern form
76
83
  ONIG_OPTION_FIND_LONGEST find longest match
77
84
  ONIG_OPTION_FIND_NOT_EMPTY ignore empty match
78
- ONIG_OPTION_NEGATE_SINGLELINE
79
- clear ONIG_OPTION_SINGLELINE which is enabled on
80
- ONIG_SYNTAX_POSIX_BASIC, ONIG_SYNTAX_POSIX_EXTENDED,
81
- ONIG_SYNTAX_PERL, ONIG_SYNTAX_PERL_NG, ONIG_SYNTAX_JAVA
85
+ ONIG_OPTION_NEGATE_SINGLELINE clear ONIG_OPTION_SINGLELINE which is enabled on ONIG_SYNTAX_POSIX_BASIC/POSIX_EXTENDED/PERL/PERL_NG/PYTHON/JAVA
82
86
 
83
87
  ONIG_OPTION_DONT_CAPTURE_GROUP only named group captured.
84
88
  ONIG_OPTION_CAPTURE_GROUP named and no-named group captured.
85
89
 
90
+ ONIG_OPTION_IGNORECASE_IS_ASCII Limit IGNORECASE((?i)) to a range of ASCII characters
91
+ ONIG_OPTION_WORD_IS_ASCII ASCII only word (\w, \p{Word}, [[:word:]])
92
+ ASCII only word bound (\b)
93
+ ONIG_OPTION_DIGIT_IS_ASCII ASCII only digit (\d, \p{Digit}, [[:digit:]])
94
+ ONIG_OPTION_SPACE_IS_ASCII ASCII only space (\s, \p{Space}, [[:space:]])
95
+ ONIG_OPTION_POSIX_IS_ASCII ASCII only POSIX properties
96
+ (includes word, digit, space)
97
+ (alnum, alpha, blank, cntrl, digit, graph,
98
+ lower, print, punct, space, upper, xdigit,
99
+ word)
100
+ ONIG_OPTION_TEXT_SEGMENT_EXTENDED_GRAPHEME_CLUSTER Extended Grapheme Cluster mode
101
+ ONIG_OPTION_TEXT_SEGMENT_WORD Word mode
102
+
103
+
104
+ * The ONIG_OPTION_FIND_LONGEST option doesn't work properly during backward search of onig_search().
105
+
106
+
86
107
  5 enc: character encoding.
87
108
 
88
109
  ONIG_ENCODING_ASCII ASCII
@@ -129,8 +150,9 @@ Oniguruma API Version 6.1.0 2016/08/22
129
150
  ONIG_SYNTAX_JAVA Java (Sun java.util.regex)
130
151
  ONIG_SYNTAX_PERL Perl
131
152
  ONIG_SYNTAX_PERL_NG Perl + named group
132
- ONIG_SYNTAX_RUBY Ruby
133
- ONIG_SYNTAX_DEFAULT default (== Ruby)
153
+ ONIG_SYNTAX_PYTHON Python
154
+ ONIG_SYNTAX_ONIGURUMA Oniguruma
155
+ ONIG_SYNTAX_DEFAULT default (== ONIG_SYNTAX_ONIGURUMA)
134
156
  onig_set_default_syntax()
135
157
 
136
158
  or any OnigSyntaxType data address defined by user.
@@ -148,17 +170,23 @@ Oniguruma API Version 6.1.0 2016/08/22
148
170
  Create a regex object.
149
171
  reg object area is not allocated in this function.
150
172
 
151
- normal return: ONIG_NORMAL
152
-
173
+ return value
174
+ normal: ONIG_NORMAL == 0
175
+ error: error code < 0
153
176
 
154
177
 
155
178
  # int onig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end,
156
179
  OnigCompileInfo* ci, OnigErrorInfo* einfo)
157
180
 
181
+ This function is deprecated, and it does not allow the case where
182
+ the encoding of pattern and target is different.
183
+
158
184
  Create a regex object.
159
185
  This function is deluxe version of onig_new().
160
186
 
161
- normal return: ONIG_NORMAL
187
+ return value
188
+ normal: ONIG_NORMAL == 0
189
+ error: error code < 0
162
190
 
163
191
  arguments
164
192
  1 reg: return address of regex object.
@@ -171,7 +199,7 @@ Oniguruma API Version 6.1.0 2016/08/22
171
199
  ci->target_enc: target string character encoding.
172
200
  ci->syntax: address of pattern syntax definition.
173
201
  ci->option: compile time option.
174
- ci->case_fold_flag: character matching case fold bit flag for
202
+ ci->case_fold_flag: character matching case fold bit flag for
175
203
  ONIG_OPTION_IGNORECASE mode.
176
204
 
177
205
  ONIGENC_CASE_FOLD_MIN: minimum
@@ -211,13 +239,102 @@ Oniguruma API Version 6.1.0 2016/08/22
211
239
  1 reg: regex object.
212
240
 
213
241
 
242
+ # OnigMatchParam* onig_new_match_param()
243
+
244
+ Allocate a OnigMatchParam object and initialize the contents by
245
+ onig_initialize_match_param().
246
+
247
+
248
+ # void onig_free_match_param(OnigMatchParam* mp)
249
+
250
+ Free memory used by a OnigMatchParam object.
251
+
252
+ arguments
253
+ 1 mp: OnigMatchParam object
254
+
255
+
256
+ # void onig_initialize_match_param(OnigMatchParam* mp)
257
+
258
+ Set match-param fields to default values.
259
+ Match-param is used in onig_match_with_param() and onig_search_with_param().
260
+
261
+ arguments
262
+ 1 mp: match-param pointer
263
+
264
+
265
+ # int onig_set_match_stack_limit_size_of_match_param(OnigMatchParam* mp, unsigned int limit)
266
+
267
+ Set a maximum number of match-stack depth.
268
+ 0 means unlimited.
269
+
270
+ arguments
271
+ 1 mp: match-param pointer
272
+ 2 limit: number of limit
273
+
274
+ normal return: ONIG_NORMAL
275
+
276
+
277
+ # int onig_set_retry_limit_in_match_of_match_param(OnigMatchParam* mp, unsigned long limit)
278
+
279
+ Set a retry limit count of a match process.
280
+
281
+ arguments
282
+ 1 mp: match-param pointer
283
+ 2 limit: number of limit
284
+
285
+ normal return: ONIG_NORMAL
286
+
287
+
288
+ # int onig_set_retry_limit_in_search_of_match_param(OnigMatchParam* mp, unsigned long limit)
289
+
290
+ Set a retry limit count of a search process.
291
+ 0 means unlimited.
292
+
293
+ arguments
294
+ 1 mp: match-param pointer
295
+ 2 limit: number of limit
296
+
297
+ normal return: ONIG_NORMAL
298
+
299
+
300
+ # int onig_set_progress_callout_of_match_param(OnigMatchParam* mp, OnigCalloutFunc f)
301
+
302
+ Set a function for callouts of contents in progress.
303
+ If 0 (NULL) is set, never called in progress.
304
+
305
+ arguments
306
+ 1 mp: match-param pointer
307
+ 2 f: function
308
+
309
+ normal return: ONIG_NORMAL
310
+
311
+
312
+ # int onig_set_retraction_callout_of_match_param(OnigMatchParam* mp, OnigCalloutFunc f)
313
+
314
+ Set a function for callouts of contents in retraction (backtrack).
315
+ If 0 (NULL) is set, never called in retraction.
316
+
317
+ arguments
318
+ 1 mp: match-param pointer
319
+ 2 f: function
320
+
321
+ normal return: ONIG_NORMAL
322
+
323
+
324
+
214
325
  # int onig_search(regex_t* reg, const UChar* str, const UChar* end, const UChar* start,
215
326
  const UChar* range, OnigRegion* region, OnigOptionType option)
216
327
 
217
328
  Search string and return search result and matching region.
329
+ Do not pass invalid byte string in the regex character encoding.
330
+
331
+ return value
332
+ normal: match position offset (i.e. p - str >= 0)
333
+ not found: ONIG_MISMATCH (< 0)
334
+ error: error code (< 0)
218
335
 
219
- normal return: match position offset (i.e. p - str >= 0)
220
- not found: ONIG_MISMATCH (< 0)
336
+ * If option ONIG_OPTION_CALLBACK_EACH_MATCH is used,
337
+ it will return ONIG_MISMATCH even if there is a match.
221
338
 
222
339
  arguments
223
340
  1 reg: regex object
@@ -230,18 +347,53 @@ Oniguruma API Version 6.1.0 2016/08/22
230
347
  6 region: address for return group match range info (NULL is allowed)
231
348
  7 option: search time option
232
349
 
233
- ONIG_OPTION_NOTBOL string head(str) isn't considered as begin of line
234
- ONIG_OPTION_NOTEOL string end (end) isn't considered as end of line
235
- ONIG_OPTION_POSIX_REGION region argument is regmatch_t[] of POSIX API.
350
+ ONIG_OPTION_NOTBOL Do not regard the beginning of the (str) as the beginning of the line and the beginning of the string
351
+ ONIG_OPTION_NOTEOL Do not regard the (end) as the end of a line and the end of a string
352
+ ONIG_OPTION_NOT_BEGIN_STRING Do not regard the beginning of the (str) as the beginning of a string (* fail \A)
353
+ ONIG_OPTION_NOT_END_STRING Do not regard the (end) as a string endpoint (* fail \z, \Z)
354
+ ONIG_OPTION_NOT_BEGIN_POSITION Do not regard the (start) as start position of search (* fail \G)
355
+
356
+ ONIG_OPTION_CALLBACK_EACH_MATCH
357
+ Call back for all successful matches.
358
+ (including the case of the same matching start position)
359
+ The search does not stop when a match is found at a certain position.
360
+ The callback function to be called is set by
361
+ onig_set_callback_each_match().
362
+ The user_data in the argument passed to the callback function is
363
+ specified by onig_set_callout_user_data_of_match_param(mp, user_data).
364
+ Therefore, if you want to specify user_data,
365
+ use onig_search_with_param() instead of onig_search().
366
+ The user_data specified by onig_set_callout_user_data_of_match_param()
367
+ will be shared with callout.
368
+
369
+ ONIG_OPTION_MATCH_WHOLE_STRING Try to match the whole of (str), rather than returning after the first match is found.
370
+
371
+
372
+ # int onig_search_with_param(regex_t* reg, const UChar* str, const UChar* end,
373
+ const UChar* start, const UChar* range, OnigRegion* region,
374
+ OnigOptionType option, OnigMatchParam* mp)
375
+
376
+ Search string and return search result and matching region.
377
+ Do not pass invalid byte string in the regex character encoding.
378
+
379
+ arguments
380
+ 1-7: same as onig_search()
381
+ 8 mp: match parameter values (match_stack_limit, retry_limit_in_match, retry_limit_in_search)
236
382
 
237
383
 
238
384
  # int onig_match(regex_t* reg, const UChar* str, const UChar* end, const UChar* at,
239
- OnigRegion* region, OnigOptionType option)
385
+ OnigRegion* region, OnigOptionType option)
240
386
 
241
387
  Match string and return result and matching region.
388
+ Do not pass invalid byte string in the regex character encoding.
389
+
390
+ return value
391
+ normal: match length (>= 0)
392
+ not match: ONIG_MISMATCH (< 0)
393
+ error: error code (< 0)
242
394
 
243
- normal return: match length (>= 0)
244
- not match: ONIG_MISMATCH ( < 0)
395
+ * If option ONIG_OPTION_CALLBACK_EACH_MATCH is used,
396
+ it will return ONIG_MISMATCH even if there is a match.
245
397
 
246
398
  arguments
247
399
  1 reg: regex object
@@ -251,9 +403,24 @@ Oniguruma API Version 6.1.0 2016/08/22
251
403
  5 region: address for return group match range info (NULL is allowed)
252
404
  6 option: search time option
253
405
 
254
- ONIG_OPTION_NOTBOL string head(str) isn't considered as begin of line
255
- ONIG_OPTION_NOTEOL string end (end) isn't considered as end of line
256
- ONIG_OPTION_POSIX_REGION region argument is regmatch_t[] type of POSIX API.
406
+ ONIG_OPTION_NOTBOL Do not regard the beginning of the (str) as the beginning of the line and the beginning of the string
407
+ ONIG_OPTION_NOTEOL Do not regard the (end) as the end of a line and the end of a string
408
+ ONIG_OPTION_NOT_BEGIN_STRING Do not regard the beginning of the (str) as the beginning of a string (* fail \A)
409
+ ONIG_OPTION_NOT_END_STRING Do not regard the (end) as a string endpoint (* fail \z, \Z)
410
+ ONIG_OPTION_NOT_BEGIN_POSITION Do not regard the (start) as start position of search (* fail \G)
411
+ ONIG_OPTION_CALLBACK_EACH_MATCH Call back for all successful matches.
412
+ ONIG_OPTION_MATCH_WHOLE_STRING Try to match the whole of (str), rather than returning after the first match is found.
413
+
414
+ # int onig_match_with_param(regex_t* reg, const UChar* str, const UChar* end,
415
+ const UChar* at, OnigRegion* region,
416
+ OnigOptionType option, OnigMatchParam* mp)
417
+
418
+ Match string and return result and matching region.
419
+ Do not pass invalid byte string in the regex character encoding.
420
+
421
+ arguments
422
+ 1-6: same as onig_match()
423
+ 7 mp: match parameter values (match_stack_limit, retry_limit_in_match, retry_limit_in_search)
257
424
 
258
425
 
259
426
  # int onig_scan(regex_t* reg, const UChar* str, const UChar* end,
@@ -262,10 +429,12 @@ Oniguruma API Version 6.1.0 2016/08/22
262
429
  void* callback_arg)
263
430
 
264
431
  Scan string and callback with matching region.
432
+ Do not pass invalid byte string in the regex character encoding.
265
433
 
266
- normal return: number of matching times
267
- error: error code
268
- interruption: return value of callback function (!= 0)
434
+ return value
435
+ normal: number of matching times
436
+ error: error code
437
+ interruption: return value of callback function (!= 0)
269
438
 
270
439
  arguments
271
440
  1 reg: regex object
@@ -277,6 +446,150 @@ Oniguruma API Version 6.1.0 2016/08/22
277
446
  7 callback_arg: optional argument passed to callback
278
447
 
279
448
 
449
+ # int onig_regset_new(OnigRegSet** rset, int n, regex_t* regs[])
450
+
451
+ Create a regset object.
452
+ All regex objects must have the same character encoding.
453
+ All regex objects are prohibited from having the ONIG_OPTION_FIND_LONGEST option.
454
+
455
+ arguments
456
+ 1 rset: return address of regset object
457
+ 2 n: number of regex in regs
458
+ 3 regs: array of regex
459
+
460
+ return value
461
+ normal: ONIG_NORMAL == 0
462
+ error: error code < 0
463
+
464
+
465
+ # int onig_regset_add(OnigRegSet* set, regex_t* reg)
466
+
467
+ Add a regex into regset.
468
+ The regex object must have the same character encoding with the regset.
469
+ The regex object is prohibited from having the ONIG_OPTION_FIND_LONGEST option.
470
+
471
+ arguments
472
+ 1 set: regset object
473
+ 2 reg: regex object
474
+
475
+ return value
476
+ normal: ONIG_NORMAL == 0
477
+ error: error code < 0
478
+
479
+
480
+ # int onig_regset_replace(OnigRegSet* set, int at, regex_t* reg)
481
+
482
+ Replace a regex in regset with another one.
483
+ If the reg argument value is NULL, then remove at-th regex. (and indexes of other regexes are changed)
484
+
485
+ arguments
486
+ 1 set: regset object
487
+ 2 at: index of regex (zero origin)
488
+ 3 reg: regex object
489
+
490
+ return value
491
+ normal: ONIG_NORMAL == 0
492
+ error: error code < 0
493
+
494
+
495
+ # void onig_regset_free(OnigRegSet* set)
496
+
497
+ Free memory used by regset object and regex objects in the regset.
498
+ If the same regex object is registered twice, the situation becomes destructive.
499
+
500
+ arguments
501
+ 1 set: regset object
502
+
503
+
504
+ # int onig_regset_number_of_regex(OnigRegSet* set)
505
+
506
+ Returns number of regex objects in the regset.
507
+
508
+ arguments
509
+ 1 set: regset object
510
+
511
+
512
+ # regex_t* onig_regset_get_regex(OnigRegSet* set, int at)
513
+
514
+ Returns the regex object corresponding to the at-th regex.
515
+
516
+ arguments
517
+ 1 set: regset object
518
+ 2 at: index of regex array (zero origin)
519
+
520
+
521
+ # OnigRegion* onig_regset_get_region(OnigRegSet* set, int at)
522
+
523
+ Returns the region object corresponding to the at-th regex.
524
+
525
+ arguments
526
+ 1 set: regset object
527
+ 2 at: index of regex array (zero origin)
528
+
529
+
530
+ # int onig_regset_search(OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegSetLead lead, OnigOptionType option, int* rmatch_pos)
531
+
532
+ Perform a search with regset.
533
+
534
+ return value:
535
+ normal: index of match regex (zero origin)
536
+ not found: ONIG_MISMATCH (< 0)
537
+ error: error code (< 0)
538
+
539
+ arguments
540
+ 1 set: regset object
541
+ 2 str: target string
542
+ 3 end: terminate address of target string
543
+ 4 start: search start address of target string
544
+ 5 range: search terminate address of target string
545
+ 6 lead: outer loop element
546
+ ONIG_REGSET_POSITION_LEAD (returns most left position)
547
+ ONIG_REGSET_REGEX_LEAD (returns most left position)
548
+ ONIG_REGSET_PRIORITY_TO_REGEX_ORDER (returns first match regex)
549
+ 7 option: search time option
550
+ ONIG_OPTION_NOTBOL Do not regard the beginning of the (str) as the beginning of the line and the beginning of the string
551
+ ONIG_OPTION_NOTEOL Do not regard the (end) as the end of a line and the end of a string
552
+ ONIG_OPTION_NOT_BEGIN_STRING Do not regard the beginning of the (str) as the beginning of a string (* fail \A)
553
+ ONIG_OPTION_NOT_END_STRING Do not regard the (end) as a string endpoint (* fail \z, \Z)
554
+ ONIG_OPTION_NOT_BEGIN_POSITION Do not regard the (start) as start position of search (* fail \G)
555
+
556
+ 8 rmatch_pos: return address of match position (match_address - str)
557
+
558
+ * ONIG_REGSET_POSITION_LEAD and ONIG_REGSET_REGEX_LEAD return the same result.
559
+ These differences only appear in search time.
560
+ In most cases, ONIG_REGSET_POSITION_LEAD seems to be faster.
561
+
562
+
563
+ # int onig_regset_search_with_param(OnigRegSet* set, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegSetLead lead, OnigOptionType option, OnigMatchParam* mps[], int* rmatch_pos)
564
+
565
+ Perform a search with regset and match-params.
566
+
567
+ return value:
568
+ normal: index of match regex (zero origin)
569
+ not found: ONIG_MISMATCH (< 0)
570
+ error: error code (< 0)
571
+
572
+ arguments
573
+ 1 set: regset object
574
+ 2 str: target string
575
+ 3 end: terminate address of target string
576
+ 4 start: search start address of target string
577
+ 5 range: search terminate address of target string
578
+ 6 lead: outer loop element
579
+ ONIG_REGSET_POSITION_LEAD (returns most left position)
580
+ ONIG_REGSET_REGEX_LEAD (returns most left position)
581
+ ONIG_REGSET_PRIORITY_TO_REGEX_ORDER (returns first match regex)
582
+ 7 option: search time option
583
+ ONIG_OPTION_NOTBOL Do not regard the beginning of the (str) as the beginning of the line and the beginning of the string
584
+ ONIG_OPTION_NOTEOL Do not regard the (end) as the end of a line and the end of a string
585
+ ONIG_OPTION_NOT_BEGIN_STRING Do not regard the beginning of the (str) as the beginning of a string (* fail \A)
586
+ ONIG_OPTION_NOT_END_STRING Do not regard the (end) as a string endpoint (* fail \z, \Z)
587
+ ONIG_OPTION_NOT_BEGIN_POSITION Do not regard the (start) as start position of search (* fail \G)
588
+
589
+ 8 mps: array of match-params
590
+ 9 rmatch_pos: return address of match position (match_address - str)
591
+
592
+
280
593
  # OnigRegion* onig_region_new(void)
281
594
 
282
595
  Create a region.
@@ -312,7 +625,9 @@ Oniguruma API Version 6.1.0 2016/08/22
312
625
 
313
626
  Resize group range area of region.
314
627
 
315
- normal return: ONIG_NORMAL
628
+ return value
629
+ normal: ONIG_NORMAL == 0
630
+ error: error code < 0
316
631
 
317
632
  arguments
318
633
  1 region: target region
@@ -325,9 +640,10 @@ Oniguruma API Version 6.1.0 2016/08/22
325
640
  Return the group number list of the name.
326
641
  Named subexp is defined by (?<name>....).
327
642
 
328
- normal return: number of groups for the name.
329
- (ex. /(?<x>..)(?<x>..)/ ==> 2)
330
- name not found: -1
643
+ return value
644
+ normal: number of groups for the name.
645
+ (ex. /(?<x>..)(?<x>..)/ ==> 2)
646
+ name not found: ONIGERR_UNDEFINED_NAME_REFERENCE
331
647
 
332
648
  arguments
333
649
  1 reg: regex object.
@@ -343,7 +659,9 @@ Oniguruma API Version 6.1.0 2016/08/22
343
659
  If two or more regions for the groups of the name are effective,
344
660
  the greatest number in it is obtained.
345
661
 
346
- normal return: group number.
662
+ return value
663
+ normal: group number
664
+ error: error code < 0
347
665
 
348
666
  arguments
349
667
  1 reg: regex object.
@@ -353,13 +671,14 @@ Oniguruma API Version 6.1.0 2016/08/22
353
671
 
354
672
 
355
673
  # int onig_foreach_name(regex_t* reg,
356
- int (*func)(const UChar*, const UChar*, int,int*,regex_t*,void*),
357
- void* arg)
674
+ int (*func)(const UChar*, const UChar*, int,int*,regex_t*,void*),
675
+ void* arg)
358
676
 
359
677
  Iterate function call for all names.
360
678
 
361
- normal return: 0
362
- error: func's return value.
679
+ return value
680
+ normal: 0
681
+ error: return value of callback function
363
682
 
364
683
  arguments
365
684
  1 reg: regex object.
@@ -381,7 +700,6 @@ Oniguruma API Version 6.1.0 2016/08/22
381
700
 
382
701
  # OnigEncoding onig_get_encoding(regex_t* reg)
383
702
  # OnigOptionType onig_get_options(regex_t* reg)
384
- # OnigCaseFoldType onig_get_case_fold_flag(regex_t* reg)
385
703
  # OnigSyntaxType* onig_get_syntax(regex_t* reg)
386
704
 
387
705
  Return a value of the regex object.
@@ -390,6 +708,15 @@ Oniguruma API Version 6.1.0 2016/08/22
390
708
  1 reg: regex object.
391
709
 
392
710
 
711
+ # OnigCaseFoldType onig_get_case_fold_flag(regex_t* reg)
712
+
713
+ Return the case_fold_flag of the regex object.
714
+ This function is deprecated.
715
+
716
+ arguments
717
+ 1 reg: regex object.
718
+
719
+
393
720
  # int onig_number_of_captures(regex_t* reg)
394
721
 
395
722
  Return the number of capture group in the pattern.
@@ -398,6 +725,23 @@ Oniguruma API Version 6.1.0 2016/08/22
398
725
  1 reg: regex object.
399
726
 
400
727
 
728
+ # OnigCallbackEachMatchFunc onig_get_callback_each_match(void)
729
+
730
+ Return the current callback function for ONIG_OPTION_CALLBACK_EACH_MATCH.
731
+
732
+
733
+ # int onig_set_callback_each_match(OnigCallbackEachMatchFunc func)
734
+
735
+ Set the callback function for ONIG_OPTION_CALLBACK_EACH_MATCH.
736
+ If NULL is set, the callback will never be executed.
737
+
738
+ return value
739
+ normal: 0
740
+
741
+ arguments
742
+ 1 func: callback function
743
+
744
+
401
745
  # int onig_number_of_capture_histories(regex_t* reg)
402
746
 
403
747
  Return the number of capture history defined in the pattern.
@@ -409,12 +753,11 @@ Oniguruma API Version 6.1.0 2016/08/22
409
753
  1 reg: regex object.
410
754
 
411
755
 
412
-
413
756
  # OnigCaptureTreeNode* onig_get_capture_tree(OnigRegion* region)
414
757
 
415
758
  Return the root node of capture history data tree.
416
759
 
417
- This value is undefined if matching has faild.
760
+ This value is undefined if matching has failed.
418
761
 
419
762
  arguments
420
763
  1 region: matching result.
@@ -425,8 +768,9 @@ Oniguruma API Version 6.1.0 2016/08/22
425
768
 
426
769
  Traverse and callback in capture history data tree.
427
770
 
428
- normal return: 0
429
- error: callback func's return value.
771
+ return value
772
+ normal: 0
773
+ error: return value of callback function
430
774
 
431
775
  arguments
432
776
  1 region: match region data.
@@ -459,6 +803,7 @@ Oniguruma API Version 6.1.0 2016/08/22
459
803
 
460
804
  Return noname group capture activity.
461
805
 
806
+ return value
462
807
  active: 1
463
808
  inactive: 0
464
809
 
@@ -509,14 +854,20 @@ Oniguruma API Version 6.1.0 2016/08/22
509
854
 
510
855
 
511
856
  # int onigenc_strlen(OnigEncoding enc, const UChar* s, const UChar* end)
857
+
858
+ Return number of characters in the string.
859
+
860
+
512
861
  # int onigenc_strlen_null(OnigEncoding enc, const UChar* s)
513
862
 
514
863
  Return number of characters in the string.
864
+ Do not pass invalid byte string in the character encoding.
515
865
 
516
866
 
517
867
  # int onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s)
518
868
 
519
869
  Return number of bytes in the string.
870
+ Do not pass invalid byte string in the character encoding.
520
871
 
521
872
 
522
873
  # int onig_set_default_syntax(OnigSyntaxType* syntax)
@@ -589,11 +940,13 @@ Oniguruma API Version 6.1.0 2016/08/22
589
940
  # OnigCaseFoldType onig_get_default_case_fold_flag()
590
941
 
591
942
  Get default case fold flag.
943
+ This function is deprecated.
592
944
 
593
945
 
594
946
  # int onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag)
595
947
 
596
948
  Set default case fold flag.
949
+ This function is deprecated.
597
950
 
598
951
  1 case_fold_flag: case fold flag
599
952
 
@@ -612,6 +965,94 @@ Oniguruma API Version 6.1.0 2016/08/22
612
965
  normal return: ONIG_NORMAL
613
966
 
614
967
 
968
+ # unsigned long onig_get_retry_limit_in_match(void)
969
+
970
+ Return the limit of retry counts in a matching process.
971
+ (default: 10000000)
972
+
973
+ normal return: current limit value
974
+
975
+
976
+ # unsigned long onig_get_retry_limit_in_search(void)
977
+
978
+ Return the limit of retry counts in a search process.
979
+ 0 means unlimited.
980
+ (default: 0)
981
+
982
+ normal return: current limit value
983
+
984
+
985
+ # int onig_set_retry_limit_in_match(unsigned long limit)
986
+
987
+ Set the limit of retry counts in matching process.
988
+
989
+ normal return: ONIG_NORMAL
990
+
991
+
992
+ # int onig_set_retry_limit_in_search(unsigned long limit)
993
+
994
+ Set a retry limit count of a search process.
995
+ 0 means unlimited.
996
+
997
+ normal return: ONIG_NORMAL
998
+
999
+
1000
+ # unsigned long onig_get_subexp_call_limit_in_search(void)
1001
+
1002
+ Return the limit of subexp call count.
1003
+ (default: 0:unlimited)
1004
+
1005
+ normal return: current limit value
1006
+
1007
+
1008
+ # int onig_set_subexp_call_limit_in_search(unsigned long n)
1009
+
1010
+ Set a limit count of subexp call.
1011
+
1012
+ normal return: ONIG_NORMAL
1013
+
1014
+
1015
+ # int onig_get_subexp_call_max_nest_level(void)
1016
+
1017
+ Return the limit of subexp call nest level.
1018
+ (default: 24)
1019
+
1020
+ normal return: current limit value
1021
+
1022
+
1023
+ # int onig_set_subexp_call_max_nest_level(int max_level)
1024
+
1025
+ Set a limit level of subexp call nest level.
1026
+
1027
+ normal return: ONIG_NORMAL
1028
+
1029
+
1030
+ # OnigCalloutFunc onig_get_progress_callout(void)
1031
+
1032
+ Get a function for callouts of contents in progress.
1033
+
1034
+
1035
+ # int onig_set_progress_callout(OnigCalloutFunc f)
1036
+
1037
+ Set a function for callouts of contents in progress.
1038
+ If 0 (NULL) is set, never called in progress.
1039
+
1040
+ normal return: ONIG_NORMAL
1041
+
1042
+
1043
+ # OnigCalloutFunc onig_get_retraction_callout(void)
1044
+
1045
+ Get a function for callouts of contents in retraction (backtrack).
1046
+
1047
+
1048
+ # int onig_set_retraction_callout(OnigCalloutFunc f)
1049
+
1050
+ Set a function for callouts of contents in retraction (backtrack).
1051
+ If 0 (NULL) is set, never called in retraction.
1052
+
1053
+ normal return: ONIG_NORMAL
1054
+
1055
+
615
1056
  # int onig_unicode_define_user_property(const char* name, OnigCodePoint* ranges))
616
1057
 
617
1058
  Define new Unicode property.
@@ -626,7 +1067,9 @@ Oniguruma API Version 6.1.0 2016/08/22
626
1067
 
627
1068
  * Don't destroy the ranges after having called this function.
628
1069
 
629
- normal return: ONIG_NORMAL
1070
+ return value
1071
+ normal: ONIG_NORMAL == 0
1072
+ error: error code < 0
630
1073
 
631
1074
 
632
1075
  # unsigned int onig_get_parse_depth_limit(void)