rroonga 6.1.0-x86-mingw32 → 6.1.3-x86-mingw32

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