@port-labs/jq-node-bindings 0.0.4 → 0.0.5

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 (286) hide show
  1. package/binding.gyp +3 -3
  2. package/configure +8 -6
  3. package/deps/jq/.travis.yml +184 -35
  4. package/deps/jq/AUTHORS +31 -30
  5. package/deps/jq/COPYING +2 -2
  6. package/deps/jq/KEYS +8 -0
  7. package/deps/jq/Makefile.am +85 -70
  8. package/deps/jq/NEWS +5 -4
  9. package/deps/jq/README.md +18 -9
  10. package/deps/jq/appveyor.yml +53 -0
  11. package/deps/jq/compile-ios.sh +5 -5
  12. package/deps/jq/config/m4/check-math-func.m4 +7 -2
  13. package/deps/jq/configure.ac +130 -68
  14. package/deps/jq/docs/Rakefile +14 -135
  15. package/deps/jq/docs/Rakefile.manual +49 -0
  16. package/deps/jq/docs/Rakefile.website +76 -0
  17. package/deps/jq/docs/content/2.download/default.yml +115 -39
  18. package/deps/jq/docs/content/3.manual/manual.yml +641 -231
  19. package/deps/jq/docs/content/3.manual/v1.3/manual.yml +130 -130
  20. package/deps/jq/docs/content/3.manual/v1.4/manual.yml +160 -160
  21. package/deps/jq/docs/content/3.manual/v1.5/manual.yml +2878 -0
  22. package/deps/jq/docs/content/3.manual/v1.6/manual.yml +3287 -0
  23. package/deps/jq/docs/content/index/index.yml +28 -6
  24. package/deps/jq/docs/public/.htaccess +2 -2
  25. package/deps/jq/docs/public/css/base.scss +141 -59
  26. package/deps/jq/docs/public/js/manual-search.js +52 -0
  27. package/deps/jq/docs/site.yml +1 -10
  28. package/deps/jq/docs/templates/default.liquid +10 -10
  29. package/deps/jq/docs/templates/index.liquid +45 -32
  30. package/deps/jq/docs/templates/manual.liquid +67 -90
  31. package/deps/jq/docs/templates/shared/_footer.liquid +10 -5
  32. package/deps/jq/docs/templates/shared/_head.liquid +17 -12
  33. package/deps/jq/docs/templates/shared/_navbar.liquid +27 -0
  34. package/deps/jq/jq.1.prebuilt +523 -139
  35. package/deps/jq/modules/oniguruma/AUTHORS +1 -0
  36. package/deps/jq/modules/oniguruma/CMakeLists.txt +86 -0
  37. package/deps/jq/modules/oniguruma/COPYING +28 -0
  38. package/deps/jq/modules/oniguruma/ChangeLog +0 -0
  39. package/deps/jq/modules/oniguruma/HISTORY +2138 -0
  40. package/deps/jq/modules/oniguruma/Makefile.am +33 -0
  41. package/deps/jq/modules/oniguruma/NEWS +0 -0
  42. package/deps/jq/modules/oniguruma/README +189 -0
  43. package/deps/jq/modules/oniguruma/README.ja +195 -0
  44. package/deps/jq/modules/oniguruma/README.md +203 -0
  45. package/deps/jq/modules/oniguruma/cmake/dist.cmake +321 -0
  46. package/deps/jq/modules/oniguruma/compile +348 -0
  47. package/deps/jq/modules/oniguruma/config.guess +1754 -0
  48. package/deps/jq/modules/oniguruma/config.sub +1890 -0
  49. package/deps/jq/modules/oniguruma/configure.ac +87 -0
  50. package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +31 -0
  51. package/deps/jq/modules/oniguruma/depcomp +791 -0
  52. package/deps/jq/modules/oniguruma/dist.info +10 -0
  53. package/deps/jq/modules/oniguruma/doc/API +660 -0
  54. package/deps/jq/modules/oniguruma/doc/API.ja +667 -0
  55. package/deps/jq/modules/oniguruma/doc/FAQ +12 -0
  56. package/deps/jq/modules/oniguruma/doc/FAQ.ja +22 -0
  57. package/deps/jq/modules/oniguruma/doc/RE +436 -0
  58. package/deps/jq/modules/oniguruma/doc/RE.ja +448 -0
  59. package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +698 -0
  60. package/deps/jq/modules/oniguruma/index.html +181 -0
  61. package/deps/jq/modules/oniguruma/index_ja.html +184 -0
  62. package/deps/jq/modules/oniguruma/install-sh +541 -0
  63. package/deps/jq/modules/oniguruma/m4/.whatever +0 -0
  64. package/deps/jq/modules/oniguruma/make_win32.bat +3 -0
  65. package/deps/jq/modules/oniguruma/make_win64.bat +3 -0
  66. package/deps/jq/modules/oniguruma/missing +215 -0
  67. package/deps/jq/modules/oniguruma/onig-config.in +78 -0
  68. package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +13 -0
  69. package/deps/jq/modules/oniguruma/oniguruma.pc.in +14 -0
  70. package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +28 -0
  71. package/deps/jq/modules/oniguruma/sample/Makefile.am +34 -0
  72. package/deps/jq/modules/oniguruma/sample/bug_fix.c +131 -0
  73. package/deps/jq/modules/oniguruma/sample/crnl.c +127 -0
  74. package/deps/jq/modules/oniguruma/sample/encode.c +308 -0
  75. package/deps/jq/modules/oniguruma/sample/listcap.c +110 -0
  76. package/deps/jq/modules/oniguruma/sample/names.c +75 -0
  77. package/deps/jq/modules/oniguruma/sample/posix.c +96 -0
  78. package/deps/jq/modules/oniguruma/sample/scan.c +88 -0
  79. package/deps/jq/modules/oniguruma/sample/simple.c +59 -0
  80. package/deps/jq/modules/oniguruma/sample/sql.c +76 -0
  81. package/deps/jq/modules/oniguruma/sample/syntax.c +76 -0
  82. package/deps/jq/modules/oniguruma/sample/user_property.c +87 -0
  83. package/deps/jq/modules/oniguruma/src/Makefile.am +58 -0
  84. package/deps/jq/modules/oniguruma/src/Makefile.windows +183 -0
  85. package/deps/jq/modules/oniguruma/src/ascii.c +61 -0
  86. package/deps/jq/modules/oniguruma/src/big5.c +190 -0
  87. package/deps/jq/modules/oniguruma/src/config.h.cmake.in +71 -0
  88. package/deps/jq/modules/oniguruma/src/config.h.win32 +84 -0
  89. package/deps/jq/modules/oniguruma/src/config.h.win64 +84 -0
  90. package/deps/jq/modules/oniguruma/src/cp1251.c +203 -0
  91. package/deps/jq/modules/oniguruma/src/euc_jp.c +310 -0
  92. package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +158 -0
  93. package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +27 -0
  94. package/deps/jq/modules/oniguruma/src/euc_kr.c +188 -0
  95. package/deps/jq/modules/oniguruma/src/euc_tw.c +171 -0
  96. package/deps/jq/modules/oniguruma/src/gb18030.c +538 -0
  97. package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +67 -0
  98. package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +55 -0
  99. package/deps/jq/modules/oniguruma/src/iso8859_1.c +275 -0
  100. package/deps/jq/modules/oniguruma/src/iso8859_10.c +242 -0
  101. package/deps/jq/modules/oniguruma/src/iso8859_11.c +99 -0
  102. package/deps/jq/modules/oniguruma/src/iso8859_13.c +231 -0
  103. package/deps/jq/modules/oniguruma/src/iso8859_14.c +244 -0
  104. package/deps/jq/modules/oniguruma/src/iso8859_15.c +238 -0
  105. package/deps/jq/modules/oniguruma/src/iso8859_16.c +240 -0
  106. package/deps/jq/modules/oniguruma/src/iso8859_2.c +238 -0
  107. package/deps/jq/modules/oniguruma/src/iso8859_3.c +238 -0
  108. package/deps/jq/modules/oniguruma/src/iso8859_4.c +240 -0
  109. package/deps/jq/modules/oniguruma/src/iso8859_5.c +229 -0
  110. package/deps/jq/modules/oniguruma/src/iso8859_6.c +99 -0
  111. package/deps/jq/modules/oniguruma/src/iso8859_7.c +225 -0
  112. package/deps/jq/modules/oniguruma/src/iso8859_8.c +99 -0
  113. package/deps/jq/modules/oniguruma/src/iso8859_9.c +231 -0
  114. package/deps/jq/modules/oniguruma/src/koi8.c +253 -0
  115. package/deps/jq/modules/oniguruma/src/koi8_r.c +215 -0
  116. package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +22 -0
  117. package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +306 -0
  118. package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +18 -0
  119. package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +545 -0
  120. package/deps/jq/modules/oniguruma/src/mktable.c +1184 -0
  121. package/deps/jq/modules/oniguruma/src/onig_init.c +45 -0
  122. package/deps/jq/modules/oniguruma/src/oniggnu.h +85 -0
  123. package/deps/jq/modules/oniguruma/src/onigposix.h +169 -0
  124. package/deps/jq/modules/oniguruma/src/oniguruma.h +841 -0
  125. package/deps/jq/modules/oniguruma/src/regcomp.c +6300 -0
  126. package/deps/jq/modules/oniguruma/src/regenc.c +917 -0
  127. package/deps/jq/modules/oniguruma/src/regenc.h +243 -0
  128. package/deps/jq/modules/oniguruma/src/regerror.c +393 -0
  129. package/deps/jq/modules/oniguruma/src/regexec.c +3856 -0
  130. package/deps/jq/modules/oniguruma/src/regext.c +202 -0
  131. package/deps/jq/modules/oniguruma/src/reggnu.c +147 -0
  132. package/deps/jq/modules/oniguruma/src/regint.h +779 -0
  133. package/deps/jq/modules/oniguruma/src/regparse.c +5403 -0
  134. package/deps/jq/modules/oniguruma/src/regparse.h +351 -0
  135. package/deps/jq/modules/oniguruma/src/regposerr.c +105 -0
  136. package/deps/jq/modules/oniguruma/src/regposix.c +306 -0
  137. package/deps/jq/modules/oniguruma/src/regsyntax.c +315 -0
  138. package/deps/jq/modules/oniguruma/src/regtrav.c +76 -0
  139. package/deps/jq/modules/oniguruma/src/regversion.c +57 -0
  140. package/deps/jq/modules/oniguruma/src/sjis.c +341 -0
  141. package/deps/jq/modules/oniguruma/src/sjis_prop.c +158 -0
  142. package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +27 -0
  143. package/deps/jq/modules/oniguruma/src/st.c +589 -0
  144. package/deps/jq/modules/oniguruma/src/st.h +68 -0
  145. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +2250 -0
  146. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +203 -0
  147. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +113 -0
  148. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +1225 -0
  149. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +24742 -0
  150. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +4846 -0
  151. package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +2571 -0
  152. package/deps/jq/modules/oniguruma/src/unicode.c +664 -0
  153. package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +2548 -0
  154. package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +203 -0
  155. package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +113 -0
  156. package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1366 -0
  157. package/deps/jq/modules/oniguruma/src/unicode_property_data.c +25306 -0
  158. package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +4940 -0
  159. package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +2854 -0
  160. package/deps/jq/modules/oniguruma/src/utf16_be.c +235 -0
  161. package/deps/jq/modules/oniguruma/src/utf16_le.c +245 -0
  162. package/deps/jq/modules/oniguruma/src/utf32_be.c +194 -0
  163. package/deps/jq/modules/oniguruma/src/utf32_le.c +194 -0
  164. package/deps/jq/modules/oniguruma/src/utf8.c +335 -0
  165. package/deps/jq/modules/oniguruma/test/Makefile.am +28 -0
  166. package/deps/jq/modules/oniguruma/test/testc.c +874 -0
  167. package/deps/jq/modules/oniguruma/test/testu.c +916 -0
  168. package/deps/jq/modules/oniguruma/test-driver +153 -0
  169. package/deps/jq/modules/oniguruma/windows/testc.c +869 -0
  170. package/deps/jq/scripts/crosscompile +2 -1
  171. package/deps/jq/scripts/gen_utf8_tables.py +2 -3
  172. package/deps/jq/scripts/update-website +29 -0
  173. package/deps/jq/scripts/version +7 -2
  174. package/deps/jq/sig/jq-release.key +41 -0
  175. package/deps/jq/sig/v1.3/jq-linux-x86.asc +17 -0
  176. package/deps/jq/sig/v1.3/jq-linux-x86_64.asc +17 -0
  177. package/deps/jq/sig/v1.3/jq-osx-x86.asc +17 -0
  178. package/deps/jq/sig/v1.3/jq-osx-x86_64.asc +17 -0
  179. package/deps/jq/sig/v1.3/jq-win32.exe.asc +17 -0
  180. package/deps/jq/sig/v1.3/jq-win64.exe.asc +17 -0
  181. package/deps/jq/sig/v1.3/sha256sum.txt +6 -0
  182. package/deps/jq/sig/v1.4/jq-linux-x86.asc +17 -0
  183. package/deps/jq/sig/v1.4/jq-linux-x86_64.asc +17 -0
  184. package/deps/jq/sig/v1.4/jq-osx-x86.asc +17 -0
  185. package/deps/jq/sig/v1.4/jq-osx-x86_64.asc +17 -0
  186. package/deps/jq/sig/v1.4/jq-solaris11-32.asc +17 -0
  187. package/deps/jq/sig/v1.4/jq-solaris11-64.asc +17 -0
  188. package/deps/jq/sig/v1.4/jq-win32.exe.asc +17 -0
  189. package/deps/jq/sig/v1.4/jq-win64.exe.asc +17 -0
  190. package/deps/jq/sig/v1.4/sha256sum.txt +8 -0
  191. package/deps/jq/sig/v1.5/jq-linux32-no-oniguruma.asc +17 -0
  192. package/deps/jq/sig/v1.5/jq-linux32.asc +17 -0
  193. package/deps/jq/sig/v1.5/jq-linux64.asc +17 -0
  194. package/deps/jq/sig/v1.5/jq-osx-amd64.asc +17 -0
  195. package/deps/jq/sig/v1.5/jq-win32.exe.asc +17 -0
  196. package/deps/jq/sig/v1.5/jq-win64.exe.asc +17 -0
  197. package/deps/jq/sig/v1.5/sha256sum.txt +5 -0
  198. package/deps/jq/sig/v1.5rc1/jq-linux-x86_64-static.asc +17 -0
  199. package/deps/jq/sig/v1.5rc1/jq-win32.exe.asc +17 -0
  200. package/deps/jq/sig/v1.5rc1/jq-win64.exe.asc +17 -0
  201. package/deps/jq/sig/v1.5rc1/sha256sum.txt +3 -0
  202. package/deps/jq/sig/v1.5rc2/jq-linux-x86.asc +17 -0
  203. package/deps/jq/sig/v1.5rc2/jq-linux-x86_64.asc +17 -0
  204. package/deps/jq/sig/v1.5rc2/jq-osx-x86_64.asc +17 -0
  205. package/deps/jq/sig/v1.5rc2/jq-win32.exe.asc +17 -0
  206. package/deps/jq/sig/v1.5rc2/jq-win64.exe.asc +17 -0
  207. package/deps/jq/sig/v1.5rc2/sha256sum.txt +5 -0
  208. package/deps/jq/sig/v1.6/jq-linux32.asc +16 -0
  209. package/deps/jq/sig/v1.6/jq-linux64.asc +16 -0
  210. package/deps/jq/sig/v1.6/jq-osx-amd64.asc +16 -0
  211. package/deps/jq/sig/v1.6/jq-win32.exe.asc +16 -0
  212. package/deps/jq/sig/v1.6/jq-win64.exe.asc +16 -0
  213. package/deps/jq/sig/v1.6/sha256sum.txt +5 -0
  214. package/deps/jq/{builtin.c → src/builtin.c} +449 -344
  215. package/deps/jq/{builtin.h → src/builtin.h} +0 -0
  216. package/deps/jq/src/builtin.jq +311 -0
  217. package/deps/jq/{bytecode.c → src/bytecode.c} +0 -0
  218. package/deps/jq/{bytecode.h → src/bytecode.h} +0 -0
  219. package/deps/jq/{compile.c → src/compile.c} +213 -37
  220. package/deps/jq/{compile.h → src/compile.h} +7 -2
  221. package/deps/jq/{exec_stack.h → src/exec_stack.h} +0 -0
  222. package/deps/jq/{execute.c → src/execute.c} +127 -24
  223. package/deps/jq/{inject_errors.c → src/inject_errors.c} +0 -0
  224. package/deps/jq/{jq.h → src/jq.h} +13 -2
  225. package/deps/jq/{jq_parser.h → src/jq_parser.h} +0 -0
  226. package/deps/jq/{jq_test.c → src/jq_test.c} +1 -1
  227. package/deps/jq/{jv.c → src/jv.c} +24 -5
  228. package/deps/jq/{jv.h → src/jv.h} +46 -11
  229. package/deps/jq/{jv_alloc.c → src/jv_alloc.c} +0 -0
  230. package/deps/jq/{jv_alloc.h → src/jv_alloc.h} +0 -0
  231. package/deps/jq/{jv_aux.c → src/jv_aux.c} +38 -14
  232. package/deps/jq/{jv_dtoa.c → src/jv_dtoa.c} +4 -5
  233. package/deps/jq/{jv_dtoa.h → src/jv_dtoa.h} +0 -0
  234. package/deps/jq/src/jv_file.c +81 -0
  235. package/deps/jq/{jv_parse.c → src/jv_parse.c} +8 -2
  236. package/deps/jq/{jv_print.c → src/jv_print.c} +80 -27
  237. package/deps/jq/{jv_unicode.c → src/jv_unicode.c} +28 -4
  238. package/deps/jq/{jv_unicode.h → src/jv_unicode.h} +1 -0
  239. package/deps/jq/{jv_utf8_tables.h → src/jv_utf8_tables.h} +0 -0
  240. package/deps/jq/{lexer.c → src/lexer.c} +317 -292
  241. package/deps/jq/{lexer.h → src/lexer.h} +16 -12
  242. package/deps/jq/{lexer.l → src/lexer.l} +5 -4
  243. package/deps/jq/src/libm.h +291 -0
  244. package/deps/jq/{linker.c → src/linker.c} +5 -3
  245. package/deps/jq/{linker.h → src/linker.h} +0 -0
  246. package/deps/jq/{locfile.c → src/locfile.c} +1 -1
  247. package/deps/jq/{locfile.h → src/locfile.h} +0 -0
  248. package/deps/jq/{main.c → src/main.c} +202 -100
  249. package/deps/jq/{opcode_list.h → src/opcode_list.h} +4 -0
  250. package/deps/jq/{parser.c → src/parser.c} +1149 -1069
  251. package/deps/jq/{parser.h → src/parser.h} +28 -24
  252. package/deps/jq/{parser.y → src/parser.y} +108 -52
  253. package/deps/jq/{util.c → src/util.c} +12 -9
  254. package/deps/jq/{util.h → src/util.h} +0 -0
  255. package/deps/jq/tests/base64.test +35 -0
  256. package/deps/jq/tests/base64test +5 -0
  257. package/deps/jq/tests/jq-f-test.sh +4 -0
  258. package/deps/jq/tests/jq.test +305 -21
  259. package/deps/jq/tests/jqtest +1 -1
  260. package/deps/jq/tests/mantest +1 -1
  261. package/deps/jq/tests/onig.test +13 -0
  262. package/deps/jq/tests/onigtest +1 -1
  263. package/deps/jq/tests/optional.test +20 -0
  264. package/deps/jq/tests/optionaltest +5 -0
  265. package/deps/jq/tests/setup +7 -1
  266. package/deps/jq/tests/shtest +133 -29
  267. package/deps/jq/tests/utf8-truncate.jq +3 -0
  268. package/deps/jq/tests/utf8test +10 -0
  269. package/lib/index.js +7 -1
  270. package/package.json +3 -3
  271. package/test/santiy.test.js +24 -0
  272. package/deps/jq/docs/default_manpage.md +0 -22
  273. package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.css +0 -1058
  274. package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.min.css +0 -9
  275. package/deps/jq/docs/public/bootstrap/css/bootstrap.css +0 -5224
  276. package/deps/jq/docs/public/bootstrap/css/bootstrap.min.css +0 -9
  277. package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
  278. package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings.png +0 -0
  279. package/deps/jq/docs/public/bootstrap/js/bootstrap.js +0 -2027
  280. package/deps/jq/docs/public/bootstrap/js/bootstrap.min.js +0 -6
  281. package/deps/jq/docs/templates/shared/_header.liquid +0 -26
  282. package/deps/jq/jq.1.default +0 -39
  283. package/deps/jq/jv_file.c +0 -49
  284. package/deps/jq/libm.h +0 -160
  285. package/deps/jq/setup.sh +0 -33
  286. package/reports/jest-port-api.xml +0 -35
