@port-labs/jq-node-bindings 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +3 -3
- package/configure +8 -6
- package/deps/jq/.travis.yml +184 -35
- package/deps/jq/AUTHORS +31 -30
- package/deps/jq/COPYING +2 -2
- package/deps/jq/KEYS +8 -0
- package/deps/jq/Makefile.am +85 -70
- package/deps/jq/NEWS +5 -4
- package/deps/jq/README.md +18 -9
- package/deps/jq/appveyor.yml +53 -0
- package/deps/jq/compile-ios.sh +5 -5
- package/deps/jq/config/m4/check-math-func.m4 +7 -2
- package/deps/jq/configure.ac +130 -68
- package/deps/jq/docs/Rakefile +14 -135
- package/deps/jq/docs/Rakefile.manual +49 -0
- package/deps/jq/docs/Rakefile.website +76 -0
- package/deps/jq/docs/content/2.download/default.yml +115 -39
- package/deps/jq/docs/content/3.manual/manual.yml +641 -231
- package/deps/jq/docs/content/3.manual/v1.3/manual.yml +130 -130
- package/deps/jq/docs/content/3.manual/v1.4/manual.yml +160 -160
- package/deps/jq/docs/content/3.manual/v1.5/manual.yml +2878 -0
- package/deps/jq/docs/content/3.manual/v1.6/manual.yml +3287 -0
- package/deps/jq/docs/content/index/index.yml +28 -6
- package/deps/jq/docs/public/.htaccess +2 -2
- package/deps/jq/docs/public/css/base.scss +141 -59
- package/deps/jq/docs/public/js/manual-search.js +52 -0
- package/deps/jq/docs/site.yml +1 -10
- package/deps/jq/docs/templates/default.liquid +10 -10
- package/deps/jq/docs/templates/index.liquid +45 -32
- package/deps/jq/docs/templates/manual.liquid +67 -90
- package/deps/jq/docs/templates/shared/_footer.liquid +10 -5
- package/deps/jq/docs/templates/shared/_head.liquid +17 -12
- package/deps/jq/docs/templates/shared/_navbar.liquid +27 -0
- package/deps/jq/jq.1.prebuilt +523 -139
- package/deps/jq/modules/oniguruma/AUTHORS +1 -0
- package/deps/jq/modules/oniguruma/CMakeLists.txt +86 -0
- package/deps/jq/modules/oniguruma/COPYING +28 -0
- package/deps/jq/modules/oniguruma/ChangeLog +0 -0
- package/deps/jq/modules/oniguruma/HISTORY +2138 -0
- package/deps/jq/modules/oniguruma/Makefile.am +33 -0
- package/deps/jq/modules/oniguruma/NEWS +0 -0
- package/deps/jq/modules/oniguruma/README +189 -0
- package/deps/jq/modules/oniguruma/README.ja +195 -0
- package/deps/jq/modules/oniguruma/README.md +203 -0
- package/deps/jq/modules/oniguruma/cmake/dist.cmake +321 -0
- package/deps/jq/modules/oniguruma/compile +348 -0
- package/deps/jq/modules/oniguruma/config.guess +1754 -0
- package/deps/jq/modules/oniguruma/config.sub +1890 -0
- package/deps/jq/modules/oniguruma/configure.ac +87 -0
- package/deps/jq/modules/oniguruma/contributed/libfuzzer-onig.cpp +31 -0
- package/deps/jq/modules/oniguruma/depcomp +791 -0
- package/deps/jq/modules/oniguruma/dist.info +10 -0
- package/deps/jq/modules/oniguruma/doc/API +660 -0
- package/deps/jq/modules/oniguruma/doc/API.ja +667 -0
- package/deps/jq/modules/oniguruma/doc/FAQ +12 -0
- package/deps/jq/modules/oniguruma/doc/FAQ.ja +22 -0
- package/deps/jq/modules/oniguruma/doc/RE +436 -0
- package/deps/jq/modules/oniguruma/doc/RE.ja +448 -0
- package/deps/jq/modules/oniguruma/doc/UNICODE_PROPERTIES +698 -0
- package/deps/jq/modules/oniguruma/index.html +181 -0
- package/deps/jq/modules/oniguruma/index_ja.html +184 -0
- package/deps/jq/modules/oniguruma/install-sh +541 -0
- package/deps/jq/modules/oniguruma/m4/.whatever +0 -0
- package/deps/jq/modules/oniguruma/make_win32.bat +3 -0
- package/deps/jq/modules/oniguruma/make_win64.bat +3 -0
- package/deps/jq/modules/oniguruma/missing +215 -0
- package/deps/jq/modules/oniguruma/onig-config.in +78 -0
- package/deps/jq/modules/oniguruma/oniguruma.pc.cmake.in +13 -0
- package/deps/jq/modules/oniguruma/oniguruma.pc.in +14 -0
- package/deps/jq/modules/oniguruma/sample/CMakeLists.txt +28 -0
- package/deps/jq/modules/oniguruma/sample/Makefile.am +34 -0
- package/deps/jq/modules/oniguruma/sample/bug_fix.c +131 -0
- package/deps/jq/modules/oniguruma/sample/crnl.c +127 -0
- package/deps/jq/modules/oniguruma/sample/encode.c +308 -0
- package/deps/jq/modules/oniguruma/sample/listcap.c +110 -0
- package/deps/jq/modules/oniguruma/sample/names.c +75 -0
- package/deps/jq/modules/oniguruma/sample/posix.c +96 -0
- package/deps/jq/modules/oniguruma/sample/scan.c +88 -0
- package/deps/jq/modules/oniguruma/sample/simple.c +59 -0
- package/deps/jq/modules/oniguruma/sample/sql.c +76 -0
- package/deps/jq/modules/oniguruma/sample/syntax.c +76 -0
- package/deps/jq/modules/oniguruma/sample/user_property.c +87 -0
- package/deps/jq/modules/oniguruma/src/Makefile.am +58 -0
- package/deps/jq/modules/oniguruma/src/Makefile.windows +183 -0
- package/deps/jq/modules/oniguruma/src/ascii.c +61 -0
- package/deps/jq/modules/oniguruma/src/big5.c +190 -0
- package/deps/jq/modules/oniguruma/src/config.h.cmake.in +71 -0
- package/deps/jq/modules/oniguruma/src/config.h.win32 +84 -0
- package/deps/jq/modules/oniguruma/src/config.h.win64 +84 -0
- package/deps/jq/modules/oniguruma/src/cp1251.c +203 -0
- package/deps/jq/modules/oniguruma/src/euc_jp.c +310 -0
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.c +158 -0
- package/deps/jq/modules/oniguruma/src/euc_jp_prop.gperf +27 -0
- package/deps/jq/modules/oniguruma/src/euc_kr.c +188 -0
- package/deps/jq/modules/oniguruma/src/euc_tw.c +171 -0
- package/deps/jq/modules/oniguruma/src/gb18030.c +538 -0
- package/deps/jq/modules/oniguruma/src/gperf_fold_key_conv.py +67 -0
- package/deps/jq/modules/oniguruma/src/gperf_unfold_key_conv.py +55 -0
- package/deps/jq/modules/oniguruma/src/iso8859_1.c +275 -0
- package/deps/jq/modules/oniguruma/src/iso8859_10.c +242 -0
- package/deps/jq/modules/oniguruma/src/iso8859_11.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_13.c +231 -0
- package/deps/jq/modules/oniguruma/src/iso8859_14.c +244 -0
- package/deps/jq/modules/oniguruma/src/iso8859_15.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_16.c +240 -0
- package/deps/jq/modules/oniguruma/src/iso8859_2.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_3.c +238 -0
- package/deps/jq/modules/oniguruma/src/iso8859_4.c +240 -0
- package/deps/jq/modules/oniguruma/src/iso8859_5.c +229 -0
- package/deps/jq/modules/oniguruma/src/iso8859_6.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_7.c +225 -0
- package/deps/jq/modules/oniguruma/src/iso8859_8.c +99 -0
- package/deps/jq/modules/oniguruma/src/iso8859_9.c +231 -0
- package/deps/jq/modules/oniguruma/src/koi8.c +253 -0
- package/deps/jq/modules/oniguruma/src/koi8_r.c +215 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold.sh +22 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_fold_data.py +306 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_property.sh +18 -0
- package/deps/jq/modules/oniguruma/src/make_unicode_property_data.py +545 -0
- package/deps/jq/modules/oniguruma/src/mktable.c +1184 -0
- package/deps/jq/modules/oniguruma/src/onig_init.c +45 -0
- package/deps/jq/modules/oniguruma/src/oniggnu.h +85 -0
- package/deps/jq/modules/oniguruma/src/onigposix.h +169 -0
- package/deps/jq/modules/oniguruma/src/oniguruma.h +841 -0
- package/deps/jq/modules/oniguruma/src/regcomp.c +6300 -0
- package/deps/jq/modules/oniguruma/src/regenc.c +917 -0
- package/deps/jq/modules/oniguruma/src/regenc.h +243 -0
- package/deps/jq/modules/oniguruma/src/regerror.c +393 -0
- package/deps/jq/modules/oniguruma/src/regexec.c +3856 -0
- package/deps/jq/modules/oniguruma/src/regext.c +202 -0
- package/deps/jq/modules/oniguruma/src/reggnu.c +147 -0
- package/deps/jq/modules/oniguruma/src/regint.h +779 -0
- package/deps/jq/modules/oniguruma/src/regparse.c +5403 -0
- package/deps/jq/modules/oniguruma/src/regparse.h +351 -0
- package/deps/jq/modules/oniguruma/src/regposerr.c +105 -0
- package/deps/jq/modules/oniguruma/src/regposix.c +306 -0
- package/deps/jq/modules/oniguruma/src/regsyntax.c +315 -0
- package/deps/jq/modules/oniguruma/src/regtrav.c +76 -0
- package/deps/jq/modules/oniguruma/src/regversion.c +57 -0
- package/deps/jq/modules/oniguruma/src/sjis.c +341 -0
- package/deps/jq/modules/oniguruma/src/sjis_prop.c +158 -0
- package/deps/jq/modules/oniguruma/src/sjis_prop.gperf +27 -0
- package/deps/jq/modules/oniguruma/src/st.c +589 -0
- package/deps/jq/modules/oniguruma/src/st.h +68 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold1_key.c +2250 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold2_key.c +203 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold3_key.c +113 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_fold_data.c +1225 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data.c +24742 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_property_data_posix.c +4846 -0
- package/deps/jq/modules/oniguruma/src/unicode-7.0/unicode_unfold_key.c +2571 -0
- package/deps/jq/modules/oniguruma/src/unicode.c +664 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold1_key.c +2548 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold2_key.c +203 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold3_key.c +113 -0
- package/deps/jq/modules/oniguruma/src/unicode_fold_data.c +1366 -0
- package/deps/jq/modules/oniguruma/src/unicode_property_data.c +25306 -0
- package/deps/jq/modules/oniguruma/src/unicode_property_data_posix.c +4940 -0
- package/deps/jq/modules/oniguruma/src/unicode_unfold_key.c +2854 -0
- package/deps/jq/modules/oniguruma/src/utf16_be.c +235 -0
- package/deps/jq/modules/oniguruma/src/utf16_le.c +245 -0
- package/deps/jq/modules/oniguruma/src/utf32_be.c +194 -0
- package/deps/jq/modules/oniguruma/src/utf32_le.c +194 -0
- package/deps/jq/modules/oniguruma/src/utf8.c +335 -0
- package/deps/jq/modules/oniguruma/test/Makefile.am +28 -0
- package/deps/jq/modules/oniguruma/test/testc.c +874 -0
- package/deps/jq/modules/oniguruma/test/testu.c +916 -0
- package/deps/jq/modules/oniguruma/test-driver +153 -0
- package/deps/jq/modules/oniguruma/windows/testc.c +869 -0
- package/deps/jq/scripts/crosscompile +2 -1
- package/deps/jq/scripts/gen_utf8_tables.py +2 -3
- package/deps/jq/scripts/update-website +29 -0
- package/deps/jq/scripts/version +7 -2
- package/deps/jq/sig/jq-release.key +41 -0
- package/deps/jq/sig/v1.3/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.3/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.3/jq-osx-x86.asc +17 -0
- package/deps/jq/sig/v1.3/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.3/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.3/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.3/sha256sum.txt +6 -0
- package/deps/jq/sig/v1.4/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.4/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-osx-x86.asc +17 -0
- package/deps/jq/sig/v1.4/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-solaris11-32.asc +17 -0
- package/deps/jq/sig/v1.4/jq-solaris11-64.asc +17 -0
- package/deps/jq/sig/v1.4/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.4/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.4/sha256sum.txt +8 -0
- package/deps/jq/sig/v1.5/jq-linux32-no-oniguruma.asc +17 -0
- package/deps/jq/sig/v1.5/jq-linux32.asc +17 -0
- package/deps/jq/sig/v1.5/jq-linux64.asc +17 -0
- package/deps/jq/sig/v1.5/jq-osx-amd64.asc +17 -0
- package/deps/jq/sig/v1.5/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5/sha256sum.txt +5 -0
- package/deps/jq/sig/v1.5rc1/jq-linux-x86_64-static.asc +17 -0
- package/deps/jq/sig/v1.5rc1/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc1/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc1/sha256sum.txt +3 -0
- package/deps/jq/sig/v1.5rc2/jq-linux-x86.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-linux-x86_64.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-osx-x86_64.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-win32.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc2/jq-win64.exe.asc +17 -0
- package/deps/jq/sig/v1.5rc2/sha256sum.txt +5 -0
- package/deps/jq/sig/v1.6/jq-linux32.asc +16 -0
- package/deps/jq/sig/v1.6/jq-linux64.asc +16 -0
- package/deps/jq/sig/v1.6/jq-osx-amd64.asc +16 -0
- package/deps/jq/sig/v1.6/jq-win32.exe.asc +16 -0
- package/deps/jq/sig/v1.6/jq-win64.exe.asc +16 -0
- package/deps/jq/sig/v1.6/sha256sum.txt +5 -0
- package/deps/jq/{builtin.c → src/builtin.c} +449 -344
- package/deps/jq/{builtin.h → src/builtin.h} +0 -0
- package/deps/jq/src/builtin.jq +311 -0
- package/deps/jq/{bytecode.c → src/bytecode.c} +0 -0
- package/deps/jq/{bytecode.h → src/bytecode.h} +0 -0
- package/deps/jq/{compile.c → src/compile.c} +213 -37
- package/deps/jq/{compile.h → src/compile.h} +7 -2
- package/deps/jq/{exec_stack.h → src/exec_stack.h} +0 -0
- package/deps/jq/{execute.c → src/execute.c} +127 -24
- package/deps/jq/{inject_errors.c → src/inject_errors.c} +0 -0
- package/deps/jq/{jq.h → src/jq.h} +13 -2
- package/deps/jq/{jq_parser.h → src/jq_parser.h} +0 -0
- package/deps/jq/{jq_test.c → src/jq_test.c} +1 -1
- package/deps/jq/{jv.c → src/jv.c} +24 -5
- package/deps/jq/{jv.h → src/jv.h} +46 -11
- package/deps/jq/{jv_alloc.c → src/jv_alloc.c} +0 -0
- package/deps/jq/{jv_alloc.h → src/jv_alloc.h} +0 -0
- package/deps/jq/{jv_aux.c → src/jv_aux.c} +38 -14
- package/deps/jq/{jv_dtoa.c → src/jv_dtoa.c} +4 -5
- package/deps/jq/{jv_dtoa.h → src/jv_dtoa.h} +0 -0
- package/deps/jq/src/jv_file.c +81 -0
- package/deps/jq/{jv_parse.c → src/jv_parse.c} +8 -2
- package/deps/jq/{jv_print.c → src/jv_print.c} +80 -27
- package/deps/jq/{jv_unicode.c → src/jv_unicode.c} +28 -4
- package/deps/jq/{jv_unicode.h → src/jv_unicode.h} +1 -0
- package/deps/jq/{jv_utf8_tables.h → src/jv_utf8_tables.h} +0 -0
- package/deps/jq/{lexer.c → src/lexer.c} +317 -292
- package/deps/jq/{lexer.h → src/lexer.h} +16 -12
- package/deps/jq/{lexer.l → src/lexer.l} +5 -4
- package/deps/jq/src/libm.h +291 -0
- package/deps/jq/{linker.c → src/linker.c} +5 -3
- package/deps/jq/{linker.h → src/linker.h} +0 -0
- package/deps/jq/{locfile.c → src/locfile.c} +1 -1
- package/deps/jq/{locfile.h → src/locfile.h} +0 -0
- package/deps/jq/{main.c → src/main.c} +202 -100
- package/deps/jq/{opcode_list.h → src/opcode_list.h} +4 -0
- package/deps/jq/{parser.c → src/parser.c} +1149 -1069
- package/deps/jq/{parser.h → src/parser.h} +28 -24
- package/deps/jq/{parser.y → src/parser.y} +108 -52
- package/deps/jq/{util.c → src/util.c} +12 -9
- package/deps/jq/{util.h → src/util.h} +0 -0
- package/deps/jq/tests/base64.test +35 -0
- package/deps/jq/tests/base64test +5 -0
- package/deps/jq/tests/jq-f-test.sh +4 -0
- package/deps/jq/tests/jq.test +305 -21
- package/deps/jq/tests/jqtest +1 -1
- package/deps/jq/tests/mantest +1 -1
- package/deps/jq/tests/onig.test +13 -0
- package/deps/jq/tests/onigtest +1 -1
- package/deps/jq/tests/optional.test +20 -0
- package/deps/jq/tests/optionaltest +5 -0
- package/deps/jq/tests/setup +7 -1
- package/deps/jq/tests/shtest +133 -29
- package/deps/jq/tests/utf8-truncate.jq +3 -0
- package/deps/jq/tests/utf8test +10 -0
- package/lib/index.js +7 -1
- package/package.json +3 -3
- package/test/santiy.test.js +24 -0
- package/deps/jq/docs/default_manpage.md +0 -22
- package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.css +0 -1058
- package/deps/jq/docs/public/bootstrap/css/bootstrap-responsive.min.css +0 -9
- package/deps/jq/docs/public/bootstrap/css/bootstrap.css +0 -5224
- package/deps/jq/docs/public/bootstrap/css/bootstrap.min.css +0 -9
- package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
- package/deps/jq/docs/public/bootstrap/img/glyphicons-halflings.png +0 -0
- package/deps/jq/docs/public/bootstrap/js/bootstrap.js +0 -2027
- package/deps/jq/docs/public/bootstrap/js/bootstrap.min.js +0 -6
- package/deps/jq/docs/templates/shared/_header.liquid +0 -26
- package/deps/jq/jq.1.default +0 -39
- package/deps/jq/jv_file.c +0 -49
- package/deps/jq/libm.h +0 -160
- package/deps/jq/setup.sh +0 -33
- package/reports/jest-port-api.xml +0 -35
|
@@ -0,0 +1,667 @@
|
|
|
1
|
+
���֥����ե����� 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
|
+
�饤�֥��ν����
|
|
9
|
+
�ǽ�˸ƤӽФ�ɬ�פ����롣
|
|
10
|
+
|
|
11
|
+
* onig_init() ���ѻ�
|
|
12
|
+
|
|
13
|
+
����
|
|
14
|
+
1 use_encodings: ���Ѥ���ʸ�������ǥ�������
|
|
15
|
+
2 num_encodings: ʸ�������ǥ��ο�
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# int onig_error_code_to_str(UChar* err_buf, int err_code, ...)
|
|
19
|
+
|
|
20
|
+
���顼��å�������������롣
|
|
21
|
+
|
|
22
|
+
���δؿ���onig_new()�η�̤��Ф��ƸƤӽФ����ˤϡ�onig_new()��pattern������
|
|
23
|
+
�����������������˸ƤӽФ��ʤ���Фʤ�ʤ���
|
|
24
|
+
|
|
25
|
+
���ェλ�����: ���顼��å�����ʸ����ΥХ���Ĺ
|
|
26
|
+
|
|
27
|
+
����
|
|
28
|
+
1 err_buf: ���顼��å��������Ǽ�����ΰ�
|
|
29
|
+
(ɬ�פʥ�����: ONIG_MAX_ERROR_MESSAGE_LEN)
|
|
30
|
+
2 err_code: ���顼������
|
|
31
|
+
3 err_info (optional): onig_new()��err_info
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# void onig_set_warn_func(OnigWarnFunc func)
|
|
35
|
+
|
|
36
|
+
�ٹ����δؿ��åȤ��롣
|
|
37
|
+
|
|
38
|
+
�ٹ�:
|
|
39
|
+
'[', '-', ']' in character class without escape.
|
|
40
|
+
']' in pattern without escape.
|
|
41
|
+
|
|
42
|
+
����
|
|
43
|
+
1 func: �ٹ�ؿ� void (*func)(char* warning_message)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# void onig_set_verb_warn_func(OnigWarnFunc func)
|
|
47
|
+
|
|
48
|
+
�ܺٷٹ����δؿ��åȤ��롣
|
|
49
|
+
|
|
50
|
+
�ܺٷٹ�:
|
|
51
|
+
redundant nested repeat operator.
|
|
52
|
+
|
|
53
|
+
����
|
|
54
|
+
1 func: �ܺٷٹ�ؿ� 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
|
+
����ɽ�����֥�������(regex)��������롣
|
|
62
|
+
|
|
63
|
+
���ェλ�����: ONIG_NORMAL
|
|
64
|
+
|
|
65
|
+
����
|
|
66
|
+
1 reg: �������줿����ɽ�����֥������Ȥ��֤����ɥ쥹
|
|
67
|
+
2 pattern: ����ɽ���ѥ�����ʸ����
|
|
68
|
+
3 pattern_end: ����ɽ���ѥ�����ʸ����ν�ü���ɥ쥹(pattern + pattern length)
|
|
69
|
+
4 option: ����ɽ������ѥ�������ץ����
|
|
70
|
+
|
|
71
|
+
ONIG_OPTION_NONE ���ץ����ʤ�
|
|
72
|
+
ONIG_OPTION_SINGLELINE '^' -> '\A', '$' -> '\Z'
|
|
73
|
+
ONIG_OPTION_MULTILINE '.'�����Ԥ˥ޥå�����
|
|
74
|
+
ONIG_OPTION_IGNORECASE ۣ��ޥå� ����
|
|
75
|
+
ONIG_OPTION_EXTEND �ѥ������ĥ����
|
|
76
|
+
ONIG_OPTION_FIND_LONGEST ��Ĺ�ޥå�
|
|
77
|
+
ONIG_OPTION_FIND_NOT_EMPTY ���ޥå���̵��
|
|
78
|
+
ONIG_OPTION_NEGATE_SINGLELINE
|
|
79
|
+
ONIG_SYNTAX_POSIX_BASIC, ONIG_SYNTAX_POSIX_EXTENDED,
|
|
80
|
+
ONIG_SYNTAX_PERL, ONIG_SYNTAX_PERL_NG, ONIG_SYNTAX_JAVA��
|
|
81
|
+
�ǥե���Ȥ�ͭ����ONIG_OPTION_SINGLELINE�ꥢ���롣
|
|
82
|
+
|
|
83
|
+
ONIG_OPTION_DONT_CAPTURE_GROUP ̾���դ���ͼ�����Τ����
|
|
84
|
+
ONIG_OPTION_CAPTURE_GROUP ̾��̵����ͼ���������
|
|
85
|
+
|
|
86
|
+
5 enc: ʸ�������ǥ���
|
|
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
|
+
�ޤ��ϡ��桼�����������OnigEncodingType�ǡ����Υ��ɥ쥹
|
|
120
|
+
|
|
121
|
+
6 syntax: ����ɽ���ѥ�����ʸˡ���
|
|
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 + ̾���դ���ͼ�����
|
|
132
|
+
ONIG_SYNTAX_RUBY Ruby
|
|
133
|
+
ONIG_SYNTAX_DEFAULT default (== Ruby)
|
|
134
|
+
onig_set_default_syntax()
|
|
135
|
+
|
|
136
|
+
�ޤ��ϡ��桼�����������OnigSyntaxType�ǡ����Υ��ɥ쥹
|
|
137
|
+
|
|
138
|
+
7 err_info: ���顼������֤�����Υ��ɥ쥹
|
|
139
|
+
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
|
+
����ɽ�����֥�������(regex)��������롣
|
|
149
|
+
reg���ΰ�������dz�����Ƥʤ���
|
|
150
|
+
|
|
151
|
+
���ェλ�����: 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
|
+
����ɽ�����֥�������(regex)��������롣
|
|
159
|
+
���δؿ��ϡ�onig_new()�Υǥ�å����ǡ�
|
|
160
|
+
|
|
161
|
+
���ェλ�����: ONIG_NORMAL
|
|
162
|
+
|
|
163
|
+
����
|
|
164
|
+
1 reg: �������줿����ɽ�����֥������Ȥ��֤����ɥ쥹
|
|
165
|
+
2 pattern: ����ɽ���ѥ�����ʸ����
|
|
166
|
+
3 pattern_end: ����ɽ���ѥ�����ʸ����ν�ü���ɥ쥹(pattern + pattern length)
|
|
167
|
+
4 ci: ����ѥ������
|
|
168
|
+
|
|
169
|
+
ci->num_of_elements: ci�����ǿ� (���ߤ��ǤǤ�: 5)
|
|
170
|
+
ci->pattern_enc: �ѥ�����ʸ�����ʸ�������ǥ���
|
|
171
|
+
ci->target_enc: �о�ʸ�����ʸ�������ǥ���
|
|
172
|
+
ci->syntax: ����ɽ���ѥ�����ʸˡ���
|
|
173
|
+
ci->option: ����ɽ������ѥ�������ץ����
|
|
174
|
+
ci->case_fold_flag: ONIG_OPTION_IGNORECASE�⡼�ɤǤ�
|
|
175
|
+
ʸ��ۣ��ޥå�����ӥåȥե饰
|
|
176
|
+
|
|
177
|
+
ONIGENC_CASE_FOLD_MIN: �Ǿ�
|
|
178
|
+
ONIGENC_CASE_FOLD_DEFAULT: �Ǿ�
|
|
179
|
+
onig_set_default_case_fold_flag()
|
|
180
|
+
|
|
181
|
+
5 err_info: ���顼������֤�����Υ��ɥ쥹
|
|
182
|
+
onig_error_code_to_str()�λ����ܤΰ����Ȥ��ƻ��Ѥ���
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
�ۤʤ�ʸ�������ǥ����Ȥ߹�碌�ϡ��ʲ��ξ��ˤΤߵ�����롣
|
|
186
|
+
|
|
187
|
+
pattern_enc: ASCII, ISO_8859_1
|
|
188
|
+
target_enc: UTF16_BE, UTF16_LE, UTF32_BE, UTF32_LE
|
|
189
|
+
|
|
190
|
+
pattern_enc: UTF16_BE/LE
|
|
191
|
+
target_enc: UTF16_LE/BE
|
|
192
|
+
|
|
193
|
+
pattern_enc: UTF32_BE/LE
|
|
194
|
+
target_enc: UTF32_LE/BE
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
# void onig_free(regex_t* reg)
|
|
198
|
+
|
|
199
|
+
����ɽ�����֥������ȤΥ����������롣
|
|
200
|
+
|
|
201
|
+
����
|
|
202
|
+
1 reg: ����ɽ�����֥�������
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
# void onig_free_body(regex_t* reg)
|
|
206
|
+
|
|
207
|
+
����ɽ�����֥������ȤΥ����������롣(reg���Ȥ��ΰ�������)
|
|
208
|
+
|
|
209
|
+
����
|
|
210
|
+
1 reg: ����ɽ�����֥�������
|
|
211
|
+
|
|
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
|
+
����ɽ����ʸ���������������̤ȥޥå��ΰ���֤���
|
|
218
|
+
|
|
219
|
+
���ェλ�����: �ޥå����� (p - str >= 0)
|
|
220
|
+
��������: ONIG_MISMATCH (< 0)
|
|
221
|
+
|
|
222
|
+
����
|
|
223
|
+
1 reg: ����ɽ�����֥�������
|
|
224
|
+
2 str: �����о�ʸ����
|
|
225
|
+
3 end: �����о�ʸ����ν�ü���ɥ쥹
|
|
226
|
+
4 start: �����о�ʸ����θ�����Ƭ���֥��ɥ쥹
|
|
227
|
+
5 range: �����о�ʸ����θ�����λ���֥��ɥ쥹
|
|
228
|
+
����õ�� (start <= õ�������ʸ���� < range)
|
|
229
|
+
����õ�� (range <= õ�������ʸ���� <= start)
|
|
230
|
+
6 region: �ޥå��ΰ����(region) (NULL��������)
|
|
231
|
+
7 option: ���������ץ����
|
|
232
|
+
|
|
233
|
+
ONIG_OPTION_NOTBOL ʸ�������Ƭ(str)���Ƭ�ȴ������ʤ�
|
|
234
|
+
ONIG_OPTION_NOTEOL ʸ����ν�ü(end)������ȴ������ʤ�
|
|
235
|
+
ONIG_OPTION_POSIX_REGION region������POSIX API��regmatch_t[]�ˤ���
|
|
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
|
+
ʸ����λ�����֤ǥޥå���Ԥ�����̤ȥޥå��ΰ���֤���
|
|
242
|
+
|
|
243
|
+
���ェλ�����: �ޥå������Х���Ĺ (>= 0)
|
|
244
|
+
not match: ONIG_MISMATCH ( < 0)
|
|
245
|
+
|
|
246
|
+
����
|
|
247
|
+
1 reg: ����ɽ�����֥�������
|
|
248
|
+
2 str: �����о�ʸ����
|
|
249
|
+
3 end: �����о�ʸ����ν�ü���ɥ쥹
|
|
250
|
+
4 at: �����о�ʸ����θ������ɥ쥹
|
|
251
|
+
5 region: �ޥå��ΰ����(region) (NULL��������)
|
|
252
|
+
6 option: ���������ץ����
|
|
253
|
+
|
|
254
|
+
ONIG_OPTION_NOTBOL ʸ�������Ƭ(str)���Ƭ�ȴ������ʤ�
|
|
255
|
+
ONIG_OPTION_NOTEOL ʸ����ν�ü(end)������ȴ������ʤ�
|
|
256
|
+
ONIG_OPTION_POSIX_REGION region������POSIX API��regmatch_t[]�ˤ���
|
|
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
|
+
����ɽ����ʸ�������ơ��ޥå�������˥�����Хå��ؿ���ƤӽФ���
|
|
265
|
+
|
|
266
|
+
���ェλ: �ޥå���� (0���ޤ��)
|
|
267
|
+
���顼: ���顼������ (< 0)
|
|
268
|
+
����: ������Хå��ؿ������ʳ�������ͤ��֤����Ȥ��������ͤ�����ͤȤ�������
|
|
269
|
+
|
|
270
|
+
����
|
|
271
|
+
1 reg: ����ɽ�����֥�������
|
|
272
|
+
2 str: �����о�ʸ����
|
|
273
|
+
3 end: �����о�ʸ����ν�ü���ɥ쥹
|
|
274
|
+
4 region: �ޥå��ΰ����(region) (NULL��������)
|
|
275
|
+
5 option: ���������ץ����
|
|
276
|
+
6 scan_callback: ������Хå��ؿ�
|
|
277
|
+
7 callback_arg: ������Хå��ؿ����Ϥ�����ղð�����
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
# OnigRegion* onig_region_new(void)
|
|
281
|
+
|
|
282
|
+
�ޥå��ΰ����(region)��������롣
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# void onig_region_free(OnigRegion* region, int free_self)
|
|
286
|
+
|
|
287
|
+
�ޥå��ΰ����(region)�ǻ��Ѥ���Ƥ�������������롣
|
|
288
|
+
|
|
289
|
+
����
|
|
290
|
+
1 region: �ޥå��ΰ���֥�������
|
|
291
|
+
2 free_self: [1: region���Ȥ�ޤ�����Ʋ���, 0: region���Ȥϲ������ʤ�]
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
# void onig_region_copy(OnigRegion* to, OnigRegion* from)
|
|
295
|
+
|
|
296
|
+
�ޥå��ΰ����(region)��ʣ�����롣
|
|
297
|
+
|
|
298
|
+
����
|
|
299
|
+
1 to: �о��ΰ�
|
|
300
|
+
2 from: ���ΰ�
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
# void onig_region_clear(OnigRegion* region)
|
|
304
|
+
|
|
305
|
+
�ޥå��ΰ����(region)����̣�ꥢ���롣
|
|
306
|
+
|
|
307
|
+
����
|
|
308
|
+
1 region: �о��ΰ�
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
# int onig_region_resize(OnigRegion* region, int n)
|
|
312
|
+
|
|
313
|
+
�ޥå��ΰ����(region)����ͼ�����(���롼��)�����ѹ����롣
|
|
314
|
+
|
|
315
|
+
���ェλ�����: ONIG_NORMAL
|
|
316
|
+
|
|
317
|
+
����
|
|
318
|
+
1 region: �о��ΰ�
|
|
319
|
+
2 n: ������������
|
|
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
|
+
���ꤷ��̾�����Ф���̾���դ���ͼ�����(���롼��)��
|
|
326
|
+
���롼���ֹ�ꥹ�Ȥ��֤���
|
|
327
|
+
̾���դ���ͼ�����ϡ�(?<name>....)�ˤ�ä�����Ǥ��롣
|
|
328
|
+
|
|
329
|
+
���ェλ�����: ���ꤵ�줿̾�����Ф��륰�롼��
|
|
330
|
+
(�� /(?<x>..)(?<x>..)/ ==> 2)
|
|
331
|
+
̾�����Ф��륰�롼�פ�¸�ߤ��ʤ�: -1
|
|
332
|
+
|
|
333
|
+
����
|
|
334
|
+
1 reg: ����ɽ�����֥�������
|
|
335
|
+
2 name: ��ͼ�����(���롼��)̾
|
|
336
|
+
3 name_end: ��ͼ�����(���롼��)̾�ν�ü���ɥ쥹
|
|
337
|
+
4 num_list: �ֹ�ꥹ�Ȥ��֤����ɥ쥹
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
# int onig_name_to_backref_number(regex_t* reg, const UChar* name, const UChar* name_end,
|
|
341
|
+
OnigRegion *region)
|
|
342
|
+
|
|
343
|
+
���ꤵ�줿̾���θ�������(\k<name>)���Ф�����ͼ�����(���롼��)���ֹ���֤���
|
|
344
|
+
̾�����Ф��ơ�ʣ���Υޥå��ΰ褬ͭ���Ǥ���С�������κ�����ֹ���֤���
|
|
345
|
+
̾�����Ф�����ͼ����礬��Ĥ����ʤ��Ȥ��ˤϡ��б�����ޥå��ΰ褬ͭ����
|
|
346
|
+
�ɤ����˴ط��ʤ��������ֹ���֤���(���äơ�region�ˤ�NULL���Ϥ��Ƥ�褤��)
|
|
347
|
+
|
|
348
|
+
���ェλ�����: �ֹ�
|
|
349
|
+
|
|
350
|
+
����
|
|
351
|
+
1 reg: ����ɽ�����֥�������
|
|
352
|
+
2 name: ��ͼ�����(���롼��)̾
|
|
353
|
+
3 name_end: ��ͼ�����(���롼��)̾�ν�ü���ɥ쥹
|
|
354
|
+
4 region: search/match��̤Υޥå��ΰ�
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
# int onig_foreach_name(regex_t* reg,
|
|
358
|
+
int (*func)(const UChar*, const UChar*, int,int*,regex_t*,void*),
|
|
359
|
+
void* arg)
|
|
360
|
+
|
|
361
|
+
���Ƥ�̾�����Ф��ƥ�����Хå��ؿ��ƤӽФ���¹Ԥ��롣
|
|
362
|
+
|
|
363
|
+
���ェλ�����: 0
|
|
364
|
+
���顼: ������Хå��ؿ��������
|
|
365
|
+
|
|
366
|
+
����
|
|
367
|
+
1 reg: ����ɽ�����֥�������
|
|
368
|
+
2 func: ������Хå��ؿ�
|
|
369
|
+
func(name, name_end, <number of groups>, <group number's list>,
|
|
370
|
+
reg, arg);
|
|
371
|
+
|
|
372
|
+
func��0�ʳ����ͤ��֤��ȡ�����ʹߤΥ�����Хå��ϹԤʤ鷺��
|
|
373
|
+
��λ���롣
|
|
374
|
+
|
|
375
|
+
3 arg: func���Ф����ɲð���
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
# int onig_number_of_names(regex_t* reg)
|
|
379
|
+
|
|
380
|
+
�ѥ��������������줿̾���ο����֤���
|
|
381
|
+
��Ĥ�̾����¿������ϰ�Ĥȴ�������
|
|
382
|
+
|
|
383
|
+
����
|
|
384
|
+
1 reg: ����ɽ�����֥�������
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
# OnigEncoding onig_get_encoding(regex_t* reg)
|
|
388
|
+
# OnigOptionType onig_get_options(regex_t* reg)
|
|
389
|
+
# OnigCaseFoldType onig_get_case_fold_flag(regex_t* reg)
|
|
390
|
+
# OnigSyntaxType* onig_get_syntax(regex_t* reg)
|
|
391
|
+
|
|
392
|
+
����ɽ�����֥������Ȥ��Ф��ơ��б������ͤ��֤���
|
|
393
|
+
|
|
394
|
+
����
|
|
395
|
+
1 reg: ����ɽ�����֥�������
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
# int onig_number_of_captures(regex_t* reg)
|
|
399
|
+
|
|
400
|
+
�ѥ��������������줿��ͥ��롼�פο����֤���
|
|
401
|
+
|
|
402
|
+
����
|
|
403
|
+
1 reg: ����ɽ�����֥�������
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
# int onig_number_of_capture_histories(regex_t* reg)
|
|
407
|
+
|
|
408
|
+
�ѥ��������������줿�������(?@...)�ο����֤���
|
|
409
|
+
|
|
410
|
+
���Ѥ���ʸˡ���������ǽ��ͭ��(ONIG_SYN_OP2_ATMARK_CAPTURE_HISTORY)
|
|
411
|
+
�Ǥʤ���С��������ǽ�ϻ��ѤǤ��ʤ���
|
|
412
|
+
|
|
413
|
+
����
|
|
414
|
+
1 reg: ����ɽ�����֥�������
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
# OnigCaptureTreeNode* onig_get_capture_tree(OnigRegion* region)
|
|
418
|
+
|
|
419
|
+
�������ǡ����Υ롼�ȥΡ��ɤ��֤���
|
|
420
|
+
|
|
421
|
+
�ޥå������Ԥ��Ƥ�����ˤϡ������ͤ�����Ǥ��롣
|
|
422
|
+
|
|
423
|
+
����
|
|
424
|
+
1 region: �ޥå��ΰ�
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
# int onig_capture_tree_traverse(OnigRegion* region, int at,
|
|
428
|
+
int(*func)(int,int,int,int,int,void*), void* arg)
|
|
429
|
+
|
|
430
|
+
�������ǡ����ڤ��ƥ�����Хå����롣
|
|
431
|
+
|
|
432
|
+
���ェλ�����: 0
|
|
433
|
+
���顼: ������Хå��ؿ��������
|
|
434
|
+
|
|
435
|
+
����
|
|
436
|
+
1 region: �ޥå��ΰ�
|
|
437
|
+
2 at: ������Хå���Ԥʤ������ߥ�
|
|
438
|
+
|
|
439
|
+
ONIG_TRAVERSE_CALLBACK_AT_FIRST:
|
|
440
|
+
�ǽ�˥�����Хå����ơ��ҥΡ��ɤ���
|
|
441
|
+
ONIG_TRAVERSE_CALLBACK_AT_LAST:
|
|
442
|
+
�ҥΡ��ɤ��ơ�������Хå�
|
|
443
|
+
ONIG_TRAVERSE_CALLBACK_AT_BOTH:
|
|
444
|
+
�ǽ�˥�����Хå����ơ��ҥΡ��ɤ��Ǹ�ˤ⤦���٥�����Хå�
|
|
445
|
+
|
|
446
|
+
3 func: ������Хå��ؿ�
|
|
447
|
+
func��0�ʳ����ͤ��֤��ȡ�����ʹߤν��ϹԤʤ鷺��
|
|
448
|
+
��λ���롣
|
|
449
|
+
|
|
450
|
+
int func(int group, int beg, int end, int level, int at,
|
|
451
|
+
void* arg)
|
|
452
|
+
group: ���롼���ֹ�
|
|
453
|
+
beg: �ޥå����ϰ���
|
|
454
|
+
end �ޥå���λ����
|
|
455
|
+
level: �ͥ��ȥ�٥� (0����)
|
|
456
|
+
at: ������Хå����ƤӽФ��줿�����ߥ�
|
|
457
|
+
ONIG_TRAVERSE_CALLBACK_AT_FIRST
|
|
458
|
+
ONIG_TRAVERSE_CALLBACK_AT_LAST
|
|
459
|
+
arg: �ɲð���
|
|
460
|
+
|
|
461
|
+
4 arg; func���Ф����ɲð���
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
# int onig_noname_group_capture_is_active(regex_t* reg)
|
|
465
|
+
|
|
466
|
+
̾���ʤ����������͵�ǽ��ͭ�����ɤ������֤���
|
|
467
|
+
|
|
468
|
+
ͭ��: 1
|
|
469
|
+
̵��: 0
|
|
470
|
+
|
|
471
|
+
����
|
|
472
|
+
1 reg: ����ɽ�����֥�������
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
���ץ�����ONIG_OPTION_DONT_CAPTURE_GROUP��ON --> ̵��
|
|
476
|
+
|
|
477
|
+
�ѥ�����̾���Ĥ����������Ѥ��Ƥ���
|
|
478
|
+
AND ����ʸˡ�ǡ�ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP��ON
|
|
479
|
+
AND ���ץ�����ONIG_OPTION_CAPTURE_GROUP��OFF
|
|
480
|
+
--> ̵��
|
|
481
|
+
|
|
482
|
+
�嵭�ʳ��ξ�� --> ͭ��
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
# UChar* onigenc_get_prev_char_head(OnigEncoding enc, const UChar* start, const UChar* s)
|
|
486
|
+
|
|
487
|
+
ʸ�����ʬ����ʸ������֤��֤���
|
|
488
|
+
|
|
489
|
+
����
|
|
490
|
+
1 enc: ʸ�������ǥ���
|
|
491
|
+
2 start: ʸ�������Ƭ���ɥ쥹
|
|
492
|
+
3 s: ʸ������ΰ���
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
# UChar* onigenc_get_left_adjust_char_head(OnigEncoding enc,
|
|
496
|
+
const UChar* start, const UChar* s)
|
|
497
|
+
|
|
498
|
+
ʸ������Ƭ�Х��Ȱ��֤ˤʤ�褦�˺�¦��Ĵ���������ɥ쥹���֤���
|
|
499
|
+
|
|
500
|
+
����
|
|
501
|
+
1 enc: ʸ�������ǥ���
|
|
502
|
+
2 start: ʸ�������Ƭ���ɥ쥹
|
|
503
|
+
3 s: ʸ������ΰ���
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
# UChar* onigenc_get_right_adjust_char_head(OnigEncoding enc,
|
|
507
|
+
const UChar* start, const UChar* s)
|
|
508
|
+
|
|
509
|
+
ʸ������Ƭ�Х��Ȱ��֤ˤʤ�褦�˱�¦��Ĵ���������ɥ쥹���֤���
|
|
510
|
+
|
|
511
|
+
����
|
|
512
|
+
1 enc: ʸ�������ǥ���
|
|
513
|
+
2 start: ʸ�������Ƭ���ɥ쥹
|
|
514
|
+
3 s: ʸ������ΰ���
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
# int onigenc_strlen(OnigEncoding enc, const UChar* s, const UChar* end)
|
|
518
|
+
# int onigenc_strlen_null(OnigEncoding enc, const UChar* s)
|
|
519
|
+
|
|
520
|
+
ʸ�����ʸ�������֤���
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
# int onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s)
|
|
524
|
+
|
|
525
|
+
ʸ����ΥХ��ȿ����֤���
|
|
526
|
+
|
|
527
|
+
|
|
528
|
+
# int onig_set_default_syntax(OnigSyntaxType* syntax)
|
|
529
|
+
|
|
530
|
+
�ǥե���Ȥ�����ɽ���ѥ�����ʸˡ�åȤ��롣
|
|
531
|
+
|
|
532
|
+
����
|
|
533
|
+
1 syntax: ����ɽ���ѥ�����ʸˡ
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
# void onig_copy_syntax(OnigSyntaxType* to, OnigSyntaxType* from)
|
|
537
|
+
|
|
538
|
+
����ɽ���ѥ�����ʸˡ�ԡ����롣
|
|
539
|
+
|
|
540
|
+
����
|
|
541
|
+
1 to: �о�
|
|
542
|
+
2 from: ��
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
# unsigned int onig_get_syntax_op(OnigSyntaxType* syntax)
|
|
546
|
+
# unsigned int onig_get_syntax_op2(OnigSyntaxType* syntax)
|
|
547
|
+
# unsigned int onig_get_syntax_behavior(OnigSyntaxType* syntax)
|
|
548
|
+
# OnigOptionType onig_get_syntax_options(OnigSyntaxType* syntax)
|
|
549
|
+
|
|
550
|
+
# void onig_set_syntax_op(OnigSyntaxType* syntax, unsigned int op)
|
|
551
|
+
# void onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2)
|
|
552
|
+
# void onig_set_syntax_behavior(OnigSyntaxType* syntax, unsigned int behavior)
|
|
553
|
+
# void onig_set_syntax_options(OnigSyntaxType* syntax, OnigOptionType options)
|
|
554
|
+
|
|
555
|
+
����ɽ���ѥ�����ʸˡ�����Ǥ�/�������롣
|
|
556
|
+
|
|
557
|
+
����
|
|
558
|
+
1 syntax: ����ɽ���ѥ�����ʸˡ
|
|
559
|
+
2 op, op2, behavior, options: ���Ǥ���
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
# void onig_copy_encoding(OnigEncoding to, OnigEncoding from)
|
|
563
|
+
|
|
564
|
+
ʸ�������ǥ��ԡ����롣
|
|
565
|
+
|
|
566
|
+
����
|
|
567
|
+
1 to: �о�
|
|
568
|
+
2 from: ��
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
# int onig_set_meta_char(OnigSyntaxType* syntax, unsigned int what,
|
|
572
|
+
OnigCodePoint code)
|
|
573
|
+
|
|
574
|
+
�ʸ������ꤷ�������ɥݥ�����ͤ˥��åȤ��롣
|
|
575
|
+
ONIG_SYN_OP_VARIABLE_META_CHARACTERS������ɽ���ѥ�����ʸˡ��ͭ����
|
|
576
|
+
�ʤäƤ��ʤ����ˤϡ�����������ʸ��������ơ������ǻ��ꤷ���ʸ����
|
|
577
|
+
��ǽ���ʤ���(�ȹ��ߤ�ʸˡ�Ǥ�ͭ���ˤ��Ƥ��ʤ���)
|
|
578
|
+
|
|
579
|
+
���ェλ�����: ONIG_NORMAL
|
|
580
|
+
|
|
581
|
+
����
|
|
582
|
+
1 syntax: �о�ʸˡ
|
|
583
|
+
2 what: �ʸ����ǽ�λ���
|
|
584
|
+
|
|
585
|
+
ONIG_META_CHAR_ESCAPE
|
|
586
|
+
ONIG_META_CHAR_ANYCHAR
|
|
587
|
+
ONIG_META_CHAR_ANYTIME
|
|
588
|
+
ONIG_META_CHAR_ZERO_OR_ONE_TIME
|
|
589
|
+
ONIG_META_CHAR_ONE_OR_MORE_TIME
|
|
590
|
+
ONIG_META_CHAR_ANYCHAR_ANYTIME
|
|
591
|
+
|
|
592
|
+
3 code: �ʸ���Υ����ɥݥ���� �ޤ��� ONIG_INEFFECTIVE_META_CHAR.
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
# OnigCaseFoldType onig_get_default_case_fold_flag()
|
|
596
|
+
|
|
597
|
+
�ǥե���Ȥ�case fold�ե饰��������롣
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
# int onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag)
|
|
601
|
+
|
|
602
|
+
�ǥե���Ȥ�case fold�ե饰�åȤ��롣
|
|
603
|
+
|
|
604
|
+
����
|
|
605
|
+
1 case_fold_flag: case fold�ե饰
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
# unsigned int onig_get_match_stack_limit_size(void)
|
|
609
|
+
|
|
610
|
+
�ޥå������å��������κ����ͤ��֤���
|
|
611
|
+
(�ǥե����: 0 == ̵����)
|
|
612
|
+
|
|
613
|
+
|
|
614
|
+
# int onig_set_match_stack_limit_size(unsigned int size)
|
|
615
|
+
|
|
616
|
+
�ޥå������å��������κ����ͤ���ꤹ�롣
|
|
617
|
+
(size = 0: ̵����)
|
|
618
|
+
|
|
619
|
+
���ェλ�����: ONIG_NORMAL
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
# int onig_unicode_define_user_property(const char* name, OnigCodePoint* ranges))
|
|
623
|
+
|
|
624
|
+
������Unicode�ץ��ѥƥ���������롣
|
|
625
|
+
(���δؿ��ϥ���åɥ����դǤϤʤ�)
|
|
626
|
+
|
|
627
|
+
����
|
|
628
|
+
1 name: �ץ��ѥƥ�̾ (ASCII�����ɤΤߡ� ʸ�� ' ', '-', '_' ��̵�뤵��롣)
|
|
629
|
+
2 ranges: �ץ��ѥƥ������ɥݥ�����ϰ�
|
|
630
|
+
(�ǽ�����Ǥ��ϰϤο�)
|
|
631
|
+
|
|
632
|
+
[num-of-ranges, 1st-range-start, 1st-range-end, 2nd-range-start... ]
|
|
633
|
+
|
|
634
|
+
* ���δؿ���Ƥ����ǡ�ranges���ѹ�/�˲����ʤ�����
|
|
635
|
+
|
|
636
|
+
���ェλ�����: ONIG_NORMAL
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
# unsigned int onig_get_parse_depth_limit(void)
|
|
640
|
+
|
|
641
|
+
�Ƶ��ѡ��������κ��翼�����֤���
|
|
642
|
+
(�ǥե����: regint.h ���������Ƥ��� DEFAULT_PARSE_DEPTH_LIMIT�����ߤ� 4096)
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
# int onig_set_parse_depth_limit(unsigned int depth)
|
|
646
|
+
|
|
647
|
+
�Ƶ��ѡ��������κ��翼������ꤹ�롣
|
|
648
|
+
(depth = 0: regint.h ��������줿�ǥե�����ͤ����ꤹ�롣)
|
|
649
|
+
|
|
650
|
+
���ェλ�����: ONIG_NORMAL
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
# int onig_end(void)
|
|
654
|
+
|
|
655
|
+
�饤�֥��λ��Ѥ�λ���롣
|
|
656
|
+
|
|
657
|
+
���ェλ�����: ONIG_NORMAL
|
|
658
|
+
|
|
659
|
+
onig_init()����ٸƤӽФ��Ƥ⡢�����˺�����������ɽ�����֥�������
|
|
660
|
+
����Ѥ��뤳�ȤϤǤ��ʤ���
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
# const char* onig_version(void)
|
|
664
|
+
|
|
665
|
+
�С������ʸ������֤���(�� "5.0.3")
|
|
666
|
+
|
|
667
|
+
// END
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
FAQ 2016/04/06
|
|
2
|
+
|
|
3
|
+
1. ��Ĺ�ޥå�
|
|
4
|
+
|
|
5
|
+
onig_new()����ǡ�ONIG_OPTION_FIND_LONGEST���ץ����
|
|
6
|
+
����Ѥ���к�Ĺ�ޥå��ˤʤ롣
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
2. CR + LF
|
|
10
|
+
|
|
11
|
+
DOS�β���(CR(0x0c) + LF(0x0a)��Ϣ³)
|
|
12
|
+
|
|
13
|
+
regenc.h����Ρ��ʲ�����ʬ��ͭ���ˤ��롣
|
|
14
|
+
|
|
15
|
+
/* #define USE_CRNL_AS_LINE_TERMINATOR */
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
3. ���ꥹ��
|
|
19
|
+
|
|
20
|
+
���֤˴ؤ�����ꥹ�Ȥ�¸�ߤ��ʤ���
|
|
21
|
+
|
|
22
|
+
//END
|