rroonga 6.1.0-x64-mingw32 → 6.1.3-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/doc/text/news.md +28 -0
- data/ext/groonga/rb-grn-context.c +25 -0
- data/ext/groonga/rb-grn-database.c +2 -2
- data/ext/groonga/rb-grn-exception.c +15 -1
- data/ext/groonga/rb-grn-logger.c +43 -0
- data/ext/groonga/rb-grn-object.c +11 -3
- data/ext/groonga/rb-grn-table.c +9 -3
- data/ext/groonga/rb-grn-variable-size-column.c +16 -2
- data/ext/groonga/rb-grn.h +2 -2
- data/ext/groonga/rb-groonga.c +1 -1
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/2.3/groonga.so +0 -0
- data/lib/2.4/groonga.so +0 -0
- data/lib/groonga/dumper.rb +2 -0
- data/lib/groonga/logger.rb +2 -1
- data/lib/groonga/schema.rb +4 -2
- data/rroonga-build.rb +5 -5
- data/test/test-context.rb +5 -0
- data/test/test-exception.rb +2 -1
- data/test/test-logger.rb +18 -0
- data/test/test-schema-dumper.rb +19 -1
- data/test/test-variable-size-column.rb +10 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-2.dll +0 -0
- data/vendor/local/bin/libmsgpackc.dll +0 -0
- data/vendor/local/bin/libonigmo-6.dll +0 -0
- data/vendor/local/bin/libpcre-1.dll +0 -0
- data/vendor/local/bin/libpcrecpp-0.dll +0 -0
- data/vendor/local/bin/libpcreposix-0.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/{onig-config → onigmo-config} +5 -5
- data/vendor/local/bin/pcregrep.exe +0 -0
- data/vendor/local/bin/pcretest.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/accessor.h +34 -0
- data/vendor/local/include/groonga/groonga/groonga.h +37 -2
- data/vendor/local/include/groonga/groonga/ii.h +4 -0
- data/vendor/local/include/groonga/groonga/plugin.h +16 -6
- data/vendor/local/include/{oniguruma.h → onigmo.h} +326 -262
- data/vendor/local/include/{oniggnu.h → onigmognu.h} +16 -15
- data/vendor/local/include/{onigposix.h → onigmoposix.h} +37 -44
- data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.la +3 -3
- data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.la +3 -3
- data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.la +3 -3
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.la +3 -3
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
- data/vendor/local/lib/groonga/plugins/{table/table.dll.a → normalizers/mysql.dll.a} +0 -0
- data/vendor/local/lib/groonga/plugins/{table/table.la → normalizers/mysql.la} +9 -9
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
- data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +2 -1
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +3 -3
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
- data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +2 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +3 -3
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libonigmo.a +0 -0
- data/vendor/local/lib/{libonig.dll.a → libonigmo.dll.a} +0 -0
- data/vendor/local/lib/{libonig.la → libonigmo.la} +9 -9
- data/vendor/local/lib/libpcre.a +0 -0
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.a +0 -0
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga-normalizer-mysql.pc +5 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/lib/pkgconfig/{oniguruma.pc → onigmo.pc} +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga-normalizer-mysql/README.md +211 -0
- data/vendor/local/share/doc/groonga-normalizer-mysql/lgpl-2.0.txt +481 -0
- data/vendor/local/share/doc/groonga-normalizer-mysql/news.md +41 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +114 -46
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -53
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +6 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +5 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +134 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +0 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grndb.txt +0 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +0 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +0 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +0 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +18 -0
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/client.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution.html +8 -36
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +219 -156
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/index.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +13 -59
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/others.html +12 -10
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +11 -10
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news.html +225 -93
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/5.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/alias.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +6 -10
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +6 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +6 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +6 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/record_number.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +6 -13
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +23 -6
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/package.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +114 -46
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -53
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +6 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +5 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +134 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +0 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grndb.txt +0 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +0 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +0 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +0 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +18 -0
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/client.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +8 -36
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +219 -156
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/index.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +13 -49
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +12 -10
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +11 -10
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news.html +225 -92
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +6 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +6 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +6 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +6 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/record_number.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +6 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +22 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +6 -6
- data/vendor/local/share/groonga/mruby/LEGAL +30 -30
- data/vendor/local/share/license/groonga-normalizer-mysql/README.md +211 -0
- data/vendor/local/share/license/groonga-normalizer-mysql/lgpl-2.0.txt +481 -0
- data/vendor/local/share/license/onigmo/README +10 -8
- metadata +86 -75
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/libonig.a +0 -0
data/test/test-exception.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# Copyright (C) 2014-2015 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
1
|
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2014-2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
3
3
|
#
|
4
4
|
# This library is free software; you can redistribute it and/or
|
5
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -100,6 +100,7 @@ class ExceptionTest < Test::Unit::TestCase
|
|
100
100
|
assert_const_defined(Groonga, :CommandError)
|
101
101
|
assert_const_defined(Groonga, :PluginError)
|
102
102
|
assert_const_defined(Groonga, :ScorerError)
|
103
|
+
assert_const_defined(Groonga, :ZstdError)
|
103
104
|
end
|
104
105
|
end
|
105
106
|
|
data/test/test-logger.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
3
|
#
|
3
4
|
# This library is free software; you can redistribute it and/or
|
4
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -43,6 +44,14 @@ class LoggerTest < Test::Unit::TestCase
|
|
43
44
|
assert_equal(:debug, Groonga::Logger.max_level)
|
44
45
|
end
|
45
46
|
|
47
|
+
def test_flags
|
48
|
+
default_flags = Groonga::Logger::Flags::TIME |
|
49
|
+
Groonga::Logger::Flags::MESSAGE
|
50
|
+
assert_equal(default_flags, Groonga::Logger.flags)
|
51
|
+
Groonga::Logger.flags = Groonga::Logger::Flags::LOCATION
|
52
|
+
assert_equal(Groonga::Logger::Flags::LOCATION, Groonga::Logger.flags)
|
53
|
+
end
|
54
|
+
|
46
55
|
sub_test_case ".log" do
|
47
56
|
test "no options" do
|
48
57
|
messages = []
|
@@ -137,4 +146,13 @@ class LoggerTest < Test::Unit::TestCase
|
|
137
146
|
Groonga::Logger.log("Hello")
|
138
147
|
assert_not_equal([], Dir.glob("#{@log_path}.*"))
|
139
148
|
end
|
149
|
+
|
150
|
+
sub_test_case "Flags" do
|
151
|
+
sub_test_case "#label" do
|
152
|
+
test "pid" do
|
153
|
+
flags = Groonga::Logger::Flags::PID
|
154
|
+
assert_equal("pid", Groonga::Logger::Flags.label(flags))
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
140
158
|
end
|
data/test/test-schema-dumper.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Copyright (C) 2009-2016 Kouhei Sutou <kou@clear-code.com>
|
2
|
-
# Copyright (C) 2014 Masafumi Yokoyama <
|
2
|
+
# Copyright (C) 2014-2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
3
3
|
#
|
4
4
|
# This library is free software; you can redistribute it and/or
|
5
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -432,6 +432,16 @@ column_create Posts title #{flags} ShortText
|
|
432
432
|
SCHEMA
|
433
433
|
end
|
434
434
|
|
435
|
+
def test_zstd
|
436
|
+
define_column_compression_zstd_schema
|
437
|
+
flags = "COLUMN_SCALAR"
|
438
|
+
flags << "|COMPRESS_ZSTD" if context.support_zstd?
|
439
|
+
assert_equal(<<-SCHEMA, dump)
|
440
|
+
table_create Posts TABLE_NO_KEY
|
441
|
+
column_create Posts title #{flags} ShortText
|
442
|
+
SCHEMA
|
443
|
+
end
|
444
|
+
|
435
445
|
def test_with_weight_vector
|
436
446
|
define_column_compression_with_weight_vector_schema
|
437
447
|
flags = "COLUMN_VECTOR|WITH_WEIGHT"
|
@@ -459,6 +469,14 @@ column_create Posts comments #{flags} ShortText
|
|
459
469
|
end
|
460
470
|
end
|
461
471
|
|
472
|
+
def define_column_compression_zstd_schema
|
473
|
+
Groonga::Schema.define do |schema|
|
474
|
+
schema.create_table("Posts") do |table|
|
475
|
+
table.short_text("title", :compress => :zstd)
|
476
|
+
end
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
462
480
|
def define_column_compression_with_weight_vector_schema
|
463
481
|
Groonga::Schema.define do |schema|
|
464
482
|
schema.create_table("Posts") do |table|
|
@@ -96,6 +96,16 @@ class VariableSizeColumnTest < Test::Unit::TestCase
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
+
def test_compressed_zstd?
|
100
|
+
description = @users.define_column("description", "ShortText",
|
101
|
+
:compress => :zstd)
|
102
|
+
if context.support_zstd?
|
103
|
+
assert {description.compressed?(:zstd)}
|
104
|
+
else
|
105
|
+
assert {not description.compressed?(:zstd)}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
99
109
|
def test_inspect
|
100
110
|
assert_equal("#<Groonga::VariableSizeColumn " +
|
101
111
|
"id: <#{@name.id}>, " +
|
data/vendor/local/bin/grndb.exe
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/lz4.exe
CHANGED
Binary file
|
data/vendor/local/bin/lz4c.exe
CHANGED
Binary file
|
data/vendor/local/bin/lz4cat
CHANGED
Binary file
|
data/vendor/local/bin/mecab.exe
CHANGED
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
# Copyright (C) 2006 K.Kosako (sndgk393 AT ybb DOT ne DOT jp)
|
3
3
|
|
4
|
-
|
4
|
+
ONIGMO_VERSION=6.0.0
|
5
5
|
|
6
6
|
show_usage()
|
7
7
|
{
|
8
8
|
cat <<EOF
|
9
|
-
Usage:
|
9
|
+
Usage: onigmo-config [OPTION]
|
10
10
|
|
11
11
|
Values for OPTION are:
|
12
12
|
--prefix[=DIR] change prefix to DIR
|
@@ -15,7 +15,7 @@ Usage: onig-config [OPTION]
|
|
15
15
|
--exec-prefix print exec_prefix
|
16
16
|
--cflags print C compiler flags
|
17
17
|
--libs print library information
|
18
|
-
--version print
|
18
|
+
--version print onigmo version
|
19
19
|
--help print this help
|
20
20
|
|
21
21
|
EOF
|
@@ -63,10 +63,10 @@ while test $# -gt 0; do
|
|
63
63
|
echo $show_includedir
|
64
64
|
;;
|
65
65
|
--libs)
|
66
|
-
echo -L${exec_prefix}/lib -
|
66
|
+
echo -L${exec_prefix}/lib -lonigmo
|
67
67
|
;;
|
68
68
|
--version)
|
69
|
-
echo $
|
69
|
+
echo $ONIGMO_VERSION
|
70
70
|
;;
|
71
71
|
*)
|
72
72
|
show_usage
|
Binary file
|
Binary file
|
data/vendor/local/bin/zlib1.dll
CHANGED
Binary file
|
@@ -0,0 +1,34 @@
|
|
1
|
+
/*
|
2
|
+
Copyright(C) 2012-2016 Brazil
|
3
|
+
|
4
|
+
This library is free software; you can redistribute it and/or
|
5
|
+
modify it under the terms of the GNU Lesser General Public
|
6
|
+
License as published by the Free Software Foundation; either
|
7
|
+
version 2.1 of the License, or (at your option) any later version.
|
8
|
+
|
9
|
+
This library is distributed in the hope that it will be useful,
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
Lesser General Public License for more details.
|
13
|
+
|
14
|
+
You should have received a copy of the GNU Lesser General Public
|
15
|
+
License along with this library; if not, write to the Free Software
|
16
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
17
|
+
*/
|
18
|
+
|
19
|
+
#pragma once
|
20
|
+
|
21
|
+
#ifdef __cplusplus
|
22
|
+
extern "C" {
|
23
|
+
#endif
|
24
|
+
|
25
|
+
GRN_API grn_rc grn_accessor_resolve(grn_ctx *ctx,
|
26
|
+
grn_obj *accessor,
|
27
|
+
int deep,
|
28
|
+
grn_obj *base_res,
|
29
|
+
grn_obj *res,
|
30
|
+
grn_operator op);
|
31
|
+
|
32
|
+
#ifdef __cplusplus
|
33
|
+
}
|
34
|
+
#endif
|
@@ -126,7 +126,8 @@ typedef enum {
|
|
126
126
|
GRN_PLUGIN_ERROR = -75,
|
127
127
|
GRN_SCORER_ERROR = -76,
|
128
128
|
GRN_CANCEL = -77,
|
129
|
-
GRN_WINDOW_FUNCTION_ERROR = -78
|
129
|
+
GRN_WINDOW_FUNCTION_ERROR = -78,
|
130
|
+
GRN_ZSTD_ERROR = -79
|
130
131
|
} grn_rc;
|
131
132
|
|
132
133
|
GRN_API grn_rc grn_init(void);
|
@@ -331,6 +332,7 @@ typedef uint32_t grn_column_flags;
|
|
331
332
|
#define GRN_OBJ_COMPRESS_LZ4 (0x02<<4)
|
332
333
|
/* Just for backward compatibility. We'll remove it at 5.0.0. */
|
333
334
|
#define GRN_OBJ_COMPRESS_LZO GRN_OBJ_COMPRESS_LZ4
|
335
|
+
#define GRN_OBJ_COMPRESS_ZSTD (0x03<<4)
|
334
336
|
|
335
337
|
#define GRN_OBJ_WITH_SECTION (0x01<<7)
|
336
338
|
#define GRN_OBJ_WITH_WEIGHT (0x01<<8)
|
@@ -705,7 +707,8 @@ typedef enum {
|
|
705
707
|
/* Just for backward compatibility. We'll remove it at 5.0.0. */
|
706
708
|
#define GRN_INFO_SUPPORT_LZO GRN_INFO_SUPPORT_LZ4
|
707
709
|
GRN_INFO_NORMALIZER,
|
708
|
-
GRN_INFO_TOKEN_FILTERS
|
710
|
+
GRN_INFO_TOKEN_FILTERS,
|
711
|
+
GRN_INFO_SUPPORT_ZSTD
|
709
712
|
} grn_info_type;
|
710
713
|
|
711
714
|
GRN_API grn_obj *grn_obj_get_info(grn_ctx *ctx, grn_obj *obj, grn_info_type type, grn_obj *valuebuf);
|
@@ -797,6 +800,15 @@ struct _grn_fuzzy_search_optarg {
|
|
797
800
|
int flags;
|
798
801
|
};
|
799
802
|
|
803
|
+
#define GRN_MATCH_INFO_GET_MIN_RECORD_ID (0x01)
|
804
|
+
|
805
|
+
typedef struct _grn_match_info grn_match_info;
|
806
|
+
|
807
|
+
struct _grn_match_info {
|
808
|
+
int flags;
|
809
|
+
grn_id min;
|
810
|
+
};
|
811
|
+
|
800
812
|
typedef struct _grn_search_optarg grn_search_optarg;
|
801
813
|
|
802
814
|
struct _grn_search_optarg {
|
@@ -811,6 +823,7 @@ struct _grn_search_optarg {
|
|
811
823
|
grn_obj *scorer_args_expr;
|
812
824
|
unsigned int scorer_args_expr_offset;
|
813
825
|
grn_fuzzy_search_optarg fuzzy;
|
826
|
+
grn_match_info match_info;
|
814
827
|
};
|
815
828
|
|
816
829
|
GRN_API grn_rc grn_obj_search(grn_ctx *ctx, grn_obj *obj, grn_obj *query,
|
@@ -1020,6 +1033,7 @@ GRN_API grn_rc grn_snip_get_result(grn_ctx *ctx, grn_obj *snip, const unsigned i
|
|
1020
1033
|
#define GRN_LOG_TITLE (0x01<<1)
|
1021
1034
|
#define GRN_LOG_MESSAGE (0x01<<2)
|
1022
1035
|
#define GRN_LOG_LOCATION (0x01<<3)
|
1036
|
+
#define GRN_LOG_PID (0x01<<4)
|
1023
1037
|
|
1024
1038
|
/* Deprecated since 2.1.2. Use grn_logger instead. */
|
1025
1039
|
typedef struct _grn_logger_info grn_logger_info;
|
@@ -1060,6 +1074,25 @@ GRN_API grn_log_level grn_logger_get_max_level(grn_ctx *ctx);
|
|
1060
1074
|
# define GRN_ATTRIBUTE_PRINTF(fmt_pos)
|
1061
1075
|
#endif /* __GNUC__ */
|
1062
1076
|
|
1077
|
+
#if defined(__clang__)
|
1078
|
+
# if __has_attribute(__alloc_size__)
|
1079
|
+
# define HAVE_ALLOC_SIZE_ATTRIBUTE
|
1080
|
+
# endif /* __has_attribute(__alloc_size__) */
|
1081
|
+
#elif defined(__GNUC__) && \
|
1082
|
+
((__GNUC__ >= 5) || (__GNUC__ > 4 && __GNUC_MINOR__ >= 3))
|
1083
|
+
# define HAVE_ALLOC_SIZE_ATTRIBUTE
|
1084
|
+
#endif /* __clang__ */
|
1085
|
+
|
1086
|
+
#ifdef HAVE_ALLOC_SIZE_ATTRIBUTE
|
1087
|
+
# define GRN_ATTRIBUTE_ALLOC_SIZE(size) \
|
1088
|
+
__attribute__ ((alloc_size(size)))
|
1089
|
+
# define GRN_ATTRIBUTE_ALLOC_SIZE_N(n, size) \
|
1090
|
+
__attribute__ ((alloc_size(n, size)))
|
1091
|
+
#else
|
1092
|
+
# define GRN_ATTRIBUTE_ALLOC_SIZE(size)
|
1093
|
+
# define GRN_ATTRIBUTE_ALLOC_SIZE_N(n, size)
|
1094
|
+
#endif /* HAVE_ALLOC_SIZE_ATTRIBUTE */
|
1095
|
+
|
1063
1096
|
GRN_API void grn_logger_put(grn_ctx *ctx, grn_log_level level,
|
1064
1097
|
const char *file, int line, const char *func, const char *fmt, ...) GRN_ATTRIBUTE_PRINTF(6);
|
1065
1098
|
GRN_API void grn_logger_putv(grn_ctx *ctx,
|
@@ -1079,6 +1112,8 @@ GRN_API grn_bool grn_logger_pass(grn_ctx *ctx, grn_log_level level);
|
|
1079
1112
|
|
1080
1113
|
GRN_API void grn_default_logger_set_max_level(grn_log_level level);
|
1081
1114
|
GRN_API grn_log_level grn_default_logger_get_max_level(void);
|
1115
|
+
GRN_API void grn_default_logger_set_flags(int flags);
|
1116
|
+
GRN_API int grn_default_logger_get_flags(void);
|
1082
1117
|
GRN_API void grn_default_logger_set_path(const char *path);
|
1083
1118
|
GRN_API const char *grn_default_logger_get_path(void);
|
1084
1119
|
GRN_API void grn_default_logger_set_rotate_threshold_size(off_t threshold);
|
@@ -46,6 +46,10 @@ GRN_API grn_rc grn_ii_buffer_append(grn_ctx *ctx,
|
|
46
46
|
GRN_API grn_rc grn_ii_buffer_commit(grn_ctx *ctx, grn_ii_buffer *ii_buffer);
|
47
47
|
GRN_API grn_rc grn_ii_buffer_close(grn_ctx *ctx, grn_ii_buffer *ii_buffer);
|
48
48
|
|
49
|
+
GRN_API grn_rc grn_ii_posting_add(grn_ctx *ctx, grn_posting *pos,
|
50
|
+
grn_hash *s, grn_operator op);
|
51
|
+
GRN_API void grn_ii_resolve_sel_and(grn_ctx *ctx, grn_hash *s, grn_operator op);
|
52
|
+
|
49
53
|
|
50
54
|
/* Experimental */
|
51
55
|
typedef struct _grn_ii_cursor grn_ii_cursor;
|
@@ -64,12 +64,22 @@ GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_FIN(grn_ctx *ctx);
|
|
64
64
|
Don't call these functions directly. Use GRN_PLUGIN_MALLOC(),
|
65
65
|
GRN_PLUGIN_CALLOC(), GRN_PLUGIN_REALLOC() and GRN_PLUGIN_FREE() instead.
|
66
66
|
*/
|
67
|
-
GRN_API void *grn_plugin_malloc(grn_ctx *ctx,
|
68
|
-
|
69
|
-
|
70
|
-
int line,
|
71
|
-
|
72
|
-
|
67
|
+
GRN_API void *grn_plugin_malloc(grn_ctx *ctx,
|
68
|
+
size_t size,
|
69
|
+
const char *file,
|
70
|
+
int line,
|
71
|
+
const char *func) GRN_ATTRIBUTE_ALLOC_SIZE(2);
|
72
|
+
GRN_API void *grn_plugin_calloc(grn_ctx *ctx,
|
73
|
+
size_t size,
|
74
|
+
const char *file,
|
75
|
+
int line,
|
76
|
+
const char *func) GRN_ATTRIBUTE_ALLOC_SIZE(2);
|
77
|
+
GRN_API void *grn_plugin_realloc(grn_ctx *ctx,
|
78
|
+
void *ptr,
|
79
|
+
size_t size,
|
80
|
+
const char *file,
|
81
|
+
int line,
|
82
|
+
const char *func) GRN_ATTRIBUTE_ALLOC_SIZE(3);
|
73
83
|
GRN_API void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
|
74
84
|
int line, const char *func);
|
75
85
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
#ifndef
|
2
|
-
#define
|
1
|
+
#ifndef ONIGMO_H
|
2
|
+
#define ONIGMO_H
|
3
3
|
/**********************************************************************
|
4
|
-
|
4
|
+
onigmo.h - Onigmo (Oniguruma-mod) (regular expression library)
|
5
5
|
**********************************************************************/
|
6
6
|
/*-
|
7
7
|
* Copyright (c) 2002-2009 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
|
8
|
-
* Copyright (c) 2011-
|
8
|
+
* Copyright (c) 2011-2016 K.Takata <kentkt AT csc DOT jp>
|
9
9
|
* All rights reserved.
|
10
10
|
*
|
11
11
|
* Redistribution and use in source and binary forms, with or without
|
@@ -32,71 +32,48 @@
|
|
32
32
|
|
33
33
|
#ifdef __cplusplus
|
34
34
|
extern "C" {
|
35
|
-
#
|
36
|
-
|
37
|
-
#define ONIGURUMA
|
38
|
-
#define ONIGURUMA_VERSION_MAJOR 5
|
39
|
-
#define ONIGURUMA_VERSION_MINOR 15
|
40
|
-
#define ONIGURUMA_VERSION_TEENY 0
|
41
|
-
|
42
|
-
#ifdef __cplusplus
|
43
|
-
# ifndef HAVE_PROTOTYPES
|
44
|
-
# define HAVE_PROTOTYPES 1
|
45
|
-
# endif
|
46
|
-
# ifndef HAVE_STDARG_PROTOTYPES
|
47
|
-
# define HAVE_STDARG_PROTOTYPES 1
|
35
|
+
# if 0
|
36
|
+
} /* satisfy cc-mode */
|
48
37
|
# endif
|
49
38
|
#endif
|
50
39
|
|
51
|
-
|
52
|
-
#
|
53
|
-
#
|
54
|
-
# define HAVE_STDARG_PROTOTYPES 1
|
55
|
-
# endif
|
56
|
-
#endif
|
40
|
+
#define ONIGMO_VERSION_MAJOR 6
|
41
|
+
#define ONIGMO_VERSION_MINOR 0
|
42
|
+
#define ONIGMO_VERSION_TEENY 0
|
57
43
|
|
58
|
-
#
|
59
|
-
#
|
60
|
-
# define
|
44
|
+
#ifndef ONIG_EXTERN
|
45
|
+
# ifdef RUBY_EXTERN
|
46
|
+
# define ONIG_EXTERN RUBY_EXTERN
|
47
|
+
# else
|
48
|
+
# if defined(_WIN32) && !defined(__GNUC__)
|
49
|
+
# if defined(EXPORT) || defined(RUBY_EXPORT)
|
50
|
+
# define ONIG_EXTERN extern __declspec(dllexport)
|
51
|
+
# else
|
52
|
+
# define ONIG_EXTERN extern __declspec(dllimport)
|
53
|
+
# endif
|
54
|
+
# endif
|
61
55
|
# endif
|
62
56
|
#endif
|
63
57
|
|
64
|
-
#ifndef P_
|
65
|
-
#if defined(__STDC__) || defined(_WIN32)
|
66
|
-
# define P_(args) args
|
67
|
-
#else
|
68
|
-
# define P_(args) ()
|
69
|
-
#endif
|
70
|
-
#endif
|
71
|
-
|
72
|
-
#ifndef PV_
|
73
|
-
#ifdef HAVE_STDARG_PROTOTYPES
|
74
|
-
# define PV_(args) args
|
75
|
-
#else
|
76
|
-
# define PV_(args) ()
|
77
|
-
#endif
|
78
|
-
#endif
|
79
|
-
|
80
58
|
#ifndef ONIG_EXTERN
|
81
|
-
#
|
82
|
-
#if defined(EXPORT) || defined(RUBY_EXPORT)
|
83
|
-
#define ONIG_EXTERN extern __declspec(dllexport)
|
84
|
-
#else
|
85
|
-
#define ONIG_EXTERN extern __declspec(dllimport)
|
86
|
-
#endif
|
87
|
-
#endif
|
59
|
+
# define ONIG_EXTERN extern
|
88
60
|
#endif
|
89
61
|
|
90
|
-
#ifndef
|
91
|
-
#
|
62
|
+
#ifndef RUBY
|
63
|
+
# ifndef RUBY_SYMBOL_EXPORT_BEGIN
|
64
|
+
# define RUBY_SYMBOL_EXPORT_BEGIN
|
65
|
+
# define RUBY_SYMBOL_EXPORT_END
|
66
|
+
# endif
|
92
67
|
#endif
|
93
68
|
|
69
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
70
|
+
|
94
71
|
#include <stddef.h> /* for size_t */
|
95
72
|
|
96
73
|
/* PART: character encoding */
|
97
74
|
|
98
75
|
#ifndef ONIG_ESCAPE_UCHAR_COLLISION
|
99
|
-
#define UChar OnigUChar
|
76
|
+
# define UChar OnigUChar
|
100
77
|
#endif
|
101
78
|
|
102
79
|
typedef unsigned char OnigUChar;
|
@@ -107,14 +84,48 @@ typedef ptrdiff_t OnigPosition;
|
|
107
84
|
|
108
85
|
#define ONIG_INFINITE_DISTANCE ~((OnigDistance )0)
|
109
86
|
|
87
|
+
/*
|
88
|
+
* Onig casefold/case mapping flags and related definitions
|
89
|
+
*
|
90
|
+
* Subfields (starting with 0 at LSB):
|
91
|
+
* 0-2: Code point count in casefold.h
|
92
|
+
* 3-12: Index into SpecialCaseMapping array in casefold.h
|
93
|
+
* 13-22: Case folding/mapping flags
|
94
|
+
*/
|
110
95
|
typedef unsigned int OnigCaseFoldType; /* case fold flag */
|
111
96
|
|
112
97
|
ONIG_EXTERN OnigCaseFoldType OnigDefaultCaseFoldFlag;
|
113
98
|
|
114
|
-
/*
|
115
|
-
|
116
|
-
#define
|
117
|
-
#define
|
99
|
+
/* bits for actual code point count; 3 bits is more than enough, currently only 2 used */
|
100
|
+
#define OnigCodePointMaskWidth 3
|
101
|
+
#define OnigCodePointMask ((1<<OnigCodePointMaskWidth)-1)
|
102
|
+
#define OnigCodePointCount(n) ((n)&OnigCodePointMask)
|
103
|
+
#define OnigCaseFoldFlags(n) ((n)&~OnigCodePointMask)
|
104
|
+
|
105
|
+
/* #define ONIGENC_CASE_FOLD_HIRAGANA_KATAKANA (1<<1) */ /* no longer usable with these values! */
|
106
|
+
/* #define ONIGENC_CASE_FOLD_KATAKANA_WIDTH (1<<2) */ /* no longer usable with these values! */
|
107
|
+
|
108
|
+
/* bits for index into table with separate titlecase mappings */
|
109
|
+
/* 10 bits provide 1024 values */
|
110
|
+
#define OnigSpecialIndexShift 3
|
111
|
+
#define OnigSpecialIndexWidth 10
|
112
|
+
|
113
|
+
#define ONIGENC_CASE_UPCASE (1<<13) /* has/needs uppercase mapping */
|
114
|
+
#define ONIGENC_CASE_DOWNCASE (1<<14) /* has/needs lowercase mapping */
|
115
|
+
#define ONIGENC_CASE_TITLECASE (1<<15) /* has/needs (special) titlecase mapping */
|
116
|
+
#define ONIGENC_CASE_SPECIAL_OFFSET 3 /* offset in bits from ONIGENC_CASE to ONIGENC_CASE_SPECIAL */
|
117
|
+
#define ONIGENC_CASE_UP_SPECIAL (1<<16) /* has special upcase mapping */
|
118
|
+
#define ONIGENC_CASE_DOWN_SPECIAL (1<<17) /* has special downcase mapping */
|
119
|
+
#define ONIGENC_CASE_MODIFIED (1<<18) /* data has been modified */
|
120
|
+
#define ONIGENC_CASE_FOLD (1<<19) /* has/needs case folding */
|
121
|
+
|
122
|
+
#define ONIGENC_CASE_FOLD_TURKISH_AZERI (1<<20) /* needs mapping specific to Turkic languages; better not change original value! */
|
123
|
+
|
124
|
+
#define ONIGENC_CASE_FOLD_LITHUANIAN (1<<21) /* needs Lithuanian-specific mapping */
|
125
|
+
#define ONIGENC_CASE_ASCII_ONLY (1<<22) /* only modify ASCII range */
|
126
|
+
#define ONIGENC_CASE_IS_TITLECASE (1<<23) /* character itself is already titlecase */
|
127
|
+
|
128
|
+
#define INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR (1<<30) /* better not change original value! */
|
118
129
|
|
119
130
|
#define ONIGENC_CASE_FOLD_MIN INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR
|
120
131
|
#define ONIGENC_CASE_FOLD_DEFAULT OnigDefaultCaseFoldFlag
|
@@ -147,95 +158,132 @@ typedef struct {
|
|
147
158
|
typedef int (*OnigApplyAllCaseFoldFunc)(OnigCodePoint from, OnigCodePoint* to, int to_len, void* arg);
|
148
159
|
|
149
160
|
typedef struct OnigEncodingTypeST {
|
150
|
-
int (*
|
161
|
+
int (*precise_mbc_enc_len)(const OnigUChar* p,const OnigUChar* e, const struct OnigEncodingTypeST* enc);
|
151
162
|
const char* name;
|
152
163
|
int max_enc_len;
|
153
164
|
int min_enc_len;
|
154
|
-
int (*is_mbc_newline)(const OnigUChar* p, const OnigUChar* end);
|
155
|
-
OnigCodePoint (*mbc_to_code)(const OnigUChar* p, const OnigUChar* end);
|
156
|
-
int (*code_to_mbclen)(OnigCodePoint code);
|
157
|
-
int (*code_to_mbc)(OnigCodePoint code, OnigUChar *buf);
|
158
|
-
int (*mbc_case_fold)(OnigCaseFoldType flag, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to);
|
159
|
-
int (*apply_all_case_fold)(OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg);
|
160
|
-
int (*get_case_fold_codes_by_str)(OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem acs[]);
|
161
|
-
int (*property_name_to_ctype)(struct OnigEncodingTypeST* enc, OnigUChar* p, OnigUChar* end);
|
162
|
-
int (*is_code_ctype)(OnigCodePoint code, OnigCtype ctype);
|
163
|
-
int (*get_ctype_code_range)(OnigCtype ctype, OnigCodePoint* sb_out, const OnigCodePoint* ranges[]);
|
164
|
-
OnigUChar* (*left_adjust_char_head)(const OnigUChar* start, const OnigUChar* p);
|
165
|
-
int (*is_allowed_reverse_match)(const OnigUChar* p, const OnigUChar* end);
|
165
|
+
int (*is_mbc_newline)(const OnigUChar* p, const OnigUChar* end, const struct OnigEncodingTypeST* enc);
|
166
|
+
OnigCodePoint (*mbc_to_code)(const OnigUChar* p, const OnigUChar* end, const struct OnigEncodingTypeST* enc);
|
167
|
+
int (*code_to_mbclen)(OnigCodePoint code, const struct OnigEncodingTypeST* enc);
|
168
|
+
int (*code_to_mbc)(OnigCodePoint code, OnigUChar *buf, const struct OnigEncodingTypeST* enc);
|
169
|
+
int (*mbc_case_fold)(OnigCaseFoldType flag, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, const struct OnigEncodingTypeST* enc);
|
170
|
+
int (*apply_all_case_fold)(OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg, const struct OnigEncodingTypeST* enc);
|
171
|
+
int (*get_case_fold_codes_by_str)(OnigCaseFoldType flag, const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem acs[], const struct OnigEncodingTypeST* enc);
|
172
|
+
int (*property_name_to_ctype)(const struct OnigEncodingTypeST* enc, const OnigUChar* p, const OnigUChar* end);
|
173
|
+
int (*is_code_ctype)(OnigCodePoint code, OnigCtype ctype, const struct OnigEncodingTypeST* enc);
|
174
|
+
int (*get_ctype_code_range)(OnigCtype ctype, OnigCodePoint* sb_out, const OnigCodePoint* ranges[], const struct OnigEncodingTypeST* enc);
|
175
|
+
OnigUChar* (*left_adjust_char_head)(const OnigUChar* start, const OnigUChar* p, const OnigUChar* end, const struct OnigEncodingTypeST* enc);
|
176
|
+
int (*is_allowed_reverse_match)(const OnigUChar* p, const OnigUChar* end, const struct OnigEncodingTypeST* enc);
|
177
|
+
int (*case_map)(OnigCaseFoldType* flagP, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, const struct OnigEncodingTypeST* enc);
|
178
|
+
int ruby_encoding_index;
|
166
179
|
unsigned int flags;
|
167
180
|
} OnigEncodingType;
|
168
181
|
|
169
|
-
typedef OnigEncodingType* OnigEncoding;
|
170
|
-
|
171
|
-
ONIG_EXTERN OnigEncodingType OnigEncodingASCII;
|
172
|
-
|
173
|
-
ONIG_EXTERN OnigEncodingType
|
174
|
-
ONIG_EXTERN OnigEncodingType
|
175
|
-
ONIG_EXTERN OnigEncodingType
|
176
|
-
ONIG_EXTERN OnigEncodingType
|
177
|
-
ONIG_EXTERN OnigEncodingType
|
178
|
-
ONIG_EXTERN OnigEncodingType
|
179
|
-
ONIG_EXTERN OnigEncodingType
|
180
|
-
ONIG_EXTERN OnigEncodingType
|
181
|
-
ONIG_EXTERN OnigEncodingType
|
182
|
-
ONIG_EXTERN OnigEncodingType
|
183
|
-
ONIG_EXTERN OnigEncodingType
|
184
|
-
ONIG_EXTERN OnigEncodingType
|
185
|
-
ONIG_EXTERN OnigEncodingType
|
186
|
-
ONIG_EXTERN OnigEncodingType
|
187
|
-
ONIG_EXTERN OnigEncodingType
|
188
|
-
ONIG_EXTERN OnigEncodingType
|
189
|
-
ONIG_EXTERN OnigEncodingType
|
190
|
-
ONIG_EXTERN OnigEncodingType
|
191
|
-
ONIG_EXTERN OnigEncodingType
|
192
|
-
ONIG_EXTERN OnigEncodingType
|
193
|
-
ONIG_EXTERN OnigEncodingType
|
194
|
-
ONIG_EXTERN OnigEncodingType
|
195
|
-
ONIG_EXTERN OnigEncodingType
|
196
|
-
ONIG_EXTERN OnigEncodingType
|
197
|
-
ONIG_EXTERN OnigEncodingType
|
198
|
-
ONIG_EXTERN OnigEncodingType
|
199
|
-
ONIG_EXTERN OnigEncodingType
|
200
|
-
ONIG_EXTERN OnigEncodingType
|
201
|
-
ONIG_EXTERN OnigEncodingType
|
202
|
-
ONIG_EXTERN OnigEncodingType
|
182
|
+
typedef const OnigEncodingType* OnigEncoding;
|
183
|
+
|
184
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingASCII;
|
185
|
+
#ifndef RUBY
|
186
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_1;
|
187
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_2;
|
188
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_3;
|
189
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_4;
|
190
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_5;
|
191
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_6;
|
192
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_7;
|
193
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_8;
|
194
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_9;
|
195
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_10;
|
196
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_11;
|
197
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_13;
|
198
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_14;
|
199
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_15;
|
200
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingISO_8859_16;
|
201
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_8;
|
202
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_16BE;
|
203
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_16LE;
|
204
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_32BE;
|
205
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingUTF_32LE;
|
206
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_JP;
|
207
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_TW;
|
208
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_KR;
|
209
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingEUC_CN;
|
210
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingShift_JIS;
|
211
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_31J;
|
212
|
+
/* ONIG_EXTERN const OnigEncodingType OnigEncodingKOI8; */
|
213
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingKOI8_R;
|
214
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingKOI8_U;
|
215
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1250;
|
216
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1251;
|
217
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1252;
|
218
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1253;
|
219
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1254;
|
220
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingWindows_1257;
|
221
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingBIG5;
|
222
|
+
ONIG_EXTERN const OnigEncodingType OnigEncodingGB18030;
|
223
|
+
#endif /* RUBY */
|
203
224
|
|
204
225
|
#define ONIG_ENCODING_ASCII (&OnigEncodingASCII)
|
205
|
-
#
|
206
|
-
#define
|
207
|
-
#define
|
208
|
-
#define
|
209
|
-
#define
|
210
|
-
#define
|
211
|
-
#define
|
212
|
-
#define
|
213
|
-
#define
|
214
|
-
#define
|
215
|
-
#define
|
216
|
-
#define
|
217
|
-
#define
|
218
|
-
#define
|
219
|
-
#define
|
220
|
-
#define
|
221
|
-
#define
|
222
|
-
#define
|
223
|
-
#define
|
224
|
-
#define
|
225
|
-
#define
|
226
|
-
#define
|
227
|
-
#define
|
228
|
-
#define
|
229
|
-
#define
|
230
|
-
#define
|
231
|
-
#define
|
232
|
-
#define
|
233
|
-
#define
|
234
|
-
#define
|
235
|
-
#define
|
226
|
+
#ifndef RUBY
|
227
|
+
# define ONIG_ENCODING_ISO_8859_1 (&OnigEncodingISO_8859_1)
|
228
|
+
# define ONIG_ENCODING_ISO_8859_2 (&OnigEncodingISO_8859_2)
|
229
|
+
# define ONIG_ENCODING_ISO_8859_3 (&OnigEncodingISO_8859_3)
|
230
|
+
# define ONIG_ENCODING_ISO_8859_4 (&OnigEncodingISO_8859_4)
|
231
|
+
# define ONIG_ENCODING_ISO_8859_5 (&OnigEncodingISO_8859_5)
|
232
|
+
# define ONIG_ENCODING_ISO_8859_6 (&OnigEncodingISO_8859_6)
|
233
|
+
# define ONIG_ENCODING_ISO_8859_7 (&OnigEncodingISO_8859_7)
|
234
|
+
# define ONIG_ENCODING_ISO_8859_8 (&OnigEncodingISO_8859_8)
|
235
|
+
# define ONIG_ENCODING_ISO_8859_9 (&OnigEncodingISO_8859_9)
|
236
|
+
# define ONIG_ENCODING_ISO_8859_10 (&OnigEncodingISO_8859_10)
|
237
|
+
# define ONIG_ENCODING_ISO_8859_11 (&OnigEncodingISO_8859_11)
|
238
|
+
# define ONIG_ENCODING_ISO_8859_13 (&OnigEncodingISO_8859_13)
|
239
|
+
# define ONIG_ENCODING_ISO_8859_14 (&OnigEncodingISO_8859_14)
|
240
|
+
# define ONIG_ENCODING_ISO_8859_15 (&OnigEncodingISO_8859_15)
|
241
|
+
# define ONIG_ENCODING_ISO_8859_16 (&OnigEncodingISO_8859_16)
|
242
|
+
# define ONIG_ENCODING_UTF_8 (&OnigEncodingUTF_8)
|
243
|
+
# define ONIG_ENCODING_UTF_16BE (&OnigEncodingUTF_16BE)
|
244
|
+
# define ONIG_ENCODING_UTF_16LE (&OnigEncodingUTF_16LE)
|
245
|
+
# define ONIG_ENCODING_UTF_32BE (&OnigEncodingUTF_32BE)
|
246
|
+
# define ONIG_ENCODING_UTF_32LE (&OnigEncodingUTF_32LE)
|
247
|
+
# define ONIG_ENCODING_EUC_JP (&OnigEncodingEUC_JP)
|
248
|
+
# define ONIG_ENCODING_EUC_TW (&OnigEncodingEUC_TW)
|
249
|
+
# define ONIG_ENCODING_EUC_KR (&OnigEncodingEUC_KR)
|
250
|
+
# define ONIG_ENCODING_EUC_CN (&OnigEncodingEUC_CN)
|
251
|
+
# define ONIG_ENCODING_SHIFT_JIS (&OnigEncodingShift_JIS)
|
252
|
+
# define ONIG_ENCODING_WINDOWS_31J (&OnigEncodingWindows_31J)
|
253
|
+
/* # define ONIG_ENCODING_KOI8 (&OnigEncodingKOI8) */
|
254
|
+
# define ONIG_ENCODING_KOI8_R (&OnigEncodingKOI8_R)
|
255
|
+
# define ONIG_ENCODING_KOI8_U (&OnigEncodingKOI8_U)
|
256
|
+
# define ONIG_ENCODING_WINDOWS_1250 (&OnigEncodingWindows_1250)
|
257
|
+
# define ONIG_ENCODING_WINDOWS_1251 (&OnigEncodingWindows_1251)
|
258
|
+
# define ONIG_ENCODING_WINDOWS_1252 (&OnigEncodingWindows_1252)
|
259
|
+
# define ONIG_ENCODING_WINDOWS_1253 (&OnigEncodingWindows_1253)
|
260
|
+
# define ONIG_ENCODING_WINDOWS_1254 (&OnigEncodingWindows_1254)
|
261
|
+
# define ONIG_ENCODING_WINDOWS_1257 (&OnigEncodingWindows_1257)
|
262
|
+
# define ONIG_ENCODING_BIG5 (&OnigEncodingBIG5)
|
263
|
+
# define ONIG_ENCODING_GB18030 (&OnigEncodingGB18030)
|
264
|
+
|
265
|
+
/* old names */
|
266
|
+
# define ONIG_ENCODING_SJIS ONIG_ENCODING_SHIFT_JIS
|
267
|
+
# define ONIG_ENCODING_CP932 ONIG_ENCODING_WINDOWS_31J
|
268
|
+
# define ONIG_ENCODING_CP1250 ONIG_ENCODING_WINDOWS_1250
|
269
|
+
# define ONIG_ENCODING_CP1251 ONIG_ENCODING_WINDOWS_1251
|
270
|
+
# define ONIG_ENCODING_CP1252 ONIG_ENCODING_WINDOWS_1252
|
271
|
+
# define ONIG_ENCODING_CP1253 ONIG_ENCODING_WINDOWS_1253
|
272
|
+
# define ONIG_ENCODING_CP1254 ONIG_ENCODING_WINDOWS_1254
|
273
|
+
# define ONIG_ENCODING_CP1257 ONIG_ENCODING_WINDOWS_1257
|
274
|
+
# define ONIG_ENCODING_UTF8 ONIG_ENCODING_UTF_8
|
275
|
+
# define ONIG_ENCODING_UTF16_BE ONIG_ENCODING_UTF_16BE
|
276
|
+
# define ONIG_ENCODING_UTF16_LE ONIG_ENCODING_UTF_16LE
|
277
|
+
# define ONIG_ENCODING_UTF32_BE ONIG_ENCODING_UTF_32BE
|
278
|
+
# define ONIG_ENCODING_UTF32_LE ONIG_ENCODING_UTF_32LE
|
279
|
+
#endif /* RUBY */
|
236
280
|
|
237
281
|
#define ONIG_ENCODING_UNDEF ((OnigEncoding )0)
|
238
282
|
|
283
|
+
/* this declaration needs to be here because it is used in string.c in Ruby */
|
284
|
+
ONIG_EXTERN
|
285
|
+
int onigenc_ascii_only_case_map(OnigCaseFoldType* flagP, const OnigUChar** pp, const OnigUChar* end, OnigUChar* to, OnigUChar* to_end, const struct OnigEncodingTypeST* enc);
|
286
|
+
|
239
287
|
|
240
288
|
/* work size */
|
241
289
|
#define ONIGENC_CODE_TO_MBC_MAXLEN 7
|
@@ -264,49 +312,64 @@ ONIG_EXTERN OnigEncodingType OnigEncodingGB18030;
|
|
264
312
|
#define ONIGENC_FLAG_NONE 0U
|
265
313
|
#define ONIGENC_FLAG_UNICODE 1U
|
266
314
|
|
267
|
-
|
268
|
-
#define onig_enc_len(enc,p,end) ONIGENC_MBC_ENC_LEN(enc,p)
|
315
|
+
#define onig_enc_len(enc,p,e) ONIGENC_MBC_ENC_LEN(enc, p, e)
|
269
316
|
|
270
317
|
#define ONIGENC_IS_UNDEF(enc) ((enc) == ONIG_ENCODING_UNDEF)
|
271
318
|
#define ONIGENC_IS_SINGLEBYTE(enc) (ONIGENC_MBC_MAXLEN(enc) == 1)
|
272
|
-
#define ONIGENC_IS_MBC_HEAD(enc,p)
|
319
|
+
#define ONIGENC_IS_MBC_HEAD(enc,p,e) (ONIGENC_MBC_ENC_LEN(enc,p,e) != 1)
|
273
320
|
#define ONIGENC_IS_MBC_ASCII(p) (*(p) < 128)
|
274
321
|
#define ONIGENC_IS_CODE_ASCII(code) ((code) < 128)
|
275
322
|
#define ONIGENC_IS_MBC_WORD(enc,s,end) \
|
276
323
|
ONIGENC_IS_CODE_WORD(enc,ONIGENC_MBC_TO_CODE(enc,s,end))
|
277
324
|
#define ONIGENC_IS_MBC_ASCII_WORD(enc,s,end) \
|
278
325
|
onigenc_ascii_is_code_ctype( \
|
279
|
-
ONIGENC_MBC_TO_CODE(enc,s,end),ONIGENC_CTYPE_WORD)
|
326
|
+
ONIGENC_MBC_TO_CODE(enc,s,end),ONIGENC_CTYPE_WORD,enc)
|
280
327
|
#define ONIGENC_IS_UNICODE(enc) ((enc)->flags & ONIGENC_FLAG_UNICODE)
|
281
328
|
|
282
329
|
|
283
330
|
#define ONIGENC_NAME(enc) ((enc)->name)
|
284
331
|
|
285
332
|
#define ONIGENC_MBC_CASE_FOLD(enc,flag,pp,end,buf) \
|
286
|
-
(enc)->mbc_case_fold(flag,(const OnigUChar** )pp,end,buf)
|
333
|
+
(enc)->mbc_case_fold(flag,(const OnigUChar** )pp,end,buf,enc)
|
287
334
|
#define ONIGENC_IS_ALLOWED_REVERSE_MATCH(enc,s,end) \
|
288
|
-
(enc)->is_allowed_reverse_match(s,end)
|
289
|
-
#define ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc,start,s) \
|
290
|
-
(enc)->left_adjust_char_head(start, s)
|
335
|
+
(enc)->is_allowed_reverse_match(s,end,enc)
|
336
|
+
#define ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc,start,s,end) \
|
337
|
+
(enc)->left_adjust_char_head(start, s, end, enc)
|
291
338
|
#define ONIGENC_APPLY_ALL_CASE_FOLD(enc,case_fold_flag,f,arg) \
|
292
|
-
(enc)->apply_all_case_fold(case_fold_flag,f,arg)
|
339
|
+
(enc)->apply_all_case_fold(case_fold_flag,f,arg,enc)
|
293
340
|
#define ONIGENC_GET_CASE_FOLD_CODES_BY_STR(enc,case_fold_flag,p,end,acs) \
|
294
|
-
(enc)->get_case_fold_codes_by_str(case_fold_flag,p,end,acs)
|
295
|
-
#define ONIGENC_STEP_BACK(enc,start,s,n) \
|
296
|
-
onigenc_step_back((enc),(start),(s),(n))
|
341
|
+
(enc)->get_case_fold_codes_by_str(case_fold_flag,p,end,acs,enc)
|
342
|
+
#define ONIGENC_STEP_BACK(enc,start,s,end,n) \
|
343
|
+
onigenc_step_back((enc),(start),(s),(end),(n))
|
344
|
+
|
345
|
+
#define ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) (n)
|
346
|
+
#define ONIGENC_MBCLEN_CHARFOUND_P(r) (0 < (r))
|
347
|
+
#define ONIGENC_MBCLEN_CHARFOUND_LEN(r) (r)
|
348
|
+
|
349
|
+
#define ONIGENC_CONSTRUCT_MBCLEN_INVALID() (-1)
|
350
|
+
#define ONIGENC_MBCLEN_INVALID_P(r) ((r) == -1)
|
351
|
+
|
352
|
+
#define ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n) (-1-(n))
|
353
|
+
#define ONIGENC_MBCLEN_NEEDMORE_P(r) ((r) < -1)
|
354
|
+
#define ONIGENC_MBCLEN_NEEDMORE_LEN(r) (-1-(r))
|
355
|
+
|
356
|
+
#define ONIGENC_PRECISE_MBC_ENC_LEN(enc,p,e) (enc)->precise_mbc_enc_len(p,e,enc)
|
297
357
|
|
298
|
-
|
358
|
+
ONIG_EXTERN
|
359
|
+
int onigenc_mbclen_approximate(const OnigUChar* p,const OnigUChar* e, const struct OnigEncodingTypeST* enc);
|
360
|
+
|
361
|
+
#define ONIGENC_MBC_ENC_LEN(enc,p,e) onigenc_mbclen_approximate(p,e,enc)
|
299
362
|
#define ONIGENC_MBC_MAXLEN(enc) ((enc)->max_enc_len)
|
300
363
|
#define ONIGENC_MBC_MAXLEN_DIST(enc) ONIGENC_MBC_MAXLEN(enc)
|
301
364
|
#define ONIGENC_MBC_MINLEN(enc) ((enc)->min_enc_len)
|
302
|
-
#define ONIGENC_IS_MBC_NEWLINE(enc,p,end) (enc)->is_mbc_newline((p),(end))
|
303
|
-
#define ONIGENC_MBC_TO_CODE(enc,p,end) (enc)->mbc_to_code((p),(end))
|
304
|
-
#define ONIGENC_CODE_TO_MBCLEN(enc,code) (enc)->code_to_mbclen(code)
|
305
|
-
#define ONIGENC_CODE_TO_MBC(enc,code,buf) (enc)->code_to_mbc(code,buf)
|
365
|
+
#define ONIGENC_IS_MBC_NEWLINE(enc,p,end) (enc)->is_mbc_newline((p),(end),enc)
|
366
|
+
#define ONIGENC_MBC_TO_CODE(enc,p,end) (enc)->mbc_to_code((p),(end),enc)
|
367
|
+
#define ONIGENC_CODE_TO_MBCLEN(enc,code) (enc)->code_to_mbclen(code,enc)
|
368
|
+
#define ONIGENC_CODE_TO_MBC(enc,code,buf) (enc)->code_to_mbc(code,buf,enc)
|
306
369
|
#define ONIGENC_PROPERTY_NAME_TO_CTYPE(enc,p,end) \
|
307
370
|
(enc)->property_name_to_ctype(enc,p,end)
|
308
371
|
|
309
|
-
#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype) (enc)->is_code_ctype(code,ctype)
|
372
|
+
#define ONIGENC_IS_CODE_CTYPE(enc,code,ctype) (enc)->is_code_ctype(code,ctype,enc)
|
310
373
|
|
311
374
|
#define ONIGENC_IS_CODE_NEWLINE(enc,code) \
|
312
375
|
ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_NEWLINE)
|
@@ -338,35 +401,33 @@ ONIG_EXTERN OnigEncodingType OnigEncodingGB18030;
|
|
338
401
|
ONIGENC_IS_CODE_CTYPE(enc,code,ONIGENC_CTYPE_WORD)
|
339
402
|
|
340
403
|
#define ONIGENC_GET_CTYPE_CODE_RANGE(enc,ctype,sbout,ranges) \
|
341
|
-
(enc)->get_ctype_code_range(ctype,sbout,ranges)
|
404
|
+
(enc)->get_ctype_code_range(ctype,sbout,ranges,enc)
|
342
405
|
|
343
406
|
ONIG_EXTERN
|
344
|
-
OnigUChar* onigenc_step_back
|
407
|
+
OnigUChar* onigenc_step_back(OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar* end, int n);
|
345
408
|
|
346
409
|
|
347
410
|
/* encoding API */
|
348
411
|
ONIG_EXTERN
|
349
|
-
int onigenc_init
|
350
|
-
ONIG_EXTERN
|
351
|
-
int onigenc_set_default_encoding P_((OnigEncoding enc));
|
412
|
+
int onigenc_init(void);
|
352
413
|
ONIG_EXTERN
|
353
|
-
OnigEncoding
|
414
|
+
int onigenc_set_default_encoding(OnigEncoding enc);
|
354
415
|
ONIG_EXTERN
|
355
|
-
|
416
|
+
OnigEncoding onigenc_get_default_encoding(void);
|
356
417
|
ONIG_EXTERN
|
357
|
-
OnigUChar* onigenc_get_right_adjust_char_head_with_prev
|
418
|
+
OnigUChar* onigenc_get_right_adjust_char_head_with_prev(OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar* end, const OnigUChar** prev);
|
358
419
|
ONIG_EXTERN
|
359
|
-
OnigUChar* onigenc_get_prev_char_head
|
420
|
+
OnigUChar* onigenc_get_prev_char_head(OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar* end);
|
360
421
|
ONIG_EXTERN
|
361
|
-
OnigUChar* onigenc_get_left_adjust_char_head
|
422
|
+
OnigUChar* onigenc_get_left_adjust_char_head(OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar* end);
|
362
423
|
ONIG_EXTERN
|
363
|
-
OnigUChar* onigenc_get_right_adjust_char_head
|
424
|
+
OnigUChar* onigenc_get_right_adjust_char_head(OnigEncoding enc, const OnigUChar* start, const OnigUChar* s, const OnigUChar* end);
|
364
425
|
ONIG_EXTERN
|
365
|
-
int onigenc_strlen
|
426
|
+
int onigenc_strlen(OnigEncoding enc, const OnigUChar* p, const OnigUChar* end);
|
366
427
|
ONIG_EXTERN
|
367
|
-
int onigenc_strlen_null
|
428
|
+
int onigenc_strlen_null(OnigEncoding enc, const OnigUChar* p);
|
368
429
|
ONIG_EXTERN
|
369
|
-
int onigenc_str_bytelen_null
|
430
|
+
int onigenc_str_bytelen_null(OnigEncoding enc, const OnigUChar* p);
|
370
431
|
|
371
432
|
|
372
433
|
|
@@ -374,8 +435,8 @@ int onigenc_str_bytelen_null P_((OnigEncoding enc, const OnigUChar* p));
|
|
374
435
|
|
375
436
|
/* config parameters */
|
376
437
|
#define ONIG_NREGION 10
|
377
|
-
#define ONIG_MAX_BACKREF_NUM 1000
|
378
438
|
#define ONIG_MAX_CAPTURE_GROUP_NUM 32767
|
439
|
+
#define ONIG_MAX_BACKREF_NUM 1000
|
379
440
|
#define ONIG_MAX_REPEAT_NUM 100000
|
380
441
|
#define ONIG_MAX_MULTI_BYTE_RANGES_NUM 10000
|
381
442
|
/* constants */
|
@@ -400,16 +461,15 @@ typedef unsigned int OnigOptionType;
|
|
400
461
|
/* options (search time) */
|
401
462
|
#define ONIG_OPTION_NOTBOL (ONIG_OPTION_CAPTURE_GROUP << 1)
|
402
463
|
#define ONIG_OPTION_NOTEOL (ONIG_OPTION_NOTBOL << 1)
|
403
|
-
#define
|
464
|
+
#define ONIG_OPTION_NOTBOS (ONIG_OPTION_NOTEOL << 1)
|
465
|
+
#define ONIG_OPTION_NOTEOS (ONIG_OPTION_NOTBOS << 1)
|
404
466
|
/* options (ctype range) */
|
405
|
-
#define ONIG_OPTION_ASCII_RANGE (
|
467
|
+
#define ONIG_OPTION_ASCII_RANGE (ONIG_OPTION_NOTEOS << 1)
|
406
468
|
#define ONIG_OPTION_POSIX_BRACKET_ALL_RANGE (ONIG_OPTION_ASCII_RANGE << 1)
|
407
469
|
#define ONIG_OPTION_WORD_BOUND_ALL_RANGE (ONIG_OPTION_POSIX_BRACKET_ALL_RANGE << 1)
|
408
470
|
/* options (newline) */
|
409
471
|
#define ONIG_OPTION_NEWLINE_CRLF (ONIG_OPTION_WORD_BOUND_ALL_RANGE << 1)
|
410
|
-
#define
|
411
|
-
#define ONIG_OPTION_NOTEOS (ONIG_OPTION_NOTBOS << 1)
|
412
|
-
#define ONIG_OPTION_MAXBIT ONIG_OPTION_NOTEOS /* limit */
|
472
|
+
#define ONIG_OPTION_MAXBIT ONIG_OPTION_NEWLINE_CRLF /* limit */
|
413
473
|
|
414
474
|
#define ONIG_OPTION_ON(options,regopt) ((options) |= (regopt))
|
415
475
|
#define ONIG_OPTION_OFF(options,regopt) ((options) &= ~(regopt))
|
@@ -424,18 +484,18 @@ typedef struct {
|
|
424
484
|
OnigMetaCharTableType meta_char_table;
|
425
485
|
} OnigSyntaxType;
|
426
486
|
|
427
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxASIS;
|
428
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixBasic;
|
429
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixExtended;
|
430
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxEmacs;
|
431
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxGrep;
|
432
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxGnuRegex;
|
433
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxJava;
|
434
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl58;
|
435
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl58_NG;
|
436
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl;
|
437
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby;
|
438
|
-
ONIG_EXTERN OnigSyntaxType OnigSyntaxPython;
|
487
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxASIS;
|
488
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPosixBasic;
|
489
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPosixExtended;
|
490
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxEmacs;
|
491
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxGrep;
|
492
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxGnuRegex;
|
493
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxJava;
|
494
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl58;
|
495
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl58_NG;
|
496
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl;
|
497
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxRuby;
|
498
|
+
ONIG_EXTERN const OnigSyntaxType OnigSyntaxPython;
|
439
499
|
|
440
500
|
/* predefined syntaxes (see regsyntax.c) */
|
441
501
|
#define ONIG_SYNTAX_ASIS (&OnigSyntaxASIS)
|
@@ -452,7 +512,7 @@ ONIG_EXTERN OnigSyntaxType OnigSyntaxPython;
|
|
452
512
|
#define ONIG_SYNTAX_PYTHON (&OnigSyntaxPython)
|
453
513
|
|
454
514
|
/* default syntax */
|
455
|
-
ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
515
|
+
ONIG_EXTERN const OnigSyntaxType* OnigDefaultSyntax;
|
456
516
|
#define ONIG_SYNTAX_DEFAULT OnigDefaultSyntax
|
457
517
|
|
458
518
|
/* syntax (operators) */
|
@@ -487,7 +547,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
487
547
|
#define ONIG_SYN_OP_ESC_OCTAL3 (1U<<28) /* \OOO */
|
488
548
|
#define ONIG_SYN_OP_ESC_X_HEX2 (1U<<29) /* \xHH */
|
489
549
|
#define ONIG_SYN_OP_ESC_X_BRACE_HEX8 (1U<<30) /* \x{7HHHHHHH} */
|
490
|
-
#define ONIG_SYN_OP_ESC_O_BRACE_OCTAL (1U<<31) /* \o{OOO} */
|
550
|
+
#define ONIG_SYN_OP_ESC_O_BRACE_OCTAL (1U<<31) /* \o{OOO} */
|
491
551
|
|
492
552
|
#define ONIG_SYN_OP2_ESC_CAPITAL_Q_QUOTE (1U<<0) /* \Q...\E */
|
493
553
|
#define ONIG_SYN_OP2_QMARK_GROUP_EFFECT (1U<<1) /* (?...) */
|
@@ -511,7 +571,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
511
571
|
#define ONIG_SYN_OP2_ESC_H_XDIGIT (1U<<19) /* \h, \H */
|
512
572
|
#define ONIG_SYN_OP2_INEFFECTIVE_ESCAPE (1U<<20) /* \ */
|
513
573
|
#define ONIG_SYN_OP2_ESC_CAPITAL_R_LINEBREAK (1U<<21) /* \R as (?>\x0D\x0A|[\x0A-\x0D\x{85}\x{2028}\x{2029}]) */
|
514
|
-
#define ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTER (1U<<22) /* \X
|
574
|
+
#define ONIG_SYN_OP2_ESC_CAPITAL_X_EXTENDED_GRAPHEME_CLUSTER (1U<<22) /* \X */
|
515
575
|
#define ONIG_SYN_OP2_ESC_V_VERTICAL_WHITESPACE (1U<<23) /* \v, \V -- Perl */ /* NOTIMPL */
|
516
576
|
#define ONIG_SYN_OP2_ESC_H_HORIZONTAL_WHITESPACE (1U<<24) /* \h, \H -- Perl */ /* NOTIMPL */
|
517
577
|
#define ONIG_SYN_OP2_ESC_CAPITAL_K_KEEP (1U<<25) /* \K */
|
@@ -535,6 +595,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
535
595
|
#define ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME (1U<<8) /* (?<x>)(?<x>) */
|
536
596
|
#define ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY (1U<<9) /* a{n}?=(?:a{n})? */
|
537
597
|
#define ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME_CALL (1U<<10) /* (?<x>)(?<x>)(?&x) */
|
598
|
+
#define ONIG_SYN_USE_LEFT_MOST_NAMED_GROUP (1U<<11) /* (?<x>)(?<x>)\k<x> */
|
538
599
|
|
539
600
|
/* syntax (behavior) in char class [...] */
|
540
601
|
#define ONIG_SYN_NOT_NEWLINE_IN_NEGATIVE_CC (1U<<20) /* [^...] */
|
@@ -544,6 +605,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
544
605
|
/* syntax (behavior) warning */
|
545
606
|
#define ONIG_SYN_WARN_CC_OP_NOT_ESCAPED (1U<<24) /* [,-,] */
|
546
607
|
#define ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT (1U<<25) /* (?:a*)+ */
|
608
|
+
#define ONIG_SYN_WARN_CC_DUP (1U<<26) /* [aa] */
|
547
609
|
|
548
610
|
/* meta character specifiers (onig_set_meta_char()) */
|
549
611
|
#define ONIG_META_CHAR_ESCAPE 0
|
@@ -570,6 +632,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
570
632
|
#define ONIGERR_UNDEFINED_BYTECODE -13
|
571
633
|
#define ONIGERR_UNEXPECTED_BYTECODE -14
|
572
634
|
#define ONIGERR_MATCH_STACK_LIMIT_OVER -15
|
635
|
+
#define ONIGERR_PARSE_DEPTH_LIMIT_OVER -16
|
573
636
|
#define ONIGERR_DEFAULT_ENCODING_IS_NOT_SET -21
|
574
637
|
#define ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR -22
|
575
638
|
/* general error */
|
@@ -609,7 +672,8 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
609
672
|
#define ONIGERR_TOO_BIG_BACKREF_NUMBER -207
|
610
673
|
#define ONIGERR_INVALID_BACKREF -208
|
611
674
|
#define ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED -209
|
612
|
-
#define
|
675
|
+
#define ONIGERR_TOO_MANY_CAPTURE_GROUPS -210
|
676
|
+
#define ONIGERR_TOO_SHORT_DIGITS -211
|
613
677
|
#define ONIGERR_TOO_LONG_WIDE_CHAR_VALUE -212
|
614
678
|
#define ONIGERR_EMPTY_GROUP_NAME -214
|
615
679
|
#define ONIGERR_INVALID_GROUP_NAME -215
|
@@ -621,7 +685,6 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
621
685
|
#define ONIGERR_NEVER_ENDING_RECURSION -221
|
622
686
|
#define ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY -222
|
623
687
|
#define ONIGERR_INVALID_CHAR_PROPERTY_NAME -223
|
624
|
-
#define ONIGERR_TOO_MANY_CAPTURE_GROUPS -224
|
625
688
|
#define ONIGERR_INVALID_CODE_POINT_VALUE -400
|
626
689
|
#define ONIGERR_INVALID_WIDE_CHAR_VALUE -400
|
627
690
|
#define ONIGERR_TOO_BIG_WIDE_CHAR_VALUE -401
|
@@ -629,7 +692,7 @@ ONIG_EXTERN OnigSyntaxType* OnigDefaultSyntax;
|
|
629
692
|
#define ONIGERR_INVALID_COMBINATION_OF_OPTIONS -403
|
630
693
|
|
631
694
|
/* errors related to thread */
|
632
|
-
#define ONIGERR_OVER_THREAD_PASS_LIMIT_COUNT -1001
|
695
|
+
/* #define ONIGERR_OVER_THREAD_PASS_LIMIT_COUNT -1001 */
|
633
696
|
|
634
697
|
|
635
698
|
/* must be smaller than BIT_STATUS_BITS_NUM (unsigned int * 8) */
|
@@ -678,28 +741,18 @@ typedef struct {
|
|
678
741
|
int upper;
|
679
742
|
} OnigRepeatRange;
|
680
743
|
|
681
|
-
typedef void (*OnigWarnFunc)
|
682
|
-
extern void onig_null_warn
|
744
|
+
typedef void (*OnigWarnFunc)(const char* s);
|
745
|
+
extern void onig_null_warn(const char* s);
|
683
746
|
#define ONIG_NULL_WARN onig_null_warn
|
684
747
|
|
685
748
|
#define ONIG_CHAR_TABLE_SIZE 256
|
686
749
|
|
687
|
-
/* regex_t state */
|
688
|
-
#define ONIG_STATE_NORMAL 0
|
689
|
-
#define ONIG_STATE_SEARCHING 1
|
690
|
-
#define ONIG_STATE_COMPILING -1
|
691
|
-
#define ONIG_STATE_MODIFY -2
|
692
|
-
|
693
|
-
#define ONIG_STATE(reg) \
|
694
|
-
((reg)->state > 0 ? ONIG_STATE_SEARCHING : (reg)->state)
|
695
|
-
|
696
750
|
typedef struct re_pattern_buffer {
|
697
751
|
/* common members of BBuf(bytes-buffer) */
|
698
752
|
unsigned char* p; /* compiled pattern */
|
699
753
|
unsigned int used; /* used space for p */
|
700
754
|
unsigned int alloc; /* allocated space for p */
|
701
755
|
|
702
|
-
int state; /* normal, searching, compiling */
|
703
756
|
int num_mem; /* used memory(...) num counted from 1 */
|
704
757
|
int num_repeat; /* OP_REPEAT/OP_REPEAT_NG id-counter */
|
705
758
|
int num_null_check; /* OP_NULL_CHECK_START/END id counter */
|
@@ -710,13 +763,15 @@ typedef struct re_pattern_buffer {
|
|
710
763
|
unsigned int bt_mem_end; /* need backtrack flag */
|
711
764
|
int stack_pop_level;
|
712
765
|
int repeat_range_alloc;
|
766
|
+
|
767
|
+
OnigOptionType options;
|
768
|
+
|
713
769
|
OnigRepeatRange* repeat_range;
|
714
770
|
|
715
771
|
OnigEncoding enc;
|
716
|
-
|
717
|
-
OnigSyntaxType* syntax;
|
718
|
-
OnigCaseFoldType case_fold_flag;
|
772
|
+
const OnigSyntaxType* syntax;
|
719
773
|
void* name_table;
|
774
|
+
OnigCaseFoldType case_fold_flag;
|
720
775
|
|
721
776
|
/* optimization info (string search, char-map and anchors) */
|
722
777
|
int optimize; /* optimize flag */
|
@@ -740,7 +795,7 @@ typedef struct re_pattern_buffer {
|
|
740
795
|
typedef OnigRegexType* OnigRegex;
|
741
796
|
|
742
797
|
#ifndef ONIG_ESCAPE_REGEX_T_COLLISION
|
743
|
-
|
798
|
+
typedef OnigRegexType regex_t;
|
744
799
|
#endif
|
745
800
|
|
746
801
|
|
@@ -748,123 +803,132 @@ typedef struct {
|
|
748
803
|
int num_of_elements;
|
749
804
|
OnigEncoding pattern_enc;
|
750
805
|
OnigEncoding target_enc;
|
751
|
-
OnigSyntaxType* syntax;
|
806
|
+
const OnigSyntaxType* syntax;
|
752
807
|
OnigOptionType option;
|
753
808
|
OnigCaseFoldType case_fold_flag;
|
754
809
|
} OnigCompileInfo;
|
755
810
|
|
756
811
|
/* Oniguruma Native API */
|
757
812
|
ONIG_EXTERN
|
758
|
-
int
|
813
|
+
int onig_initialize(OnigEncoding encodings[], int n);
|
814
|
+
ONIG_EXTERN
|
815
|
+
int onig_init(void);
|
759
816
|
ONIG_EXTERN
|
760
|
-
int onig_error_code_to_str
|
817
|
+
int onig_error_code_to_str(OnigUChar* s, OnigPosition err_code, ...);
|
761
818
|
ONIG_EXTERN
|
762
|
-
void onig_set_warn_func
|
819
|
+
void onig_set_warn_func(OnigWarnFunc f);
|
763
820
|
ONIG_EXTERN
|
764
|
-
void onig_set_verb_warn_func
|
821
|
+
void onig_set_verb_warn_func(OnigWarnFunc f);
|
765
822
|
ONIG_EXTERN
|
766
|
-
int onig_new
|
823
|
+
int onig_new(OnigRegex*, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, const OnigSyntaxType* syntax, OnigErrorInfo* einfo);
|
767
824
|
ONIG_EXTERN
|
768
|
-
int onig_reg_init
|
825
|
+
int onig_reg_init(OnigRegex reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, const OnigSyntaxType* syntax);
|
769
826
|
ONIG_EXTERN
|
770
|
-
int onig_new_without_alloc
|
827
|
+
int onig_new_without_alloc(OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo);
|
771
828
|
ONIG_EXTERN
|
772
|
-
int onig_new_deluxe
|
829
|
+
int onig_new_deluxe(OnigRegex* reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo);
|
773
830
|
ONIG_EXTERN
|
774
|
-
void onig_free
|
831
|
+
void onig_free(OnigRegex);
|
775
832
|
ONIG_EXTERN
|
776
|
-
void onig_free_body
|
833
|
+
void onig_free_body(OnigRegex);
|
777
834
|
ONIG_EXTERN
|
778
|
-
|
835
|
+
OnigPosition onig_scan(OnigRegex reg, const OnigUChar* str, const OnigUChar* end, OnigRegion* region, OnigOptionType option, int (*scan_callback)(OnigPosition, OnigPosition, OnigRegion*, void*), void* callback_arg);
|
779
836
|
ONIG_EXTERN
|
780
|
-
|
837
|
+
OnigPosition onig_search(OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option);
|
781
838
|
ONIG_EXTERN
|
782
|
-
OnigPosition
|
839
|
+
OnigPosition onig_search_gpos(OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* global_pos, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option);
|
783
840
|
ONIG_EXTERN
|
784
|
-
OnigPosition
|
841
|
+
OnigPosition onig_match(OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option);
|
785
842
|
ONIG_EXTERN
|
786
|
-
|
843
|
+
OnigRegion* onig_region_new(void);
|
787
844
|
ONIG_EXTERN
|
788
|
-
OnigRegion*
|
845
|
+
void onig_region_init(OnigRegion* region);
|
789
846
|
ONIG_EXTERN
|
790
|
-
void
|
847
|
+
void onig_region_free(OnigRegion* region, int free_self);
|
791
848
|
ONIG_EXTERN
|
792
|
-
void
|
849
|
+
void onig_region_copy(OnigRegion* to, const OnigRegion* from);
|
793
850
|
ONIG_EXTERN
|
794
|
-
void
|
851
|
+
void onig_region_clear(OnigRegion* region);
|
795
852
|
ONIG_EXTERN
|
796
|
-
|
853
|
+
int onig_region_resize(OnigRegion* region, int n);
|
797
854
|
ONIG_EXTERN
|
798
|
-
int
|
855
|
+
int onig_region_set(OnigRegion* region, int at, int beg, int end);
|
799
856
|
ONIG_EXTERN
|
800
|
-
int
|
857
|
+
int onig_name_to_group_numbers(OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end, int** nums);
|
801
858
|
ONIG_EXTERN
|
802
|
-
int
|
859
|
+
int onig_name_to_backref_number(OnigRegex reg, const OnigUChar* name, const OnigUChar* name_end, const OnigRegion *region);
|
803
860
|
ONIG_EXTERN
|
804
|
-
int
|
861
|
+
int onig_foreach_name(OnigRegex reg, int (*func)(const OnigUChar*, const OnigUChar*,int,int*,OnigRegex,void*), void* arg);
|
805
862
|
ONIG_EXTERN
|
806
|
-
int
|
863
|
+
int onig_number_of_names(const OnigRegexType *reg);
|
807
864
|
ONIG_EXTERN
|
808
|
-
int
|
865
|
+
int onig_number_of_captures(const OnigRegexType *reg);
|
809
866
|
ONIG_EXTERN
|
810
|
-
int
|
867
|
+
int onig_number_of_capture_histories(const OnigRegexType *reg);
|
811
868
|
ONIG_EXTERN
|
812
|
-
|
869
|
+
OnigCaptureTreeNode* onig_get_capture_tree(OnigRegion* region);
|
813
870
|
ONIG_EXTERN
|
814
|
-
|
871
|
+
int onig_capture_tree_traverse(OnigRegion* region, int at, int(*callback_func)(int,OnigPosition,OnigPosition,int,int,void*), void* arg);
|
815
872
|
ONIG_EXTERN
|
816
|
-
int
|
873
|
+
int onig_noname_group_capture_is_active(const OnigRegexType *reg);
|
817
874
|
ONIG_EXTERN
|
818
|
-
|
875
|
+
OnigEncoding onig_get_encoding(const OnigRegexType *reg);
|
819
876
|
ONIG_EXTERN
|
820
|
-
|
877
|
+
OnigOptionType onig_get_options(const OnigRegexType *reg);
|
821
878
|
ONIG_EXTERN
|
822
|
-
|
879
|
+
OnigCaseFoldType onig_get_case_fold_flag(const OnigRegexType *reg);
|
823
880
|
ONIG_EXTERN
|
824
|
-
|
881
|
+
const OnigSyntaxType* onig_get_syntax(const OnigRegexType *reg);
|
825
882
|
ONIG_EXTERN
|
826
|
-
OnigSyntaxType*
|
883
|
+
int onig_set_default_syntax(const OnigSyntaxType* syntax);
|
827
884
|
ONIG_EXTERN
|
828
|
-
|
885
|
+
void onig_copy_syntax(OnigSyntaxType* to, const OnigSyntaxType* from);
|
829
886
|
ONIG_EXTERN
|
830
|
-
|
887
|
+
unsigned int onig_get_syntax_op(const OnigSyntaxType* syntax);
|
831
888
|
ONIG_EXTERN
|
832
|
-
unsigned int
|
889
|
+
unsigned int onig_get_syntax_op2(const OnigSyntaxType* syntax);
|
833
890
|
ONIG_EXTERN
|
834
|
-
unsigned int
|
891
|
+
unsigned int onig_get_syntax_behavior(const OnigSyntaxType* syntax);
|
835
892
|
ONIG_EXTERN
|
836
|
-
|
893
|
+
OnigOptionType onig_get_syntax_options(const OnigSyntaxType* syntax);
|
837
894
|
ONIG_EXTERN
|
838
|
-
|
895
|
+
void onig_set_syntax_op(OnigSyntaxType* syntax, unsigned int op);
|
839
896
|
ONIG_EXTERN
|
840
|
-
void
|
897
|
+
void onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2);
|
841
898
|
ONIG_EXTERN
|
842
|
-
void
|
899
|
+
void onig_set_syntax_behavior(OnigSyntaxType* syntax, unsigned int behavior);
|
843
900
|
ONIG_EXTERN
|
844
|
-
void
|
901
|
+
void onig_set_syntax_options(OnigSyntaxType* syntax, OnigOptionType options);
|
845
902
|
ONIG_EXTERN
|
846
|
-
|
903
|
+
int onig_set_meta_char(OnigSyntaxType* syntax, unsigned int what, OnigCodePoint code);
|
847
904
|
ONIG_EXTERN
|
848
|
-
|
905
|
+
void onig_copy_encoding(OnigEncodingType *to, OnigEncoding from);
|
849
906
|
ONIG_EXTERN
|
850
|
-
|
907
|
+
OnigCaseFoldType onig_get_default_case_fold_flag(void);
|
851
908
|
ONIG_EXTERN
|
852
|
-
OnigCaseFoldType
|
909
|
+
int onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag);
|
853
910
|
ONIG_EXTERN
|
854
|
-
int
|
911
|
+
unsigned int onig_get_match_stack_limit_size(void);
|
855
912
|
ONIG_EXTERN
|
856
|
-
unsigned int
|
913
|
+
int onig_set_match_stack_limit_size(unsigned int size);
|
857
914
|
ONIG_EXTERN
|
858
|
-
|
915
|
+
unsigned int onig_get_parse_depth_limit(void);
|
859
916
|
ONIG_EXTERN
|
860
|
-
int
|
917
|
+
int onig_set_parse_depth_limit(unsigned int depth);
|
861
918
|
ONIG_EXTERN
|
862
|
-
|
919
|
+
int onig_end(void);
|
863
920
|
ONIG_EXTERN
|
864
|
-
const char*
|
921
|
+
const char* onig_version(void);
|
922
|
+
ONIG_EXTERN
|
923
|
+
const char* onig_copyright(void);
|
924
|
+
|
925
|
+
RUBY_SYMBOL_EXPORT_END
|
865
926
|
|
866
927
|
#ifdef __cplusplus
|
928
|
+
# if 0
|
929
|
+
{ /* satisfy cc-mode */
|
930
|
+
# endif
|
867
931
|
}
|
868
932
|
#endif
|
869
933
|
|
870
|
-
#endif /*
|
934
|
+
#endif /* ONIGMO_H */
|