@@ -0,0 +1,10 @@
1
+ --- This file is part of LuaDist project
2
+
3
+ name = "onig"
4
+ version = "6.1.3"
5
+
6
+ desc = "Oniguruma is a regular expressions library."
7
+ author = "K.Kosako"
8
+ license = "BSD"
9
+ url = "https://github.com/kkos/oniguruma"
10
+ maintainer = "K.Kosako"
@@ -0,0 +1,660 @@
1
+ Oniguruma API Version 6.1.0 2016/08/22
2
+
3
+ #include <oniguruma.h>
4
+
5
+
6
+ # int onig_initialize(OnigEncoding use_encodings[], int num_encodings)
7
+
8
+ Initialize library.
9
+
10
+ You have to call it explicitly.
11
+
12
+ * onig_init() is deprecated.
13
+
14
+ arguments
15
+ 1 use_encodings: array of encodings used in application.
16
+ 2 num_encodings: number of encodings.
17
+
18
+
19
+ # int onig_error_code_to_str(UChar* err_buf, int err_code, ...)
20
+
21
+ Get error message string.
22
+ If this function is used for onig_new(),
23
+ don't call this after the pattern argument of onig_new() is freed.
24
+
25
+ normal return: error message string length
26
+
27
+ arguments
28
+ 1 err_buf: error message string buffer.
29
+ (required size: ONIG_MAX_ERROR_MESSAGE_LEN)
30
+ 2 err_code: error code returned by other API functions.
31
+ 3 err_info (optional): error info returned by onig_new().
32
+
33
+
34
+ # void onig_set_warn_func(OnigWarnFunc func)
35
+
36
+ Set warning function.
37
+
38
+ WARNING:
39
+ '[', '-', ']' in character class without escape.
40
+ ']' in pattern without escape.
41
+
42
+ arguments
43
+ 1 func: function pointer. void (*func)(char* warning_message)
44
+
45
+
46
+ # void onig_set_verb_warn_func(OnigWarnFunc func)
47
+
48
+ Set verbose warning function.
49
+
50
+ WARNING:
51
+ redundant nested repeat operator.
52
+
53
+ arguments
54
+ 1 func: function pointer. void (*func)(char* warning_message)
55
+
56
+
57
+ # int onig_new(regex_t** reg, const UChar* pattern, const UChar* pattern_end,
58
+ OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax,
59
+ OnigErrorInfo* err_info)
60
+
61
+ Create a regex object.
62
+
63
+ normal return: ONIG_NORMAL
64
+
65
+ arguments
66
+ 1 reg: return regex object's address.
67
+ 2 pattern: regex pattern string.
68
+ 3 pattern_end: terminate address of pattern. (pattern + pattern length)
69
+ 4 option: compile time options.
70
+
71
+ ONIG_OPTION_NONE no option
72
+ ONIG_OPTION_SINGLELINE '^' -> '\A', '$' -> '\Z'
73
+ ONIG_OPTION_MULTILINE '.' match with newline
74
+ ONIG_OPTION_IGNORECASE ambiguity match on
75
+ ONIG_OPTION_EXTEND extended pattern form
76
+ ONIG_OPTION_FIND_LONGEST find longest match
77
+ 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
82
+
83
+ ONIG_OPTION_DONT_CAPTURE_GROUP only named group captured.
84
+ ONIG_OPTION_CAPTURE_GROUP named and no-named group captured.
85
+
86
+ 5 enc: character encoding.
87
+
88
+ ONIG_ENCODING_ASCII ASCII
89
+ ONIG_ENCODING_ISO_8859_1 ISO 8859-1
90
+ ONIG_ENCODING_ISO_8859_2 ISO 8859-2
91
+ ONIG_ENCODING_ISO_8859_3 ISO 8859-3
92
+ ONIG_ENCODING_ISO_8859_4 ISO 8859-4
93
+ ONIG_ENCODING_ISO_8859_5 ISO 8859-5
94
+ ONIG_ENCODING_ISO_8859_6 ISO 8859-6
95
+ ONIG_ENCODING_ISO_8859_7 ISO 8859-7
96
+ ONIG_ENCODING_ISO_8859_8 ISO 8859-8
97
+ ONIG_ENCODING_ISO_8859_9 ISO 8859-9
98
+ ONIG_ENCODING_ISO_8859_10 ISO 8859-10
99
+ ONIG_ENCODING_ISO_8859_11 ISO 8859-11
100
+ ONIG_ENCODING_ISO_8859_13 ISO 8859-13
101
+ ONIG_ENCODING_ISO_8859_14 ISO 8859-14
102
+ ONIG_ENCODING_ISO_8859_15 ISO 8859-15
103
+ ONIG_ENCODING_ISO_8859_16 ISO 8859-16
104
+ ONIG_ENCODING_UTF8 UTF-8
105
+ ONIG_ENCODING_UTF16_BE UTF-16BE
106
+ ONIG_ENCODING_UTF16_LE UTF-16LE
107
+ ONIG_ENCODING_UTF32_BE UTF-32BE
108
+ ONIG_ENCODING_UTF32_LE UTF-32LE
109
+ ONIG_ENCODING_EUC_JP EUC-JP
110
+ ONIG_ENCODING_EUC_TW EUC-TW
111
+ ONIG_ENCODING_EUC_KR EUC-KR
112
+ ONIG_ENCODING_EUC_CN EUC-CN
113
+ ONIG_ENCODING_SJIS Shift_JIS
114
+ ONIG_ENCODING_KOI8_R KOI8-R
115
+ ONIG_ENCODING_CP1251 CP1251
116
+ ONIG_ENCODING_BIG5 Big5
117
+ ONIG_ENCODING_GB18030 GB18030
118
+
119
+ or any OnigEncodingType data address defined by user.
120
+
121
+ 6 syntax: address of pattern syntax definition.
122
+
123
+ ONIG_SYNTAX_ASIS plain text
124
+ ONIG_SYNTAX_POSIX_BASIC POSIX Basic RE
125
+ ONIG_SYNTAX_POSIX_EXTENDED POSIX Extended RE
126
+ ONIG_SYNTAX_EMACS Emacs
127
+ ONIG_SYNTAX_GREP grep
128
+ ONIG_SYNTAX_GNU_REGEX GNU regex
129
+ ONIG_SYNTAX_JAVA Java (Sun java.util.regex)
130
+ ONIG_SYNTAX_PERL Perl
131
+ ONIG_SYNTAX_PERL_NG Perl + named group
132
+ ONIG_SYNTAX_RUBY Ruby
133
+ ONIG_SYNTAX_DEFAULT default (== Ruby)
134
+ onig_set_default_syntax()
135
+
136
+ or any OnigSyntaxType data address defined by user.
137
+
138
+ 7 err_info: address for return optional error info.
139
+ Use this value as 3rd argument of onig_error_code_to_str().
140
+
141
+
142
+
143
+ # int onig_new_without_alloc(regex_t* reg, const UChar* pattern,
144
+ const UChar* pattern_end,
145
+ OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax,
146
+ OnigErrorInfo* err_info)
147
+
148
+ Create a regex object.
149
+ reg object area is not allocated in this function.
150
+
151
+ normal return: ONIG_NORMAL
152
+
153
+
154
+
155
+ # int onig_new_deluxe(regex_t** reg, const UChar* pattern, const UChar* pattern_end,
156
+ OnigCompileInfo* ci, OnigErrorInfo* einfo)
157
+
158
+ Create a regex object.
159
+ This function is deluxe version of onig_new().
160
+
161
+ normal return: ONIG_NORMAL
162
+
163
+ arguments
164
+ 1 reg: return address of regex object.
165
+ 2 pattern: regex pattern string.
166
+ 3 pattern_end: terminate address of pattern. (pattern + pattern length)
167
+ 4 ci: compile time info.
168
+
169
+ ci->num_of_elements: number of elements in ci. (current version: 5)
170
+ ci->pattern_enc: pattern string character encoding.
171
+ ci->target_enc: target string character encoding.
172
+ ci->syntax: address of pattern syntax definition.
173
+ ci->option: compile time option.
174
+ ci->case_fold_flag: character matching case fold bit flag for
175
+ ONIG_OPTION_IGNORECASE mode.
176
+
177
+ ONIGENC_CASE_FOLD_MIN: minimum
178
+ ONIGENC_CASE_FOLD_DEFAULT: minimum
179
+ onig_set_default_case_fold_flag()
180
+
181
+ 5 err_info: address for return optional error info.
182
+ Use this value as 3rd argument of onig_error_code_to_str().
183
+
184
+
185
+ Different character encoding combination is allowed for
186
+ the following cases only.
187
+
188
+ pattern_enc: ASCII, ISO_8859_1
189
+ target_enc: UTF16_BE, UTF16_LE, UTF32_BE, UTF32_LE
190
+
191
+ pattern_enc: UTF16_BE/LE
192
+ target_enc: UTF16_LE/BE
193
+
194
+ pattern_enc: UTF32_BE/LE
195
+ target_enc: UTF32_LE/BE
196
+
197
+
198
+ # void onig_free(regex_t* reg)
199
+
200
+ Free memory used by regex object.
201
+
202
+ arguments
203
+ 1 reg: regex object.
204
+
205
+
206
+ # void onig_free_body(regex_t* reg)
207
+
208
+ Free memory used by regex object. (Except reg oneself.)
209
+
210
+ arguments
211
+ 1 reg: regex object.
212
+
213
+
214
+ # int onig_search(regex_t* reg, const UChar* str, const UChar* end, const UChar* start,
215
+ const UChar* range, OnigRegion* region, OnigOptionType option)
216
+
217
+ Search string and return search result and matching region.
218
+
219
+ normal return: match position offset (i.e. p - str >= 0)
220
+ not found: ONIG_MISMATCH (< 0)
221
+
222
+ arguments
223
+ 1 reg: regex object
224
+ 2 str: target string
225
+ 3 end: terminate address of target string
226
+ 4 start: search start address of target string
227
+ 5 range: search terminate address of target string
228
+ in forward search (start <= searched string < range)
229
+ in backward search (range <= searched string <= start)
230
+ 6 region: address for return group match range info (NULL is allowed)
231
+ 7 option: search time option
232
+
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.
236
+
237
+
238
+ # int onig_match(regex_t* reg, const UChar* str, const UChar* end, const UChar* at,
239
+ OnigRegion* region, OnigOptionType option)
240
+
241
+ Match string and return result and matching region.
242
+
243
+ normal return: match length (>= 0)
244
+ not match: ONIG_MISMATCH ( < 0)
245
+
246
+ arguments
247
+ 1 reg: regex object
248
+ 2 str: target string
249
+ 3 end: terminate address of target string
250
+ 4 at: match address of target string
251
+ 5 region: address for return group match range info (NULL is allowed)
252
+ 6 option: search time option
253
+
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.
257
+
258
+
259
+ # int onig_scan(regex_t* reg, const UChar* str, const UChar* end,
260
+ OnigRegion* region, OnigOptionType option,
261
+ int (*scan_callback)(int, int, OnigRegion*, void*),
262
+ void* callback_arg)
263
+
264
+ Scan string and callback with matching region.
265
+
266
+ normal return: number of matching times
267
+ error: error code
268
+ interruption: return value of callback function (!= 0)
269
+
270
+ arguments
271
+ 1 reg: regex object
272
+ 2 str: target string
273
+ 3 end: terminate address of target string
274
+ 4 region: address for return group match range info (NULL is allowed)
275
+ 5 option: search time option
276
+ 6 scan_callback: callback function (defined by user)
277
+ 7 callback_arg: optional argument passed to callback
278
+
279
+
280
+ # OnigRegion* onig_region_new(void)
281
+
282
+ Create a region.
283
+
284
+
285
+ # void onig_region_free(OnigRegion* region, int free_self)
286
+
287
+ Free memory used by region.
288
+
289
+ arguments
290
+ 1 region: target region
291
+ 2 free_self: [1: free all, 0: free memory used in region but not self]
292
+
293
+
294
+ # void onig_region_copy(OnigRegion* to, OnigRegion* from)
295
+
296
+ Copy contents of region.
297
+
298
+ arguments
299
+ 1 to: target region
300
+ 2 from: source region
301
+
302
+
303
+ # void onig_region_clear(OnigRegion* region)
304
+
305
+ Clear contents of region.
306
+
307
+ arguments
308
+ 1 region: target region
309
+
310
+
311
+ # int onig_region_resize(OnigRegion* region, int n)
312
+
313
+ Resize group range area of region.
314
+
315
+ normal return: ONIG_NORMAL
316
+
317
+ arguments
318
+ 1 region: target region
319
+ 2 n: new size
320
+
321
+
322
+ # int onig_name_to_group_numbers(regex_t* reg, const UChar* name, const UChar* name_end,
323
+ int** num_list)
324
+
325
+ Return the group number list of the name.
326
+ Named subexp is defined by (?<name>....).
327
+
328
+ normal return: number of groups for the name.
329
+ (ex. /(?<x>..)(?<x>..)/ ==> 2)
330
+ name not found: -1
331
+
332
+ arguments
333
+ 1 reg: regex object.
334
+ 2 name: group name.
335
+ 3 name_end: terminate address of group name.
336
+ 4 num_list: return list of group number.
337
+
338
+
339
+ # int onig_name_to_backref_number(regex_t* reg, const UChar* name, const UChar* name_end,
340
+ OnigRegion *region)
341
+
342
+ Return the group number corresponding to the named backref (\k<name>).
343
+ If two or more regions for the groups of the name are effective,
344
+ the greatest number in it is obtained.
345
+
346
+ normal return: group number.
347
+
348
+ arguments
349
+ 1 reg: regex object.
350
+ 2 name: group name.
351
+ 3 name_end: terminate address of group name.
352
+ 4 region: search/match result region.
353
+
354
+
355
+ # int onig_foreach_name(regex_t* reg,
356
+ int (*func)(const UChar*, const UChar*, int,int*,regex_t*,void*),
357
+ void* arg)
358
+
359
+ Iterate function call for all names.
360
+
361
+ normal return: 0
362
+ error: func's return value.
363
+
364
+ arguments
365
+ 1 reg: regex object.
366
+ 2 func: callback function.
367
+ func(name, name_end, <number of groups>, <group number's list>,
368
+ reg, arg);
369
+ if func does not return 0, then iteration is stopped.
370
+ 3 arg: argument for func.
371
+
372
+
373
+ # int onig_number_of_names(regex_t* reg)
374
+
375
+ Return the number of names defined in the pattern.
376
+ Multiple definitions of one name is counted as one.
377
+
378
+ arguments
379
+ 1 reg: regex object.
380
+
381
+
382
+ # OnigEncoding onig_get_encoding(regex_t* reg)
383
+ # OnigOptionType onig_get_options(regex_t* reg)
384
+ # OnigCaseFoldType onig_get_case_fold_flag(regex_t* reg)
385
+ # OnigSyntaxType* onig_get_syntax(regex_t* reg)
386
+
387
+ Return a value of the regex object.
388
+
389
+ arguments
390
+ 1 reg: regex object.
391
+
392
+
393
+ # int onig_number_of_captures(regex_t* reg)
394
+
395
+ Return the number of capture group in the pattern.
396
+
397
+ arguments
398
+ 1 reg: regex object.
399
+
400
+
401
+ # int onig_number_of_capture_histories(regex_t* reg)
402
+
403
+ Return the number of capture history defined in the pattern.
404
+
405
+ You can't use capture history if ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY
406
+ is disabled in the pattern syntax.(disabled in the default syntax)
407
+
408
+ arguments
409
+ 1 reg: regex object.
410
+
411
+
412
+
413
+ # OnigCaptureTreeNode* onig_get_capture_tree(OnigRegion* region)
414
+
415
+ Return the root node of capture history data tree.
416
+
417
+ This value is undefined if matching has faild.
418
+
419
+ arguments
420
+ 1 region: matching result.
421
+
422
+
423
+ # int onig_capture_tree_traverse(OnigRegion* region, int at,
424
+ int(*func)(int,int,int,int,int,void*), void* arg)
425
+
426
+ Traverse and callback in capture history data tree.
427
+
428
+ normal return: 0
429
+ error: callback func's return value.
430
+
431
+ arguments
432
+ 1 region: match region data.
433
+ 2 at: callback position.
434
+
435
+ ONIG_TRAVERSE_CALLBACK_AT_FIRST: callback first, then traverse children.
436
+ ONIG_TRAVERSE_CALLBACK_AT_LAST: traverse children first, then callback.
437
+ ONIG_TRAVERSE_CALLBACK_AT_BOTH: callback first, then traverse children,
438
+ and at last callback again.
439
+
440
+ 3 func: callback function.
441
+ if func does not return 0, then traverse is stopped.
442
+
443
+ int func(int group, int beg, int end, int level, int at,
444
+ void* arg)
445
+
446
+ group: group number
447
+ beg: capture start position
448
+ end: capture end position
449
+ level: nest level (from 0)
450
+ at: callback position
451
+ ONIG_TRAVERSE_CALLBACK_AT_FIRST
452
+ ONIG_TRAVERSE_CALLBACK_AT_LAST
453
+ arg: optional callback argument
454
+
455
+ 4 arg; optional callback argument.
456
+
457
+
458
+ # int onig_noname_group_capture_is_active(regex_t* reg)
459
+
460
+ Return noname group capture activity.
461
+
462
+ active: 1
463
+ inactive: 0
464
+
465
+ arguments
466
+ 1 reg: regex object.
467
+
468
+ if option ONIG_OPTION_DONT_CAPTURE_GROUP == ON
469
+ --> inactive
470
+
471
+ if the regex pattern have named group
472
+ and syntax ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP == ON
473
+ and option ONIG_OPTION_CAPTURE_GROUP == OFF
474
+ --> inactive
475
+
476
+ else --> active
477
+
478
+
479
+ # UChar* onigenc_get_prev_char_head(OnigEncoding enc, const UChar* start, const UChar* s)
480
+
481
+ Return previous character head address.
482
+
483
+ arguments
484
+ 1 enc: character encoding
485
+ 2 start: string address
486
+ 3 s: target address of string
487
+
488
+
489
+ # UChar* onigenc_get_left_adjust_char_head(OnigEncoding enc,
490
+ const UChar* start, const UChar* s)
491
+
492
+ Return left-adjusted head address of a character.
493
+
494
+ arguments
495
+ 1 enc: character encoding
496
+ 2 start: string address
497
+ 3 s: target address of string
498
+
499
+
500
+ # UChar* onigenc_get_right_adjust_char_head(OnigEncoding enc,
501
+ const UChar* start, const UChar* s)
502
+
503
+ Return right-adjusted head address of a character.
504
+
505
+ arguments
506
+ 1 enc: character encoding
507
+ 2 start: string address
508
+ 3 s: target address of string
509
+
510
+
511
+ # int onigenc_strlen(OnigEncoding enc, const UChar* s, const UChar* end)
512
+ # int onigenc_strlen_null(OnigEncoding enc, const UChar* s)
513
+
514
+ Return number of characters in the string.
515
+
516
+
517
+ # int onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s)
518
+
519
+ Return number of bytes in the string.
520
+
521
+
522
+ # int onig_set_default_syntax(OnigSyntaxType* syntax)
523
+
524
+ Set default syntax.
525
+
526
+ arguments
527
+ 1 syntax: address of pattern syntax definition.
528
+
529
+
530
+ # void onig_copy_syntax(OnigSyntaxType* to, OnigSyntaxType* from)
531
+
532
+ Copy syntax.
533
+
534
+ arguments
535
+ 1 to: destination address.
536
+ 2 from: source address.
537
+
538
+
539
+ # unsigned int onig_get_syntax_op(OnigSyntaxType* syntax)
540
+ # unsigned int onig_get_syntax_op2(OnigSyntaxType* syntax)
541
+ # unsigned int onig_get_syntax_behavior(OnigSyntaxType* syntax)
542
+ # OnigOptionType onig_get_syntax_options(OnigSyntaxType* syntax)
543
+
544
+ # void onig_set_syntax_op(OnigSyntaxType* syntax, unsigned int op)
545
+ # void onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2)
546
+ # void onig_set_syntax_behavior(OnigSyntaxType* syntax, unsigned int behavior)
547
+ # void onig_set_syntax_options(OnigSyntaxType* syntax, OnigOptionType options)
548
+
549
+ Get/Set elements of the syntax.
550
+
551
+ arguments
552
+ 1 syntax: syntax
553
+ 2 op, op2, behavior, options: value of element.
554
+
555
+
556
+ # void onig_copy_encoding(OnigEncoding to, OnigEncoding from)
557
+
558
+ Copy encoding.
559
+
560
+ arguments
561
+ 1 to: destination address.
562
+ 2 from: source address.
563
+
564
+
565
+ # int onig_set_meta_char(OnigSyntaxType* syntax, unsigned int what,
566
+ OnigCodePoint code)
567
+
568
+ Set a variable meta character to the code point value.
569
+ Except for an escape character, this meta characters specification
570
+ is not work, if ONIG_SYN_OP_VARIABLE_META_CHARACTERS is not effective
571
+ by the syntax. (Build-in syntaxes are not effective.)
572
+
573
+ normal return: ONIG_NORMAL
574
+
575
+ arguments
576
+ 1 syntax: target syntax
577
+ 2 what: specifies which meta character it is.
578
+
579
+ ONIG_META_CHAR_ESCAPE
580
+ ONIG_META_CHAR_ANYCHAR
581
+ ONIG_META_CHAR_ANYTIME
582
+ ONIG_META_CHAR_ZERO_OR_ONE_TIME
583
+ ONIG_META_CHAR_ONE_OR_MORE_TIME
584
+ ONIG_META_CHAR_ANYCHAR_ANYTIME
585
+
586
+ 3 code: meta character or ONIG_INEFFECTIVE_META_CHAR.
587
+
588
+
589
+ # OnigCaseFoldType onig_get_default_case_fold_flag()
590
+
591
+ Get default case fold flag.
592
+
593
+
594
+ # int onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag)
595
+
596
+ Set default case fold flag.
597
+
598
+ 1 case_fold_flag: case fold flag
599
+
600
+
601
+ # unsigned int onig_get_match_stack_limit_size(void)
602
+
603
+ Return the maximum number of stack size.
604
+ (default: 0 == unlimited)
605
+
606
+
607
+ # int onig_set_match_stack_limit_size(unsigned int size)
608
+
609
+ Set the maximum number of stack size.
610
+ (size = 0: unlimited)
611
+
612
+ normal return: ONIG_NORMAL
613
+
614
+
615
+ # int onig_unicode_define_user_property(const char* name, OnigCodePoint* ranges))
616
+
617
+ Define new Unicode property.
618
+ (This function is not thread safe.)
619
+
620
+ arguments
621
+ 1 name: property name (ASCII only. character ' ', '-', '_' are ignored.)
622
+ 2 ranges: property code point ranges
623
+ (first element is number of ranges.)
624
+
625
+ [num-of-ranges, 1st-range-start, 1st-range-end, 2nd-range-start... ]
626
+
627
+ * Don't destroy the ranges after having called this function.
628
+
629
+ normal return: ONIG_NORMAL
630
+
631
+
632
+ # unsigned int onig_get_parse_depth_limit(void)
633
+
634
+ Return the maximum depth of parser recursion.
635
+ (default: DEFAULT_PARSE_DEPTH_LIMIT defined in regint.h. Currently 4096.)
636
+
637
+
638
+ # int onig_set_parse_depth_limit(unsigned int depth)
639
+
640
+ Set the maximum depth of parser recursion.
641
+ (depth = 0: Set to the default value defined in regint.h.)
642
+
643
+ normal return: ONIG_NORMAL
644
+
645
+
646
+ # int onig_end(void)
647
+
648
+ The use of this library is finished.
649
+
650
+ normal return: ONIG_NORMAL
651
+
652
+ It is not allowed to use regex objects which created
653
+ before onig_end() call.
654
+
655
+
656
+ # const char* onig_version(void)
657
+
658
+ Return version string. (ex. "5.0.3")
659
+
660
+ // END