rroonga 6.0.7-x64-mingw32 → 6.0.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/cross-compile.md +24 -23
- data/doc/text/news.md +10 -0
- data/ext/groonga/rb-grn-database.c +33 -0
- data/ext/groonga/rb-grn-id.c +19 -0
- data/ext/groonga/rb-grn-table.c +3 -1
- data/ext/groonga/rb-grn.h +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/rroonga-build.rb +3 -3
- data/test/test-database.rb +21 -1
- data/test/test-id.rb +16 -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/libonig-5.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/pcre-config +133 -0
- 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/db.h +22 -0
- data/vendor/local/include/groonga/groonga/groonga.h +21 -1
- data/vendor/local/include/groonga/groonga/id.h +1 -0
- data/vendor/local/include/pcre.h +677 -0
- data/vendor/local/include/pcre_scanner.h +172 -0
- data/vendor/local/include/pcre_stringpiece.h +180 -0
- data/vendor/local/include/pcrecpp.h +710 -0
- data/vendor/local/include/pcrecpparg.h +174 -0
- data/vendor/local/include/pcreposix.h +146 -0
- 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/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/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/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/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/sharding/logical_table_remove.rb +253 -23
- 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/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- 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/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/scripts/ruby/context.rb +19 -0
- data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +12 -4
- data/vendor/local/lib/groonga/scripts/ruby/database.rb +36 -18
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +13 -10
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- 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/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libpcre.a +0 -0
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcre.la +41 -0
- data/vendor/local/lib/libpcrecpp.a +0 -0
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.la +41 -0
- data/vendor/local/lib/libpcreposix.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.la +41 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/lib/pkgconfig/libpcre.pc +13 -0
- data/vendor/local/lib/pkgconfig/libpcrecpp.pc +12 -0
- data/vendor/local/lib/pkgconfig/libpcreposix.pc +13 -0
- 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/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- 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 +3 -3
- 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 +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +24 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +156 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_acquire.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_release.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +86 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_list.txt +23 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_copy.txt +64 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +88 -45
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +15 -14
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/limitations.html +28 -9
- data/vendor/local/share/doc/groonga/en/html/news.html +196 -61
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/5.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +15 -14
- data/vendor/local/share/doc/groonga/en/html/reference/alias.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +15 -14
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
- 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 +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +98 -8
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +32 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +200 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +52 -52
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +41 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +41 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +43 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/record_number.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +41 -34
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- 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 +3 -3
- 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 +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +24 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +156 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_acquire.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_release.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +86 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_list.txt +23 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_copy.txt +64 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +88 -45
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +15 -14
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -8
- data/vendor/local/share/doc/groonga/ja/html/news.html +185 -61
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +15 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +15 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
- 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 +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +88 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +103 -103
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +201 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +41 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +41 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +43 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/record_number.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +33 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/pcre/AUTHORS +45 -0
- data/vendor/local/share/doc/pcre/COPYING +5 -0
- data/vendor/local/share/doc/pcre/ChangeLog +6010 -0
- data/vendor/local/share/doc/pcre/LICENCE +93 -0
- data/vendor/local/share/doc/pcre/NEWS +725 -0
- data/vendor/local/share/doc/pcre/README +1002 -0
- data/vendor/local/share/doc/pcre/html/NON-AUTOTOOLS-BUILD.txt +772 -0
- data/vendor/local/share/doc/pcre/html/README.txt +1002 -0
- data/vendor/local/share/doc/pcre/html/index.html +185 -0
- data/vendor/local/share/doc/pcre/html/pcre-config.html +109 -0
- data/vendor/local/share/doc/pcre/html/pcre.html +224 -0
- data/vendor/local/share/doc/pcre/html/pcre16.html +384 -0
- data/vendor/local/share/doc/pcre/html/pcre32.html +382 -0
- data/vendor/local/share/doc/pcre/html/pcre_assign_jit_stack.html +76 -0
- data/vendor/local/share/doc/pcre/html/pcre_compile.html +111 -0
- data/vendor/local/share/doc/pcre/html/pcre_compile2.html +115 -0
- data/vendor/local/share/doc/pcre/html/pcre_config.html +94 -0
- data/vendor/local/share/doc/pcre/html/pcre_copy_named_substring.html +65 -0
- data/vendor/local/share/doc/pcre/html/pcre_copy_substring.html +61 -0
- data/vendor/local/share/doc/pcre/html/pcre_dfa_exec.html +129 -0
- data/vendor/local/share/doc/pcre/html/pcre_exec.html +111 -0
- data/vendor/local/share/doc/pcre/html/pcre_free_study.html +46 -0
- data/vendor/local/share/doc/pcre/html/pcre_free_substring.html +46 -0
- data/vendor/local/share/doc/pcre/html/pcre_free_substring_list.html +46 -0
- data/vendor/local/share/doc/pcre/html/pcre_fullinfo.html +118 -0
- data/vendor/local/share/doc/pcre/html/pcre_get_named_substring.html +68 -0
- data/vendor/local/share/doc/pcre/html/pcre_get_stringnumber.html +57 -0
- data/vendor/local/share/doc/pcre/html/pcre_get_stringtable_entries.html +60 -0
- data/vendor/local/share/doc/pcre/html/pcre_get_substring.html +64 -0
- data/vendor/local/share/doc/pcre/html/pcre_get_substring_list.html +61 -0
- data/vendor/local/share/doc/pcre/html/pcre_jit_exec.html +108 -0
- data/vendor/local/share/doc/pcre/html/pcre_jit_stack_alloc.html +55 -0
- data/vendor/local/share/doc/pcre/html/pcre_jit_stack_free.html +48 -0
- data/vendor/local/share/doc/pcre/html/pcre_maketables.html +48 -0
- data/vendor/local/share/doc/pcre/html/pcre_pattern_to_host_byte_order.html +58 -0
- data/vendor/local/share/doc/pcre/html/pcre_refcount.html +51 -0
- data/vendor/local/share/doc/pcre/html/pcre_study.html +68 -0
- data/vendor/local/share/doc/pcre/html/pcre_utf16_to_host_byte_order.html +57 -0
- data/vendor/local/share/doc/pcre/html/pcre_utf32_to_host_byte_order.html +57 -0
- data/vendor/local/share/doc/pcre/html/pcre_version.html +46 -0
- data/vendor/local/share/doc/pcre/html/pcreapi.html +2921 -0
- data/vendor/local/share/doc/pcre/html/pcrebuild.html +534 -0
- data/vendor/local/share/doc/pcre/html/pcrecallout.html +286 -0
- data/vendor/local/share/doc/pcre/html/pcrecompat.html +235 -0
- data/vendor/local/share/doc/pcre/html/pcrecpp.html +368 -0
- data/vendor/local/share/doc/pcre/html/pcredemo.html +426 -0
- data/vendor/local/share/doc/pcre/html/pcregrep.html +759 -0
- data/vendor/local/share/doc/pcre/html/pcrejit.html +452 -0
- data/vendor/local/share/doc/pcre/html/pcrelimits.html +90 -0
- data/vendor/local/share/doc/pcre/html/pcrematching.html +242 -0
- data/vendor/local/share/doc/pcre/html/pcrepartial.html +509 -0
- data/vendor/local/share/doc/pcre/html/pcrepattern.html +3273 -0
- data/vendor/local/share/doc/pcre/html/pcreperform.html +195 -0
- data/vendor/local/share/doc/pcre/html/pcreposix.html +290 -0
- data/vendor/local/share/doc/pcre/html/pcreprecompile.html +163 -0
- data/vendor/local/share/doc/pcre/html/pcresample.html +110 -0
- data/vendor/local/share/doc/pcre/html/pcrestack.html +225 -0
- data/vendor/local/share/doc/pcre/html/pcresyntax.html +561 -0
- data/vendor/local/share/doc/pcre/html/pcretest.html +1158 -0
- data/vendor/local/share/doc/pcre/html/pcreunicode.html +262 -0
- data/vendor/local/share/doc/pcre/pcre-config.txt +86 -0
- data/vendor/local/share/doc/pcre/pcre.txt +10454 -0
- data/vendor/local/share/doc/pcre/pcregrep.txt +741 -0
- data/vendor/local/share/doc/pcre/pcretest.txt +1087 -0
- data/vendor/local/share/groonga/html/admin.old/js/groonga-admin.ja.js +11 -6
- data/vendor/local/share/groonga/html/admin.old/js/groonga-admin.js +11 -6
- data/vendor/local/share/license/pcre/LICENCE +93 -0
- data/vendor/local/share/man/man1/pcre-config.1 +92 -0
- data/vendor/local/share/man/man1/pcregrep.1 +683 -0
- data/vendor/local/share/man/man1/pcretest.1 +1156 -0
- data/vendor/local/share/man/man3/pcre.3 +230 -0
- data/vendor/local/share/man/man3/pcre16.3 +371 -0
- data/vendor/local/share/man/man3/pcre16_assign_jit_stack.3 +59 -0
- data/vendor/local/share/man/man3/pcre16_compile.3 +96 -0
- data/vendor/local/share/man/man3/pcre16_compile2.3 +101 -0
- data/vendor/local/share/man/man3/pcre16_config.3 +79 -0
- data/vendor/local/share/man/man3/pcre16_copy_named_substring.3 +51 -0
- data/vendor/local/share/man/man3/pcre16_copy_substring.3 +47 -0
- data/vendor/local/share/man/man3/pcre16_dfa_exec.3 +118 -0
- data/vendor/local/share/man/man3/pcre16_exec.3 +99 -0
- data/vendor/local/share/man/man3/pcre16_free_study.3 +31 -0
- data/vendor/local/share/man/man3/pcre16_free_substring.3 +31 -0
- data/vendor/local/share/man/man3/pcre16_free_substring_list.3 +31 -0
- data/vendor/local/share/man/man3/pcre16_fullinfo.3 +103 -0
- data/vendor/local/share/man/man3/pcre16_get_named_substring.3 +54 -0
- data/vendor/local/share/man/man3/pcre16_get_stringnumber.3 +43 -0
- data/vendor/local/share/man/man3/pcre16_get_stringtable_entries.3 +46 -0
- data/vendor/local/share/man/man3/pcre16_get_substring.3 +50 -0
- data/vendor/local/share/man/man3/pcre16_get_substring_list.3 +47 -0
- data/vendor/local/share/man/man3/pcre16_jit_exec.3 +96 -0
- data/vendor/local/share/man/man3/pcre16_jit_stack_alloc.3 +43 -0
- data/vendor/local/share/man/man3/pcre16_jit_stack_free.3 +35 -0
- data/vendor/local/share/man/man3/pcre16_maketables.3 +33 -0
- data/vendor/local/share/man/man3/pcre16_pattern_to_host_byte_order.3 +44 -0
- data/vendor/local/share/man/man3/pcre16_refcount.3 +36 -0
- data/vendor/local/share/man/man3/pcre16_study.3 +54 -0
- data/vendor/local/share/man/man3/pcre16_utf16_to_host_byte_order.3 +45 -0
- data/vendor/local/share/man/man3/pcre16_version.3 +31 -0
- data/vendor/local/share/man/man3/pcre32.3 +369 -0
- data/vendor/local/share/man/man3/pcre32_assign_jit_stack.3 +59 -0
- data/vendor/local/share/man/man3/pcre32_compile.3 +96 -0
- data/vendor/local/share/man/man3/pcre32_compile2.3 +101 -0
- data/vendor/local/share/man/man3/pcre32_config.3 +79 -0
- data/vendor/local/share/man/man3/pcre32_copy_named_substring.3 +51 -0
- data/vendor/local/share/man/man3/pcre32_copy_substring.3 +47 -0
- data/vendor/local/share/man/man3/pcre32_dfa_exec.3 +118 -0
- data/vendor/local/share/man/man3/pcre32_exec.3 +99 -0
- data/vendor/local/share/man/man3/pcre32_free_study.3 +31 -0
- data/vendor/local/share/man/man3/pcre32_free_substring.3 +31 -0
- data/vendor/local/share/man/man3/pcre32_free_substring_list.3 +31 -0
- data/vendor/local/share/man/man3/pcre32_fullinfo.3 +103 -0
- data/vendor/local/share/man/man3/pcre32_get_named_substring.3 +54 -0
- data/vendor/local/share/man/man3/pcre32_get_stringnumber.3 +43 -0
- data/vendor/local/share/man/man3/pcre32_get_stringtable_entries.3 +46 -0
- data/vendor/local/share/man/man3/pcre32_get_substring.3 +50 -0
- data/vendor/local/share/man/man3/pcre32_get_substring_list.3 +47 -0
- data/vendor/local/share/man/man3/pcre32_jit_exec.3 +96 -0
- data/vendor/local/share/man/man3/pcre32_jit_stack_alloc.3 +43 -0
- data/vendor/local/share/man/man3/pcre32_jit_stack_free.3 +35 -0
- data/vendor/local/share/man/man3/pcre32_maketables.3 +33 -0
- data/vendor/local/share/man/man3/pcre32_pattern_to_host_byte_order.3 +44 -0
- data/vendor/local/share/man/man3/pcre32_refcount.3 +36 -0
- data/vendor/local/share/man/man3/pcre32_study.3 +54 -0
- data/vendor/local/share/man/man3/pcre32_utf32_to_host_byte_order.3 +45 -0
- data/vendor/local/share/man/man3/pcre32_version.3 +31 -0
- data/vendor/local/share/man/man3/pcre_assign_jit_stack.3 +59 -0
- data/vendor/local/share/man/man3/pcre_compile.3 +96 -0
- data/vendor/local/share/man/man3/pcre_compile2.3 +101 -0
- data/vendor/local/share/man/man3/pcre_config.3 +79 -0
- data/vendor/local/share/man/man3/pcre_copy_named_substring.3 +51 -0
- data/vendor/local/share/man/man3/pcre_copy_substring.3 +47 -0
- data/vendor/local/share/man/man3/pcre_dfa_exec.3 +118 -0
- data/vendor/local/share/man/man3/pcre_exec.3 +99 -0
- data/vendor/local/share/man/man3/pcre_free_study.3 +31 -0
- data/vendor/local/share/man/man3/pcre_free_substring.3 +31 -0
- data/vendor/local/share/man/man3/pcre_free_substring_list.3 +31 -0
- data/vendor/local/share/man/man3/pcre_fullinfo.3 +103 -0
- data/vendor/local/share/man/man3/pcre_get_named_substring.3 +54 -0
- data/vendor/local/share/man/man3/pcre_get_stringnumber.3 +43 -0
- data/vendor/local/share/man/man3/pcre_get_stringtable_entries.3 +46 -0
- data/vendor/local/share/man/man3/pcre_get_substring.3 +50 -0
- data/vendor/local/share/man/man3/pcre_get_substring_list.3 +47 -0
- data/vendor/local/share/man/man3/pcre_jit_exec.3 +96 -0
- data/vendor/local/share/man/man3/pcre_jit_stack_alloc.3 +43 -0
- data/vendor/local/share/man/man3/pcre_jit_stack_free.3 +35 -0
- data/vendor/local/share/man/man3/pcre_maketables.3 +33 -0
- data/vendor/local/share/man/man3/pcre_pattern_to_host_byte_order.3 +44 -0
- data/vendor/local/share/man/man3/pcre_refcount.3 +36 -0
- data/vendor/local/share/man/man3/pcre_study.3 +54 -0
- data/vendor/local/share/man/man3/pcre_utf16_to_host_byte_order.3 +45 -0
- data/vendor/local/share/man/man3/pcre_utf32_to_host_byte_order.3 +45 -0
- data/vendor/local/share/man/man3/pcre_version.3 +31 -0
- data/vendor/local/share/man/man3/pcreapi.3 +2918 -0
- data/vendor/local/share/man/man3/pcrebuild.3 +550 -0
- data/vendor/local/share/man/man3/pcrecallout.3 +255 -0
- data/vendor/local/share/man/man3/pcrecompat.3 +200 -0
- data/vendor/local/share/man/man3/pcrecpp.3 +348 -0
- data/vendor/local/share/man/man3/pcredemo.3 +424 -0
- data/vendor/local/share/man/man3/pcrejit.3 +431 -0
- data/vendor/local/share/man/man3/pcrelimits.3 +71 -0
- data/vendor/local/share/man/man3/pcrematching.3 +214 -0
- data/vendor/local/share/man/man3/pcrepartial.3 +476 -0
- data/vendor/local/share/man/man3/pcrepattern.3 +3301 -0
- data/vendor/local/share/man/man3/pcreperform.3 +177 -0
- data/vendor/local/share/man/man3/pcreposix.3 +267 -0
- data/vendor/local/share/man/man3/pcreprecompile.3 +155 -0
- data/vendor/local/share/man/man3/pcresample.3 +99 -0
- data/vendor/local/share/man/man3/pcrestack.3 +215 -0
- data/vendor/local/share/man/man3/pcresyntax.3 +540 -0
- data/vendor/local/share/man/man3/pcreunicode.3 +249 -0
- metadata +255 -59
@@ -0,0 +1,348 @@
|
|
1
|
+
.TH PCRECPP 3 "08 January 2012" "PCRE 8.30"
|
2
|
+
.SH NAME
|
3
|
+
PCRE - Perl-compatible regular expressions.
|
4
|
+
.SH "SYNOPSIS OF C++ WRAPPER"
|
5
|
+
.rs
|
6
|
+
.sp
|
7
|
+
.B #include <pcrecpp.h>
|
8
|
+
.
|
9
|
+
.SH DESCRIPTION
|
10
|
+
.rs
|
11
|
+
.sp
|
12
|
+
The C++ wrapper for PCRE was provided by Google Inc. Some additional
|
13
|
+
functionality was added by Giuseppe Maxia. This brief man page was constructed
|
14
|
+
from the notes in the \fIpcrecpp.h\fP file, which should be consulted for
|
15
|
+
further details. Note that the C++ wrapper supports only the original 8-bit
|
16
|
+
PCRE library. There is no 16-bit or 32-bit support at present.
|
17
|
+
.
|
18
|
+
.
|
19
|
+
.SH "MATCHING INTERFACE"
|
20
|
+
.rs
|
21
|
+
.sp
|
22
|
+
The "FullMatch" operation checks that supplied text matches a supplied pattern
|
23
|
+
exactly. If pointer arguments are supplied, it copies matched sub-strings that
|
24
|
+
match sub-patterns into them.
|
25
|
+
.sp
|
26
|
+
Example: successful match
|
27
|
+
pcrecpp::RE re("h.*o");
|
28
|
+
re.FullMatch("hello");
|
29
|
+
.sp
|
30
|
+
Example: unsuccessful match (requires full match):
|
31
|
+
pcrecpp::RE re("e");
|
32
|
+
!re.FullMatch("hello");
|
33
|
+
.sp
|
34
|
+
Example: creating a temporary RE object:
|
35
|
+
pcrecpp::RE("h.*o").FullMatch("hello");
|
36
|
+
.sp
|
37
|
+
You can pass in a "const char*" or a "string" for "text". The examples below
|
38
|
+
tend to use a const char*. You can, as in the different examples above, store
|
39
|
+
the RE object explicitly in a variable or use a temporary RE object. The
|
40
|
+
examples below use one mode or the other arbitrarily. Either could correctly be
|
41
|
+
used for any of these examples.
|
42
|
+
.P
|
43
|
+
You must supply extra pointer arguments to extract matched subpieces.
|
44
|
+
.sp
|
45
|
+
Example: extracts "ruby" into "s" and 1234 into "i"
|
46
|
+
int i;
|
47
|
+
string s;
|
48
|
+
pcrecpp::RE re("(\e\ew+):(\e\ed+)");
|
49
|
+
re.FullMatch("ruby:1234", &s, &i);
|
50
|
+
.sp
|
51
|
+
Example: does not try to extract any extra sub-patterns
|
52
|
+
re.FullMatch("ruby:1234", &s);
|
53
|
+
.sp
|
54
|
+
Example: does not try to extract into NULL
|
55
|
+
re.FullMatch("ruby:1234", NULL, &i);
|
56
|
+
.sp
|
57
|
+
Example: integer overflow causes failure
|
58
|
+
!re.FullMatch("ruby:1234567891234", NULL, &i);
|
59
|
+
.sp
|
60
|
+
Example: fails because there aren't enough sub-patterns:
|
61
|
+
!pcrecpp::RE("\e\ew+:\e\ed+").FullMatch("ruby:1234", &s);
|
62
|
+
.sp
|
63
|
+
Example: fails because string cannot be stored in integer
|
64
|
+
!pcrecpp::RE("(.*)").FullMatch("ruby", &i);
|
65
|
+
.sp
|
66
|
+
The provided pointer arguments can be pointers to any scalar numeric
|
67
|
+
type, or one of:
|
68
|
+
.sp
|
69
|
+
string (matched piece is copied to string)
|
70
|
+
StringPiece (StringPiece is mutated to point to matched piece)
|
71
|
+
T (where "bool T::ParseFrom(const char*, int)" exists)
|
72
|
+
NULL (the corresponding matched sub-pattern is not copied)
|
73
|
+
.sp
|
74
|
+
The function returns true iff all of the following conditions are satisfied:
|
75
|
+
.sp
|
76
|
+
a. "text" matches "pattern" exactly;
|
77
|
+
.sp
|
78
|
+
b. The number of matched sub-patterns is >= number of supplied
|
79
|
+
pointers;
|
80
|
+
.sp
|
81
|
+
c. The "i"th argument has a suitable type for holding the
|
82
|
+
string captured as the "i"th sub-pattern. If you pass in
|
83
|
+
void * NULL for the "i"th argument, or a non-void * NULL
|
84
|
+
of the correct type, or pass fewer arguments than the
|
85
|
+
number of sub-patterns, "i"th captured sub-pattern is
|
86
|
+
ignored.
|
87
|
+
.sp
|
88
|
+
CAVEAT: An optional sub-pattern that does not exist in the matched
|
89
|
+
string is assigned the empty string. Therefore, the following will
|
90
|
+
return false (because the empty string is not a valid number):
|
91
|
+
.sp
|
92
|
+
int number;
|
93
|
+
pcrecpp::RE::FullMatch("abc", "[a-z]+(\e\ed+)?", &number);
|
94
|
+
.sp
|
95
|
+
The matching interface supports at most 16 arguments per call.
|
96
|
+
If you need more, consider using the more general interface
|
97
|
+
\fBpcrecpp::RE::DoMatch\fP. See \fBpcrecpp.h\fP for the signature for
|
98
|
+
\fBDoMatch\fP.
|
99
|
+
.P
|
100
|
+
NOTE: Do not use \fBno_arg\fP, which is used internally to mark the end of a
|
101
|
+
list of optional arguments, as a placeholder for missing arguments, as this can
|
102
|
+
lead to segfaults.
|
103
|
+
.
|
104
|
+
.
|
105
|
+
.SH "QUOTING METACHARACTERS"
|
106
|
+
.rs
|
107
|
+
.sp
|
108
|
+
You can use the "QuoteMeta" operation to insert backslashes before all
|
109
|
+
potentially meaningful characters in a string. The returned string, used as a
|
110
|
+
regular expression, will exactly match the original string.
|
111
|
+
.sp
|
112
|
+
Example:
|
113
|
+
string quoted = RE::QuoteMeta(unquoted);
|
114
|
+
.sp
|
115
|
+
Note that it's legal to escape a character even if it has no special meaning in
|
116
|
+
a regular expression -- so this function does that. (This also makes it
|
117
|
+
identical to the perl function of the same name; see "perldoc -f quotemeta".)
|
118
|
+
For example, "1.5-2.0?" becomes "1\e.5\e-2\e.0\e?".
|
119
|
+
.
|
120
|
+
.SH "PARTIAL MATCHES"
|
121
|
+
.rs
|
122
|
+
.sp
|
123
|
+
You can use the "PartialMatch" operation when you want the pattern
|
124
|
+
to match any substring of the text.
|
125
|
+
.sp
|
126
|
+
Example: simple search for a string:
|
127
|
+
pcrecpp::RE("ell").PartialMatch("hello");
|
128
|
+
.sp
|
129
|
+
Example: find first number in a string:
|
130
|
+
int number;
|
131
|
+
pcrecpp::RE re("(\e\ed+)");
|
132
|
+
re.PartialMatch("x*100 + 20", &number);
|
133
|
+
assert(number == 100);
|
134
|
+
.
|
135
|
+
.
|
136
|
+
.SH "UTF-8 AND THE MATCHING INTERFACE"
|
137
|
+
.rs
|
138
|
+
.sp
|
139
|
+
By default, pattern and text are plain text, one byte per character. The UTF8
|
140
|
+
flag, passed to the constructor, causes both pattern and string to be treated
|
141
|
+
as UTF-8 text, still a byte stream but potentially multiple bytes per
|
142
|
+
character. In practice, the text is likelier to be UTF-8 than the pattern, but
|
143
|
+
the match returned may depend on the UTF8 flag, so always use it when matching
|
144
|
+
UTF8 text. For example, "." will match one byte normally but with UTF8 set may
|
145
|
+
match up to three bytes of a multi-byte character.
|
146
|
+
.sp
|
147
|
+
Example:
|
148
|
+
pcrecpp::RE_Options options;
|
149
|
+
options.set_utf8();
|
150
|
+
pcrecpp::RE re(utf8_pattern, options);
|
151
|
+
re.FullMatch(utf8_string);
|
152
|
+
.sp
|
153
|
+
Example: using the convenience function UTF8():
|
154
|
+
pcrecpp::RE re(utf8_pattern, pcrecpp::UTF8());
|
155
|
+
re.FullMatch(utf8_string);
|
156
|
+
.sp
|
157
|
+
NOTE: The UTF8 flag is ignored if pcre was not configured with the
|
158
|
+
--enable-utf8 flag.
|
159
|
+
.
|
160
|
+
.
|
161
|
+
.SH "PASSING MODIFIERS TO THE REGULAR EXPRESSION ENGINE"
|
162
|
+
.rs
|
163
|
+
.sp
|
164
|
+
PCRE defines some modifiers to change the behavior of the regular expression
|
165
|
+
engine. The C++ wrapper defines an auxiliary class, RE_Options, as a vehicle to
|
166
|
+
pass such modifiers to a RE class. Currently, the following modifiers are
|
167
|
+
supported:
|
168
|
+
.sp
|
169
|
+
modifier description Perl corresponding
|
170
|
+
.sp
|
171
|
+
PCRE_CASELESS case insensitive match /i
|
172
|
+
PCRE_MULTILINE multiple lines match /m
|
173
|
+
PCRE_DOTALL dot matches newlines /s
|
174
|
+
PCRE_DOLLAR_ENDONLY $ matches only at end N/A
|
175
|
+
PCRE_EXTRA strict escape parsing N/A
|
176
|
+
PCRE_EXTENDED ignore white spaces /x
|
177
|
+
PCRE_UTF8 handles UTF8 chars built-in
|
178
|
+
PCRE_UNGREEDY reverses * and *? N/A
|
179
|
+
PCRE_NO_AUTO_CAPTURE disables capturing parens N/A (*)
|
180
|
+
.sp
|
181
|
+
(*) Both Perl and PCRE allow non capturing parentheses by means of the
|
182
|
+
"?:" modifier within the pattern itself. e.g. (?:ab|cd) does not
|
183
|
+
capture, while (ab|cd) does.
|
184
|
+
.P
|
185
|
+
For a full account on how each modifier works, please check the
|
186
|
+
PCRE API reference page.
|
187
|
+
.P
|
188
|
+
For each modifier, there are two member functions whose name is made
|
189
|
+
out of the modifier in lowercase, without the "PCRE_" prefix. For
|
190
|
+
instance, PCRE_CASELESS is handled by
|
191
|
+
.sp
|
192
|
+
bool caseless()
|
193
|
+
.sp
|
194
|
+
which returns true if the modifier is set, and
|
195
|
+
.sp
|
196
|
+
RE_Options & set_caseless(bool)
|
197
|
+
.sp
|
198
|
+
which sets or unsets the modifier. Moreover, PCRE_EXTRA_MATCH_LIMIT can be
|
199
|
+
accessed through the \fBset_match_limit()\fP and \fBmatch_limit()\fP member
|
200
|
+
functions. Setting \fImatch_limit\fP to a non-zero value will limit the
|
201
|
+
execution of pcre to keep it from doing bad things like blowing the stack or
|
202
|
+
taking an eternity to return a result. A value of 5000 is good enough to stop
|
203
|
+
stack blowup in a 2MB thread stack. Setting \fImatch_limit\fP to zero disables
|
204
|
+
match limiting. Alternatively, you can call \fBmatch_limit_recursion()\fP
|
205
|
+
which uses PCRE_EXTRA_MATCH_LIMIT_RECURSION to limit how much PCRE
|
206
|
+
recurses. \fBmatch_limit()\fP limits the number of matches PCRE does;
|
207
|
+
\fBmatch_limit_recursion()\fP limits the depth of internal recursion, and
|
208
|
+
therefore the amount of stack that is used.
|
209
|
+
.P
|
210
|
+
Normally, to pass one or more modifiers to a RE class, you declare
|
211
|
+
a \fIRE_Options\fP object, set the appropriate options, and pass this
|
212
|
+
object to a RE constructor. Example:
|
213
|
+
.sp
|
214
|
+
RE_Options opt;
|
215
|
+
opt.set_caseless(true);
|
216
|
+
if (RE("HELLO", opt).PartialMatch("hello world")) ...
|
217
|
+
.sp
|
218
|
+
RE_options has two constructors. The default constructor takes no arguments and
|
219
|
+
creates a set of flags that are off by default. The optional parameter
|
220
|
+
\fIoption_flags\fP is to facilitate transfer of legacy code from C programs.
|
221
|
+
This lets you do
|
222
|
+
.sp
|
223
|
+
RE(pattern,
|
224
|
+
RE_Options(PCRE_CASELESS|PCRE_MULTILINE)).PartialMatch(str);
|
225
|
+
.sp
|
226
|
+
However, new code is better off doing
|
227
|
+
.sp
|
228
|
+
RE(pattern,
|
229
|
+
RE_Options().set_caseless(true).set_multiline(true))
|
230
|
+
.PartialMatch(str);
|
231
|
+
.sp
|
232
|
+
If you are going to pass one of the most used modifiers, there are some
|
233
|
+
convenience functions that return a RE_Options class with the
|
234
|
+
appropriate modifier already set: \fBCASELESS()\fP, \fBUTF8()\fP,
|
235
|
+
\fBMULTILINE()\fP, \fBDOTALL\fP(), and \fBEXTENDED()\fP.
|
236
|
+
.P
|
237
|
+
If you need to set several options at once, and you don't want to go through
|
238
|
+
the pains of declaring a RE_Options object and setting several options, there
|
239
|
+
is a parallel method that give you such ability on the fly. You can concatenate
|
240
|
+
several \fBset_xxxxx()\fP member functions, since each of them returns a
|
241
|
+
reference to its class object. For example, to pass PCRE_CASELESS,
|
242
|
+
PCRE_EXTENDED, and PCRE_MULTILINE to a RE with one statement, you may write:
|
243
|
+
.sp
|
244
|
+
RE(" ^ xyz \e\es+ .* blah$",
|
245
|
+
RE_Options()
|
246
|
+
.set_caseless(true)
|
247
|
+
.set_extended(true)
|
248
|
+
.set_multiline(true)).PartialMatch(sometext);
|
249
|
+
.sp
|
250
|
+
.
|
251
|
+
.
|
252
|
+
.SH "SCANNING TEXT INCREMENTALLY"
|
253
|
+
.rs
|
254
|
+
.sp
|
255
|
+
The "Consume" operation may be useful if you want to repeatedly
|
256
|
+
match regular expressions at the front of a string and skip over
|
257
|
+
them as they match. This requires use of the "StringPiece" type,
|
258
|
+
which represents a sub-range of a real string. Like RE, StringPiece
|
259
|
+
is defined in the pcrecpp namespace.
|
260
|
+
.sp
|
261
|
+
Example: read lines of the form "var = value" from a string.
|
262
|
+
string contents = ...; // Fill string somehow
|
263
|
+
pcrecpp::StringPiece input(contents); // Wrap in a StringPiece
|
264
|
+
.sp
|
265
|
+
string var;
|
266
|
+
int value;
|
267
|
+
pcrecpp::RE re("(\e\ew+) = (\e\ed+)\en");
|
268
|
+
while (re.Consume(&input, &var, &value)) {
|
269
|
+
...;
|
270
|
+
}
|
271
|
+
.sp
|
272
|
+
Each successful call to "Consume" will set "var/value", and also
|
273
|
+
advance "input" so it points past the matched text.
|
274
|
+
.P
|
275
|
+
The "FindAndConsume" operation is similar to "Consume" but does not
|
276
|
+
anchor your match at the beginning of the string. For example, you
|
277
|
+
could extract all words from a string by repeatedly calling
|
278
|
+
.sp
|
279
|
+
pcrecpp::RE("(\e\ew+)").FindAndConsume(&input, &word)
|
280
|
+
.
|
281
|
+
.
|
282
|
+
.SH "PARSING HEX/OCTAL/C-RADIX NUMBERS"
|
283
|
+
.rs
|
284
|
+
.sp
|
285
|
+
By default, if you pass a pointer to a numeric value, the
|
286
|
+
corresponding text is interpreted as a base-10 number. You can
|
287
|
+
instead wrap the pointer with a call to one of the operators Hex(),
|
288
|
+
Octal(), or CRadix() to interpret the text in another base. The
|
289
|
+
CRadix operator interprets C-style "0" (base-8) and "0x" (base-16)
|
290
|
+
prefixes, but defaults to base-10.
|
291
|
+
.sp
|
292
|
+
Example:
|
293
|
+
int a, b, c, d;
|
294
|
+
pcrecpp::RE re("(.*) (.*) (.*) (.*)");
|
295
|
+
re.FullMatch("100 40 0100 0x40",
|
296
|
+
pcrecpp::Octal(&a), pcrecpp::Hex(&b),
|
297
|
+
pcrecpp::CRadix(&c), pcrecpp::CRadix(&d));
|
298
|
+
.sp
|
299
|
+
will leave 64 in a, b, c, and d.
|
300
|
+
.
|
301
|
+
.
|
302
|
+
.SH "REPLACING PARTS OF STRINGS"
|
303
|
+
.rs
|
304
|
+
.sp
|
305
|
+
You can replace the first match of "pattern" in "str" with "rewrite".
|
306
|
+
Within "rewrite", backslash-escaped digits (\e1 to \e9) can be
|
307
|
+
used to insert text matching corresponding parenthesized group
|
308
|
+
from the pattern. \e0 in "rewrite" refers to the entire matching
|
309
|
+
text. For example:
|
310
|
+
.sp
|
311
|
+
string s = "yabba dabba doo";
|
312
|
+
pcrecpp::RE("b+").Replace("d", &s);
|
313
|
+
.sp
|
314
|
+
will leave "s" containing "yada dabba doo". The result is true if the pattern
|
315
|
+
matches and a replacement occurs, false otherwise.
|
316
|
+
.P
|
317
|
+
\fBGlobalReplace\fP is like \fBReplace\fP except that it replaces all
|
318
|
+
occurrences of the pattern in the string with the rewrite. Replacements are
|
319
|
+
not subject to re-matching. For example:
|
320
|
+
.sp
|
321
|
+
string s = "yabba dabba doo";
|
322
|
+
pcrecpp::RE("b+").GlobalReplace("d", &s);
|
323
|
+
.sp
|
324
|
+
will leave "s" containing "yada dada doo". It returns the number of
|
325
|
+
replacements made.
|
326
|
+
.P
|
327
|
+
\fBExtract\fP is like \fBReplace\fP, except that if the pattern matches,
|
328
|
+
"rewrite" is copied into "out" (an additional argument) with substitutions.
|
329
|
+
The non-matching portions of "text" are ignored. Returns true iff a match
|
330
|
+
occurred and the extraction happened successfully; if no match occurs, the
|
331
|
+
string is left unaffected.
|
332
|
+
.
|
333
|
+
.
|
334
|
+
.SH AUTHOR
|
335
|
+
.rs
|
336
|
+
.sp
|
337
|
+
.nf
|
338
|
+
The C++ wrapper was contributed by Google Inc.
|
339
|
+
Copyright (c) 2007 Google Inc.
|
340
|
+
.fi
|
341
|
+
.
|
342
|
+
.
|
343
|
+
.SH REVISION
|
344
|
+
.rs
|
345
|
+
.sp
|
346
|
+
.nf
|
347
|
+
Last updated: 08 January 2012
|
348
|
+
.fi
|
@@ -0,0 +1,424 @@
|
|
1
|
+
.\" Start example.
|
2
|
+
.de EX
|
3
|
+
. nr mE \\n(.f
|
4
|
+
. nf
|
5
|
+
. nh
|
6
|
+
. ft CW
|
7
|
+
..
|
8
|
+
.
|
9
|
+
.
|
10
|
+
.\" End example.
|
11
|
+
.de EE
|
12
|
+
. ft \\n(mE
|
13
|
+
. fi
|
14
|
+
. hy \\n(HY
|
15
|
+
..
|
16
|
+
.
|
17
|
+
.EX
|
18
|
+
/*************************************************
|
19
|
+
* PCRE DEMONSTRATION PROGRAM *
|
20
|
+
*************************************************/
|
21
|
+
|
22
|
+
/* This is a demonstration program to illustrate the most straightforward ways
|
23
|
+
of calling the PCRE regular expression library from a C program. See the
|
24
|
+
pcresample documentation for a short discussion ("man pcresample" if you have
|
25
|
+
the PCRE man pages installed).
|
26
|
+
|
27
|
+
In Unix-like environments, if PCRE is installed in your standard system
|
28
|
+
libraries, you should be able to compile this program using this command:
|
29
|
+
|
30
|
+
gcc -Wall pcredemo.c -lpcre -o pcredemo
|
31
|
+
|
32
|
+
If PCRE is not installed in a standard place, it is likely to be installed with
|
33
|
+
support for the pkg-config mechanism. If you have pkg-config, you can compile
|
34
|
+
this program using this command:
|
35
|
+
|
36
|
+
gcc -Wall pcredemo.c `pkg-config --cflags --libs libpcre` -o pcredemo
|
37
|
+
|
38
|
+
If you do not have pkg-config, you may have to use this:
|
39
|
+
|
40
|
+
gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \e
|
41
|
+
-R/usr/local/lib -lpcre -o pcredemo
|
42
|
+
|
43
|
+
Replace "/usr/local/include" and "/usr/local/lib" with wherever the include and
|
44
|
+
library files for PCRE are installed on your system. Only some operating
|
45
|
+
systems (e.g. Solaris) use the -R option.
|
46
|
+
|
47
|
+
Building under Windows:
|
48
|
+
|
49
|
+
If you want to statically link this program against a non-dll .a file, you must
|
50
|
+
define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and
|
51
|
+
pcre_free() exported functions will be declared __declspec(dllimport), with
|
52
|
+
unwanted results. So in this environment, uncomment the following line. */
|
53
|
+
|
54
|
+
/* #define PCRE_STATIC */
|
55
|
+
|
56
|
+
#include <stdio.h>
|
57
|
+
#include <string.h>
|
58
|
+
#include <pcre.h>
|
59
|
+
|
60
|
+
#define OVECCOUNT 30 /* should be a multiple of 3 */
|
61
|
+
|
62
|
+
|
63
|
+
int main(int argc, char **argv)
|
64
|
+
{
|
65
|
+
pcre *re;
|
66
|
+
const char *error;
|
67
|
+
char *pattern;
|
68
|
+
char *subject;
|
69
|
+
unsigned char *name_table;
|
70
|
+
unsigned int option_bits;
|
71
|
+
int erroffset;
|
72
|
+
int find_all;
|
73
|
+
int crlf_is_newline;
|
74
|
+
int namecount;
|
75
|
+
int name_entry_size;
|
76
|
+
int ovector[OVECCOUNT];
|
77
|
+
int subject_length;
|
78
|
+
int rc, i;
|
79
|
+
int utf8;
|
80
|
+
|
81
|
+
|
82
|
+
/**************************************************************************
|
83
|
+
* First, sort out the command line. There is only one possible option at *
|
84
|
+
* the moment, "-g" to request repeated matching to find all occurrences, *
|
85
|
+
* like Perl's /g option. We set the variable find_all to a non-zero value *
|
86
|
+
* if the -g option is present. Apart from that, there must be exactly two *
|
87
|
+
* arguments. *
|
88
|
+
**************************************************************************/
|
89
|
+
|
90
|
+
find_all = 0;
|
91
|
+
for (i = 1; i < argc; i++)
|
92
|
+
{
|
93
|
+
if (strcmp(argv[i], "-g") == 0) find_all = 1;
|
94
|
+
else break;
|
95
|
+
}
|
96
|
+
|
97
|
+
/* After the options, we require exactly two arguments, which are the pattern,
|
98
|
+
and the subject string. */
|
99
|
+
|
100
|
+
if (argc - i != 2)
|
101
|
+
{
|
102
|
+
printf("Two arguments required: a regex and a subject string\en");
|
103
|
+
return 1;
|
104
|
+
}
|
105
|
+
|
106
|
+
pattern = argv[i];
|
107
|
+
subject = argv[i+1];
|
108
|
+
subject_length = (int)strlen(subject);
|
109
|
+
|
110
|
+
|
111
|
+
/*************************************************************************
|
112
|
+
* Now we are going to compile the regular expression pattern, and handle *
|
113
|
+
* and errors that are detected. *
|
114
|
+
*************************************************************************/
|
115
|
+
|
116
|
+
re = pcre_compile(
|
117
|
+
pattern, /* the pattern */
|
118
|
+
0, /* default options */
|
119
|
+
&error, /* for error message */
|
120
|
+
&erroffset, /* for error offset */
|
121
|
+
NULL); /* use default character tables */
|
122
|
+
|
123
|
+
/* Compilation failed: print the error message and exit */
|
124
|
+
|
125
|
+
if (re == NULL)
|
126
|
+
{
|
127
|
+
printf("PCRE compilation failed at offset %d: %s\en", erroffset, error);
|
128
|
+
return 1;
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
/*************************************************************************
|
133
|
+
* If the compilation succeeded, we call PCRE again, in order to do a *
|
134
|
+
* pattern match against the subject string. This does just ONE match. If *
|
135
|
+
* further matching is needed, it will be done below. *
|
136
|
+
*************************************************************************/
|
137
|
+
|
138
|
+
rc = pcre_exec(
|
139
|
+
re, /* the compiled pattern */
|
140
|
+
NULL, /* no extra data - we didn't study the pattern */
|
141
|
+
subject, /* the subject string */
|
142
|
+
subject_length, /* the length of the subject */
|
143
|
+
0, /* start at offset 0 in the subject */
|
144
|
+
0, /* default options */
|
145
|
+
ovector, /* output vector for substring information */
|
146
|
+
OVECCOUNT); /* number of elements in the output vector */
|
147
|
+
|
148
|
+
/* Matching failed: handle error cases */
|
149
|
+
|
150
|
+
if (rc < 0)
|
151
|
+
{
|
152
|
+
switch(rc)
|
153
|
+
{
|
154
|
+
case PCRE_ERROR_NOMATCH: printf("No match\en"); break;
|
155
|
+
/*
|
156
|
+
Handle other special cases if you like
|
157
|
+
*/
|
158
|
+
default: printf("Matching error %d\en", rc); break;
|
159
|
+
}
|
160
|
+
pcre_free(re); /* Release memory used for the compiled pattern */
|
161
|
+
return 1;
|
162
|
+
}
|
163
|
+
|
164
|
+
/* Match succeded */
|
165
|
+
|
166
|
+
printf("\enMatch succeeded at offset %d\en", ovector[0]);
|
167
|
+
|
168
|
+
|
169
|
+
/*************************************************************************
|
170
|
+
* We have found the first match within the subject string. If the output *
|
171
|
+
* vector wasn't big enough, say so. Then output any substrings that were *
|
172
|
+
* captured. *
|
173
|
+
*************************************************************************/
|
174
|
+
|
175
|
+
/* The output vector wasn't big enough */
|
176
|
+
|
177
|
+
if (rc == 0)
|
178
|
+
{
|
179
|
+
rc = OVECCOUNT/3;
|
180
|
+
printf("ovector only has room for %d captured substrings\en", rc - 1);
|
181
|
+
}
|
182
|
+
|
183
|
+
/* Show substrings stored in the output vector by number. Obviously, in a real
|
184
|
+
application you might want to do things other than print them. */
|
185
|
+
|
186
|
+
for (i = 0; i < rc; i++)
|
187
|
+
{
|
188
|
+
char *substring_start = subject + ovector[2*i];
|
189
|
+
int substring_length = ovector[2*i+1] - ovector[2*i];
|
190
|
+
printf("%2d: %.*s\en", i, substring_length, substring_start);
|
191
|
+
}
|
192
|
+
|
193
|
+
|
194
|
+
/**************************************************************************
|
195
|
+
* That concludes the basic part of this demonstration program. We have *
|
196
|
+
* compiled a pattern, and performed a single match. The code that follows *
|
197
|
+
* shows first how to access named substrings, and then how to code for *
|
198
|
+
* repeated matches on the same subject. *
|
199
|
+
**************************************************************************/
|
200
|
+
|
201
|
+
/* See if there are any named substrings, and if so, show them by name. First
|
202
|
+
we have to extract the count of named parentheses from the pattern. */
|
203
|
+
|
204
|
+
(void)pcre_fullinfo(
|
205
|
+
re, /* the compiled pattern */
|
206
|
+
NULL, /* no extra data - we didn't study the pattern */
|
207
|
+
PCRE_INFO_NAMECOUNT, /* number of named substrings */
|
208
|
+
&namecount); /* where to put the answer */
|
209
|
+
|
210
|
+
if (namecount <= 0) printf("No named substrings\en"); else
|
211
|
+
{
|
212
|
+
unsigned char *tabptr;
|
213
|
+
printf("Named substrings\en");
|
214
|
+
|
215
|
+
/* Before we can access the substrings, we must extract the table for
|
216
|
+
translating names to numbers, and the size of each entry in the table. */
|
217
|
+
|
218
|
+
(void)pcre_fullinfo(
|
219
|
+
re, /* the compiled pattern */
|
220
|
+
NULL, /* no extra data - we didn't study the pattern */
|
221
|
+
PCRE_INFO_NAMETABLE, /* address of the table */
|
222
|
+
&name_table); /* where to put the answer */
|
223
|
+
|
224
|
+
(void)pcre_fullinfo(
|
225
|
+
re, /* the compiled pattern */
|
226
|
+
NULL, /* no extra data - we didn't study the pattern */
|
227
|
+
PCRE_INFO_NAMEENTRYSIZE, /* size of each entry in the table */
|
228
|
+
&name_entry_size); /* where to put the answer */
|
229
|
+
|
230
|
+
/* Now we can scan the table and, for each entry, print the number, the name,
|
231
|
+
and the substring itself. */
|
232
|
+
|
233
|
+
tabptr = name_table;
|
234
|
+
for (i = 0; i < namecount; i++)
|
235
|
+
{
|
236
|
+
int n = (tabptr[0] << 8) | tabptr[1];
|
237
|
+
printf("(%d) %*s: %.*s\en", n, name_entry_size - 3, tabptr + 2,
|
238
|
+
ovector[2*n+1] - ovector[2*n], subject + ovector[2*n]);
|
239
|
+
tabptr += name_entry_size;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
|
244
|
+
/*************************************************************************
|
245
|
+
* If the "-g" option was given on the command line, we want to continue *
|
246
|
+
* to search for additional matches in the subject string, in a similar *
|
247
|
+
* way to the /g option in Perl. This turns out to be trickier than you *
|
248
|
+
* might think because of the possibility of matching an empty string. *
|
249
|
+
* What happens is as follows: *
|
250
|
+
* *
|
251
|
+
* If the previous match was NOT for an empty string, we can just start *
|
252
|
+
* the next match at the end of the previous one. *
|
253
|
+
* *
|
254
|
+
* If the previous match WAS for an empty string, we can't do that, as it *
|
255
|
+
* would lead to an infinite loop. Instead, a special call of pcre_exec() *
|
256
|
+
* is made with the PCRE_NOTEMPTY_ATSTART and PCRE_ANCHORED flags set. *
|
257
|
+
* The first of these tells PCRE that an empty string at the start of the *
|
258
|
+
* subject is not a valid match; other possibilities must be tried. The *
|
259
|
+
* second flag restricts PCRE to one match attempt at the initial string *
|
260
|
+
* position. If this match succeeds, an alternative to the empty string *
|
261
|
+
* match has been found, and we can print it and proceed round the loop, *
|
262
|
+
* advancing by the length of whatever was found. If this match does not *
|
263
|
+
* succeed, we still stay in the loop, advancing by just one character. *
|
264
|
+
* In UTF-8 mode, which can be set by (*UTF8) in the pattern, this may be *
|
265
|
+
* more than one byte. *
|
266
|
+
* *
|
267
|
+
* However, there is a complication concerned with newlines. When the *
|
268
|
+
* newline convention is such that CRLF is a valid newline, we must *
|
269
|
+
* advance by two characters rather than one. The newline convention can *
|
270
|
+
* be set in the regex by (*CR), etc.; if not, we must find the default. *
|
271
|
+
*************************************************************************/
|
272
|
+
|
273
|
+
if (!find_all) /* Check for -g */
|
274
|
+
{
|
275
|
+
pcre_free(re); /* Release the memory used for the compiled pattern */
|
276
|
+
return 0; /* Finish unless -g was given */
|
277
|
+
}
|
278
|
+
|
279
|
+
/* Before running the loop, check for UTF-8 and whether CRLF is a valid newline
|
280
|
+
sequence. First, find the options with which the regex was compiled; extract
|
281
|
+
the UTF-8 state, and mask off all but the newline options. */
|
282
|
+
|
283
|
+
(void)pcre_fullinfo(re, NULL, PCRE_INFO_OPTIONS, &option_bits);
|
284
|
+
utf8 = option_bits & PCRE_UTF8;
|
285
|
+
option_bits &= PCRE_NEWLINE_CR|PCRE_NEWLINE_LF|PCRE_NEWLINE_CRLF|
|
286
|
+
PCRE_NEWLINE_ANY|PCRE_NEWLINE_ANYCRLF;
|
287
|
+
|
288
|
+
/* If no newline options were set, find the default newline convention from the
|
289
|
+
build configuration. */
|
290
|
+
|
291
|
+
if (option_bits == 0)
|
292
|
+
{
|
293
|
+
int d;
|
294
|
+
(void)pcre_config(PCRE_CONFIG_NEWLINE, &d);
|
295
|
+
/* Note that these values are always the ASCII ones, even in
|
296
|
+
EBCDIC environments. CR = 13, NL = 10. */
|
297
|
+
option_bits = (d == 13)? PCRE_NEWLINE_CR :
|
298
|
+
(d == 10)? PCRE_NEWLINE_LF :
|
299
|
+
(d == (13<<8 | 10))? PCRE_NEWLINE_CRLF :
|
300
|
+
(d == -2)? PCRE_NEWLINE_ANYCRLF :
|
301
|
+
(d == -1)? PCRE_NEWLINE_ANY : 0;
|
302
|
+
}
|
303
|
+
|
304
|
+
/* See if CRLF is a valid newline sequence. */
|
305
|
+
|
306
|
+
crlf_is_newline =
|
307
|
+
option_bits == PCRE_NEWLINE_ANY ||
|
308
|
+
option_bits == PCRE_NEWLINE_CRLF ||
|
309
|
+
option_bits == PCRE_NEWLINE_ANYCRLF;
|
310
|
+
|
311
|
+
/* Loop for second and subsequent matches */
|
312
|
+
|
313
|
+
for (;;)
|
314
|
+
{
|
315
|
+
int options = 0; /* Normally no options */
|
316
|
+
int start_offset = ovector[1]; /* Start at end of previous match */
|
317
|
+
|
318
|
+
/* If the previous match was for an empty string, we are finished if we are
|
319
|
+
at the end of the subject. Otherwise, arrange to run another match at the
|
320
|
+
same point to see if a non-empty match can be found. */
|
321
|
+
|
322
|
+
if (ovector[0] == ovector[1])
|
323
|
+
{
|
324
|
+
if (ovector[0] == subject_length) break;
|
325
|
+
options = PCRE_NOTEMPTY_ATSTART | PCRE_ANCHORED;
|
326
|
+
}
|
327
|
+
|
328
|
+
/* Run the next matching operation */
|
329
|
+
|
330
|
+
rc = pcre_exec(
|
331
|
+
re, /* the compiled pattern */
|
332
|
+
NULL, /* no extra data - we didn't study the pattern */
|
333
|
+
subject, /* the subject string */
|
334
|
+
subject_length, /* the length of the subject */
|
335
|
+
start_offset, /* starting offset in the subject */
|
336
|
+
options, /* options */
|
337
|
+
ovector, /* output vector for substring information */
|
338
|
+
OVECCOUNT); /* number of elements in the output vector */
|
339
|
+
|
340
|
+
/* This time, a result of NOMATCH isn't an error. If the value in "options"
|
341
|
+
is zero, it just means we have found all possible matches, so the loop ends.
|
342
|
+
Otherwise, it means we have failed to find a non-empty-string match at a
|
343
|
+
point where there was a previous empty-string match. In this case, we do what
|
344
|
+
Perl does: advance the matching position by one character, and continue. We
|
345
|
+
do this by setting the "end of previous match" offset, because that is picked
|
346
|
+
up at the top of the loop as the point at which to start again.
|
347
|
+
|
348
|
+
There are two complications: (a) When CRLF is a valid newline sequence, and
|
349
|
+
the current position is just before it, advance by an extra byte. (b)
|
350
|
+
Otherwise we must ensure that we skip an entire UTF-8 character if we are in
|
351
|
+
UTF-8 mode. */
|
352
|
+
|
353
|
+
if (rc == PCRE_ERROR_NOMATCH)
|
354
|
+
{
|
355
|
+
if (options == 0) break; /* All matches found */
|
356
|
+
ovector[1] = start_offset + 1; /* Advance one byte */
|
357
|
+
if (crlf_is_newline && /* If CRLF is newline & */
|
358
|
+
start_offset < subject_length - 1 && /* we are at CRLF, */
|
359
|
+
subject[start_offset] == '\er' &&
|
360
|
+
subject[start_offset + 1] == '\en')
|
361
|
+
ovector[1] += 1; /* Advance by one more. */
|
362
|
+
else if (utf8) /* Otherwise, ensure we */
|
363
|
+
{ /* advance a whole UTF-8 */
|
364
|
+
while (ovector[1] < subject_length) /* character. */
|
365
|
+
{
|
366
|
+
if ((subject[ovector[1]] & 0xc0) != 0x80) break;
|
367
|
+
ovector[1] += 1;
|
368
|
+
}
|
369
|
+
}
|
370
|
+
continue; /* Go round the loop again */
|
371
|
+
}
|
372
|
+
|
373
|
+
/* Other matching errors are not recoverable. */
|
374
|
+
|
375
|
+
if (rc < 0)
|
376
|
+
{
|
377
|
+
printf("Matching error %d\en", rc);
|
378
|
+
pcre_free(re); /* Release memory used for the compiled pattern */
|
379
|
+
return 1;
|
380
|
+
}
|
381
|
+
|
382
|
+
/* Match succeded */
|
383
|
+
|
384
|
+
printf("\enMatch succeeded again at offset %d\en", ovector[0]);
|
385
|
+
|
386
|
+
/* The match succeeded, but the output vector wasn't big enough. */
|
387
|
+
|
388
|
+
if (rc == 0)
|
389
|
+
{
|
390
|
+
rc = OVECCOUNT/3;
|
391
|
+
printf("ovector only has room for %d captured substrings\en", rc - 1);
|
392
|
+
}
|
393
|
+
|
394
|
+
/* As before, show substrings stored in the output vector by number, and then
|
395
|
+
also any named substrings. */
|
396
|
+
|
397
|
+
for (i = 0; i < rc; i++)
|
398
|
+
{
|
399
|
+
char *substring_start = subject + ovector[2*i];
|
400
|
+
int substring_length = ovector[2*i+1] - ovector[2*i];
|
401
|
+
printf("%2d: %.*s\en", i, substring_length, substring_start);
|
402
|
+
}
|
403
|
+
|
404
|
+
if (namecount <= 0) printf("No named substrings\en"); else
|
405
|
+
{
|
406
|
+
unsigned char *tabptr = name_table;
|
407
|
+
printf("Named substrings\en");
|
408
|
+
for (i = 0; i < namecount; i++)
|
409
|
+
{
|
410
|
+
int n = (tabptr[0] << 8) | tabptr[1];
|
411
|
+
printf("(%d) %*s: %.*s\en", n, name_entry_size - 3, tabptr + 2,
|
412
|
+
ovector[2*n+1] - ovector[2*n], subject + ovector[2*n]);
|
413
|
+
tabptr += name_entry_size;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
} /* End of loop to find second and subsequent matches */
|
417
|
+
|
418
|
+
printf("\en");
|
419
|
+
pcre_free(re); /* Release memory used for the compiled pattern */
|
420
|
+
return 0;
|
421
|
+
}
|
422
|
+
|
423
|
+
/* End of pcredemo.c */
|
424
|
+
.EE
|