| 1 | /* |
| 2 | Copyright (C) 2017-2018 Brazil |
| 3 | Copyright (C) 2018-2026 Sutou Kouhei <[email protected]> |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with this library; if not, write to the Free Software |
| 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | */ |
| 19 | |
| 20 | #include "grn.h"cxx . . $ `<file>/lib/grn.h`/ |
| 21 | #include "grn_ctx.h"cxx . . $ `<file>/lib/grn_ctx.h`/ |
| 22 | #include "grn_dat.h"cxx . . $ `<file>/lib/grn_dat.h`/ |
| 23 | #include "grn_hash.h"cxx . . $ `<file>/lib/grn_hash.h`/ |
| 24 | #include "grn_pat.h"cxx . . $ `<file>/lib/grn_pat.h`/ |
| 25 | |
| 26 | #include <stdio.h> |
| 27 | |
| 28 | static const char *OPTION_NAME_DEFAULT_TOKENIZERcxx . . $ OPTION_NAME_DEFAULT_TOKENIZER. = "default_tokenizer"; |
| 29 | static const char *OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER. = "normalizer"; |
| 30 | static const char *OPTION_NAME_TOKEN_FILTERcxx . . $ OPTION_NAME_TOKEN_FILTER. = "token_filter"; |
| 31 | static const char *OPTION_NAME_EXTRACTORcxx . . $ OPTION_NAME_EXTRACTOR. = "extractor"; |
| 32 | |
| 33 | void |
| 34 | grn_table_module_initcxx . . $ grn_table_module_init(a126267325ea3924).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_table_modulecxx . . $ grn_table_module# *module, grn_idcxx . . $ grn_id# module_id) |
| 35 | { |
| 36 | if (module_id == GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!) { |
| 37 | module->proccxx . . $ $anonymous_type_7ca5847f2bc55948_0#proc. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 38 | } else { |
| 39 | module->proccxx . . $ $anonymous_type_7ca5847f2bc55948_0#proc. = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, module_id); |
| 40 | } |
| 41 | module->optionscxx . . $ $anonymous_type_7ca5847f2bc55948_0#options. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 42 | module->options_revisioncxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_revision. = GRN_OPTION_REVISION_NONEcxx . . $ `include/groonga/option.h:26:9`!; |
| 43 | module->options_close_funccxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_close_func. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 44 | CRITICAL_SECTION_INITcxx . . $ `lib/grn.h:226:11`!(module->lock); |
| 45 | } |
| 46 | |
| 47 | static void |
| 48 | grn_table_module_fin_optionscxx . . $ grn_table_module_fin_options(ca6eb248c4ceb5d7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_table_modulecxx . . $ grn_table_module# *module) |
| 49 | { |
| 50 | if (module->optionscxx . . $ $anonymous_type_7ca5847f2bc55948_0#options. && module->options_close_funccxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_close_func.) { |
| 51 | module->options_close_funccxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_close_func.(ctx, module->optionscxx . . $ $anonymous_type_7ca5847f2bc55948_0#options.); |
| 52 | module->optionscxx . . $ $anonymous_type_7ca5847f2bc55948_0#options. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 53 | module->options_revisioncxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_revision. = GRN_OPTION_REVISION_NONEcxx . . $ `include/groonga/option.h:26:9`!; |
| 54 | module->options_close_funccxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_close_func. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | void |
| 59 | grn_table_module_fincxx . . $ grn_table_module_fin(ca6eb248c4ceb5d7).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_table_modulecxx . . $ grn_table_module# *module) |
| 60 | { |
| 61 | grn_table_module_fin_optionscxx . . $ grn_table_module_fin_options(ca6eb248c4ceb5d7).(ctx, module); |
| 62 | CRITICAL_SECTION_FINcxx . . $ `lib/grn.h:229:11`!(module->lock); |
| 63 | } |
| 64 | |
| 65 | void |
| 66 | grn_table_module_set_proccxx . . $ grn_table_module_set_proc(f803b1f1478a4c6c).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_table_modulecxx . . $ grn_table_module# *module, grn_objcxx . . $ grn_obj# *proc) |
| 67 | { |
| 68 | CRITICAL_SECTION_ENTERcxx . . $ `lib/grn.h:227:11`!(module->lock); |
| 69 | grn_table_module_fin_optionscxx . . $ grn_table_module_fin_options(ca6eb248c4ceb5d7).(ctx, module); |
| 70 | |
| 71 | module->proccxx . . $ $anonymous_type_7ca5847f2bc55948_0#proc. = proc; |
| 72 | CRITICAL_SECTION_LEAVEcxx . . $ `lib/grn.h:228:11`!(module->lock); |
| 73 | } |
| 74 | |
| 75 | static void |
| 76 | grn_table_module_set_options_without_lockcxx . . $ grn_table_module_set_options_without_lock(1fe92ee9cad215e9).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 77 | grn_table_modulecxx . . $ grn_table_module# *module, |
| 78 | void *options, |
| 79 | grn_option_revisioncxx . . $ grn_option_revision# revision, |
| 80 | grn_close_funccxx . . $ grn_close_func# close_func) |
| 81 | { |
| 82 | grn_table_module_fin_optionscxx . . $ grn_table_module_fin_options(ca6eb248c4ceb5d7).(ctx, module); |
| 83 | |
| 84 | module->optionscxx . . $ $anonymous_type_7ca5847f2bc55948_0#options. = options; |
| 85 | module->options_revisioncxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_revision. = revision; |
| 86 | module->options_close_funccxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_close_func. = close_func; |
| 87 | } |
| 88 | |
| 89 | void |
| 90 | grn_table_module_set_optionscxx . . $ grn_table_module_set_options(1fe92ee9cad215e9).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 91 | grn_table_modulecxx . . $ grn_table_module# *module, |
| 92 | void *options, |
| 93 | grn_option_revisioncxx . . $ grn_option_revision# revision, |
| 94 | grn_close_funccxx . . $ grn_close_func# close_func) |
| 95 | { |
| 96 | CRITICAL_SECTION_ENTERcxx . . $ `lib/grn.h:227:11`!(module->lock); |
| 97 | grn_table_module_set_options_without_lockcxx . . $ grn_table_module_set_options_without_lock(1fe92ee9cad215e9).(ctx, |
| 98 | module, |
| 99 | options, |
| 100 | revision, |
| 101 | close_func); |
| 102 | CRITICAL_SECTION_LEAVEcxx . . $ `lib/grn.h:228:11`!(module->lock); |
| 103 | } |
| 104 | |
| 105 | void |
| 106 | grn_table_modules_initcxx . . $ grn_table_modules_init(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *modules_buffer) |
| 107 | { |
| 108 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(modules_buffer, 0); |
| 109 | } |
| 110 | |
| 111 | void |
| 112 | grn_table_modules_fincxx . . $ grn_table_modules_fin(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *modules_buffer) |
| 113 | { |
| 114 | grn_table_modules_rewindcxx . . $ grn_table_modules_rewind(cda3a5f3c2e53c6b).(ctx, modules_buffer); |
| 115 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, modules_buffer); |
| 116 | } |
| 117 | |
| 118 | void |
| 119 | grn_table_modules_addcxx . . $ grn_table_modules_add(99eba0d3a8372d65).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *modules_buffer, grn_objcxx . . $ grn_obj# *proc) |
| 120 | { |
| 121 | grn_bulk_spacecxx . . $ grn_bulk_space(f9a66385f261f61d).(ctx, modules_buffer, sizeof(grn_table_modulecxx . . $ grn_table_module#)); |
| 122 | size_t n = GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(modules_buffer) / sizeof(grn_table_modulecxx . . $ grn_table_module#); |
| 123 | grn_table_modulecxx . . $ grn_table_module# *module = |
| 124 | ((grn_table_modulecxx . . $ grn_table_module# *)GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(modules_buffer)) + n - 1; |
| 125 | grn_table_module_initcxx . . $ grn_table_module_init(a126267325ea3924).(ctx, module, grn_obj_idcxx . . $ grn_obj_id(8dd58acc9865e889).(ctx, proc)); |
| 126 | grn_table_module_set_proccxx . . $ grn_table_module_set_proc(f803b1f1478a4c6c).(ctx, module, proc); |
| 127 | } |
| 128 | |
| 129 | void |
| 130 | grn_table_modules_rewindcxx . . $ grn_table_modules_rewind(cda3a5f3c2e53c6b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *modules_buffer) |
| 131 | { |
| 132 | grn_table_modulecxx . . $ grn_table_module# *modules = (grn_table_modulecxx . . $ grn_table_module# *)GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(modules_buffer); |
| 133 | size_t n = GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(modules_buffer) / sizeof(grn_table_modulecxx . . $ grn_table_module#); |
| 134 | size_t i; |
| 135 | for (i = 0; i < n; i++) { |
| 136 | grn_table_module_fincxx . . $ grn_table_module_fin(ca6eb248c4ceb5d7).(ctx, modules + i); |
| 137 | } |
| 138 | GRN_BULK_REWINDcxx . . $ `include/groonga/groonga.h:2599:9`!(modules_buffer); |
| 139 | } |
| 140 | |
| 141 | grn_table_modulecxx . . $ grn_table_module# * |
| 142 | grn_table_modules_get_modulecxx . . $ grn_table_modules_get_module(14b65aa6e49d0033).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *modules_buffer, size_t i) |
| 143 | { |
| 144 | grn_table_modulecxx . . $ grn_table_module# *modules = (grn_table_modulecxx . . $ grn_table_module# *)GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(modules_buffer); |
| 145 | size_t n = GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(modules_buffer) / sizeof(grn_table_modulecxx . . $ grn_table_module#); |
| 146 | if (i >= n) { |
| 147 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 148 | } |
| 149 | return modules + i; |
| 150 | } |
| 151 | |
| 152 | grn_objcxx . . $ grn_obj# * |
| 153 | grn_table_modules_get_proccxx . . $ grn_table_modules_get_proc(4cf6cb25ccc4ff8b).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *modules_buffer, size_t i) |
| 154 | { |
| 155 | grn_table_modulecxx . . $ grn_table_module# *module = |
| 156 | grn_table_modules_get_modulecxx . . $ grn_table_modules_get_module(14b65aa6e49d0033).(ctx, modules_buffer, i); |
| 157 | if (!module) { |
| 158 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 159 | } |
| 160 | return module->proccxx . . $ $anonymous_type_7ca5847f2bc55948_0#proc.; |
| 161 | } |
| 162 | |
| 163 | static grn_rccxx . . $ grn_rc# |
| 164 | grn_table_set_module_optionscxx . . $ grn_table_set_module_options(461d4f21d878c898).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 165 | grn_objcxx . . $ grn_obj# *table, |
| 166 | const char *module_name, |
| 167 | grn_objcxx . . $ grn_obj# *options, |
| 168 | const char *context_tag) |
| 169 | { |
| 170 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 171 | |
| 172 | if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, table)) { |
| 173 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 174 | "[table][%s][options][set] table must be key table: %s", |
| 175 | context_tag, |
| 176 | table ? grn_obj_type_to_string(table->header.type) : "(null)"); |
| 177 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 178 | } |
| 179 | |
| 180 | if (options && options->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_VECTORcxx . . $ `include/groonga/groonga.h:877:9`! && |
| 181 | grn_vector_sizecxx . . $ grn_vector_size(8dd58acc9865e889).(ctx, options) > 0) { |
| 182 | grn_obj_set_option_valuescxx . . $ grn_obj_set_option_values(7fd90b291c306ffc).(ctx, table, module_name, -1, options); |
| 183 | } else { |
| 184 | grn_objcxx . . $ grn_obj# current_options; |
| 185 | GRN_VOID_INITcxx . . $ `include/groonga/groonga.h:2749:9`!(¤t_options); |
| 186 | grn_obj_get_option_valuescxx . . $ grn_obj_get_option_values(ec9d8fe34bb0e258).(ctx, |
| 187 | table, |
| 188 | module_name, |
| 189 | -1, |
| 190 | GRN_OPTION_REVISION_NONEcxx . . $ `include/groonga/option.h:26:9`!, |
| 191 | ¤t_options); |
| 192 | if (current_options.headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_VECTORcxx . . $ `include/groonga/groonga.h:877:9`! && |
| 193 | grn_vector_sizecxx . . $ grn_vector_size(8dd58acc9865e889).(ctx, ¤t_options) > 1) { |
| 194 | grn_objcxx . . $ grn_obj# empty_options; |
| 195 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&empty_options, GRN_OBJ_VECTORcxx . . $ `include/groonga/groonga.h:2734:9`!); |
| 196 | grn_obj_set_option_valuescxx . . $ grn_obj_set_option_values(7fd90b291c306ffc).(ctx, table, module_name, -1, &empty_options); |
| 197 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &empty_options); |
| 198 | } |
| 199 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, ¤t_options); |
| 200 | } |
| 201 | |
| 202 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 203 | } |
| 204 | |
| 205 | static grn_rccxx . . $ grn_rc# |
| 206 | grn_table_get_module_optionscxx . . $ grn_table_get_module_options(461d4f21d878c898).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 207 | grn_objcxx . . $ grn_obj# *table, |
| 208 | const char *module_name, |
| 209 | grn_objcxx . . $ grn_obj# *options, |
| 210 | const char *context_tag) |
| 211 | { |
| 212 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 213 | |
| 214 | if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, table)) { |
| 215 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 216 | "[table][%s][options][get] table must be key table: %s", |
| 217 | context_tag, |
| 218 | table ? grn_obj_type_to_string(table->header.type) : "(null)"); |
| 219 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 220 | } |
| 221 | |
| 222 | grn_obj_get_option_valuescxx . . $ grn_obj_get_option_values(ec9d8fe34bb0e258).(ctx, |
| 223 | table, |
| 224 | module_name, |
| 225 | -1, |
| 226 | GRN_OPTION_REVISION_NONEcxx . . $ `include/groonga/option.h:26:9`!, |
| 227 | options); |
| 228 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 229 | } |
| 230 | |
| 231 | typedef structcxx . . $ $anonymous_type_3909f26ee74613da_0# { |
| 232 | const char *context_tagcxx . . $ $anonymous_type_3909f26ee74613da_0#context_tag.; |
| 233 | const char *module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name.; |
| 234 | grn_info_typecxx . . $ grn_info_type# typecxx . . $ $anonymous_type_3909f26ee74613da_0#type.; |
| 235 | size_t indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index.; |
| 236 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func.; |
| 237 | grn_close_funccxx . . $ grn_close_func# close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func.; |
| 238 | void *user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data.; |
| 239 | } grn_table_cache_datacxx . . $ grn_table_cache_data#; |
| 240 | |
| 241 | static void * |
| 242 | grn_table_cache_module_optionscxx . . $ grn_table_cache_module_options(ee383a52e43daadc).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 243 | grn_objcxx . . $ grn_obj# *table, |
| 244 | grn_table_cache_datacxx . . $ grn_table_cache_data# *data) |
| 245 | { |
| 246 | grn_table_modulecxx . . $ grn_table_module# *module = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 247 | grn_option_revisioncxx . . $ grn_option_revision# revision; |
| 248 | grn_objcxx . . $ grn_obj# raw_options; |
| 249 | void *options = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 250 | |
| 251 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 252 | |
| 253 | if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, table)) { |
| 254 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 255 | "[table][%s][options][cache] table must be key table: %s", |
| 256 | data->context_tag, |
| 257 | table ? grn_obj_type_to_string(table->header.type) : "(null)"); |
| 258 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 259 | } |
| 260 | |
| 261 | switch (data->typecxx . . $ $anonymous_type_3909f26ee74613da_0#type.) { |
| 262 | case GRN_INFO_DEFAULT_TOKENIZERcxx . . $ GRN_INFO_DEFAULT_TOKENIZER.: |
| 263 | switch (table->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 264 | case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!: |
| 265 | module = &(((grn_hashcxx . . $ grn_hash# *)table)->tokenizercxx . . $ _grn_hash#tokenizer.); |
| 266 | break; |
| 267 | case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!: |
| 268 | module = &(((grn_patcxx . . $ grn_pat# *)table)->tokenizercxx . . $ _grn_pat#tokenizer.); |
| 269 | break; |
| 270 | case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!: |
| 271 | module = &(((grn_datcxx . . $ grn_dat# *)table)->tokenizercxx . . $ _grn_dat#tokenizer.); |
| 272 | break; |
| 273 | default: |
| 274 | break; |
| 275 | } |
| 276 | break; |
| 277 | case GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER.: |
| 278 | switch (table->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 279 | case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!: |
| 280 | module = grn_table_modules_get_modulecxx . . $ grn_table_modules_get_module(14b65aa6e49d0033).(ctx, |
| 281 | &(((grn_hashcxx . . $ grn_hash# *)table)->normalizerscxx . . $ _grn_hash#normalizers.), |
| 282 | 0); |
| 283 | break; |
| 284 | case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!: |
| 285 | module = grn_table_modules_get_modulecxx . . $ grn_table_modules_get_module(14b65aa6e49d0033).(ctx, |
| 286 | &(((grn_patcxx . . $ grn_pat# *)table)->normalizerscxx . . $ _grn_pat#normalizers.), |
| 287 | 0); |
| 288 | break; |
| 289 | case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!: |
| 290 | module = grn_table_modules_get_modulecxx . . $ grn_table_modules_get_module(14b65aa6e49d0033).(ctx, |
| 291 | &(((grn_datcxx . . $ grn_dat# *)table)->normalizerscxx . . $ _grn_dat#normalizers.), |
| 292 | 0); |
| 293 | break; |
| 294 | default: |
| 295 | break; |
| 296 | } |
| 297 | break; |
| 298 | case GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS.: |
| 299 | { |
| 300 | grn_objcxx . . $ grn_obj# *token_filters = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 301 | switch (table->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 302 | case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!: |
| 303 | token_filters = &(((grn_hashcxx . . $ grn_hash# *)table)->token_filterscxx . . $ _grn_hash#token_filters.); |
| 304 | break; |
| 305 | case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!: |
| 306 | token_filters = &(((grn_patcxx . . $ grn_pat# *)table)->token_filterscxx . . $ _grn_pat#token_filters.); |
| 307 | break; |
| 308 | case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!: |
| 309 | token_filters = &(((grn_datcxx . . $ grn_dat# *)table)->token_filterscxx . . $ _grn_dat#token_filters.); |
| 310 | break; |
| 311 | default: |
| 312 | break; |
| 313 | } |
| 314 | module = ((grn_table_modulecxx . . $ grn_table_module# *)GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(token_filters)) + data->indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index.; |
| 315 | } |
| 316 | break; |
| 317 | case GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS.: |
| 318 | { |
| 319 | grn_objcxx . . $ grn_obj# *normalizers = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 320 | switch (table->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 321 | case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!: |
| 322 | normalizers = &(((grn_hashcxx . . $ grn_hash# *)table)->normalizerscxx . . $ _grn_hash#normalizers.); |
| 323 | break; |
| 324 | case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!: |
| 325 | normalizers = &(((grn_patcxx . . $ grn_pat# *)table)->normalizerscxx . . $ _grn_pat#normalizers.); |
| 326 | break; |
| 327 | case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!: |
| 328 | normalizers = &(((grn_datcxx . . $ grn_dat# *)table)->normalizerscxx . . $ _grn_dat#normalizers.); |
| 329 | break; |
| 330 | default: |
| 331 | break; |
| 332 | } |
| 333 | module = ((grn_table_modulecxx . . $ grn_table_module# *)GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(normalizers)) + data->indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index.; |
| 334 | } |
| 335 | break; |
| 336 | case GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS.: |
| 337 | { |
| 338 | grn_objcxx . . $ grn_obj# *extractors = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 339 | switch (table->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 340 | case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!: |
| 341 | extractors = &(((grn_hashcxx . . $ grn_hash# *)table)->extractorscxx . . $ _grn_hash#extractors.); |
| 342 | break; |
| 343 | case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!: |
| 344 | extractors = &(((grn_patcxx . . $ grn_pat# *)table)->extractorscxx . . $ _grn_pat#extractors.); |
| 345 | break; |
| 346 | case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!: |
| 347 | extractors = &(((grn_datcxx . . $ grn_dat# *)table)->extractorscxx . . $ _grn_dat#extractors.); |
| 348 | break; |
| 349 | default: |
| 350 | break; |
| 351 | } |
| 352 | module = ((grn_table_modulecxx . . $ grn_table_module# *)GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(extractors)) + data->indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index.; |
| 353 | } |
| 354 | break; |
| 355 | default: |
| 356 | break; |
| 357 | } |
| 358 | |
| 359 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&raw_options, GRN_OBJ_VECTORcxx . . $ `include/groonga/groonga.h:2734:9`!); |
| 360 | if (module) { |
| 361 | CRITICAL_SECTION_ENTERcxx . . $ `lib/grn.h:227:11`!(module->lock); |
| 362 | revision = grn_obj_get_option_valuescxx . . $ grn_obj_get_option_values(ec9d8fe34bb0e258).(ctx, |
| 363 | table, |
| 364 | data->module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name., |
| 365 | -1, |
| 366 | module->options_revisioncxx . . $ $anonymous_type_7ca5847f2bc55948_0#options_revision., |
| 367 | &raw_options); |
| 368 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_update = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 369 | if (revision == GRN_OPTION_REVISION_UNCHANGEDcxx . . $ `include/groonga/option.h:27:9`!) { |
| 370 | need_update = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 371 | } |
| 372 | if (revision == GRN_OPTION_REVISION_NONEcxx . . $ `include/groonga/option.h:26:9`! && module->optionscxx . . $ $anonymous_type_7ca5847f2bc55948_0#options.) { |
| 373 | need_update = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 374 | } |
| 375 | if (need_update) { |
| 376 | options = data->open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func.(ctx, |
| 377 | module->proccxx . . $ $anonymous_type_7ca5847f2bc55948_0#proc., |
| 378 | &raw_options, |
| 379 | data->user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data.); |
| 380 | if (ctx->rccxx . . $ _grn_ctx#rc. == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 381 | grn_table_module_set_options_without_lockcxx . . $ grn_table_module_set_options_without_lock(1fe92ee9cad215e9).(ctx, |
| 382 | module, |
| 383 | options, |
| 384 | revision, |
| 385 | data->close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func.); |
| 386 | } else if (options) { |
| 387 | data->close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func.(ctx, options); |
| 388 | } |
| 389 | } |
| 390 | } |
| 391 | CRITICAL_SECTION_LEAVEcxx . . $ `lib/grn.h:228:11`!(module->lock); |
| 392 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &raw_options); |
| 393 | |
| 394 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(module->options); |
| 395 | } |
| 396 | |
| 397 | static void |
| 398 | grn_table_get_module_string_rawcxx . . $ grn_table_get_module_string_raw(67669828e825ddab).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 399 | grn_objcxx . . $ grn_obj# *table, |
| 400 | grn_objcxx . . $ grn_obj# *output, |
| 401 | grn_objcxx . . $ grn_obj# *proc, |
| 402 | const char *module_name) |
| 403 | { |
| 404 | char name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 405 | int name_size; |
| 406 | grn_objcxx . . $ grn_obj# options; |
| 407 | unsigned int n = 0; |
| 408 | |
| 409 | name_size = grn_obj_namecxx . . $ grn_obj_name(a51d1bff955f2f21).(ctx, proc, name, GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!); |
| 410 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, output, name, name_size); |
| 411 | |
| 412 | GRN_VOID_INITcxx . . $ `include/groonga/groonga.h:2749:9`!(&options); |
| 413 | grn_obj_get_option_valuescxx . . $ grn_obj_get_option_values(ec9d8fe34bb0e258).(ctx, |
| 414 | table, |
| 415 | module_name, |
| 416 | -1, |
| 417 | GRN_OPTION_REVISION_NONEcxx . . $ `include/groonga/option.h:26:9`!, |
| 418 | &options); |
| 419 | if (options.headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. != GRN_DB_VOIDcxx . . $ GRN_DB_VOID.) { |
| 420 | n = grn_vector_sizecxx . . $ grn_vector_size(8dd58acc9865e889).(ctx, &options); |
| 421 | } |
| 422 | if (n > 0) { |
| 423 | unsigned int i; |
| 424 | grn_objcxx . . $ grn_obj# option; |
| 425 | |
| 426 | GRN_VOID_INITcxx . . $ `include/groonga/groonga.h:2749:9`!(&option); |
| 427 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, output, "("); |
| 428 | for (i = 0; i < n; i++) { |
| 429 | const char *value; |
| 430 | unsigned int value_size; |
| 431 | grn_idcxx . . $ grn_id# domain; |
| 432 | |
| 433 | if (i > 0) { |
| 434 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, output, ", "); |
| 435 | } |
| 436 | |
| 437 | value_size = |
| 438 | grn_vector_get_elementcxx . . $ grn_vector_get_element(744613554bd9830c).(ctx, &options, i, &value, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, &domain); |
| 439 | grn_obj_reinitcxx . . $ grn_obj_reinit(fc9ea836325dd1d2).(ctx, &option, domain, 0); |
| 440 | grn_bulk_writecxx . . $ grn_bulk_write(4609c18fd87cf054).(ctx, &option, value, value_size); |
| 441 | grn_text_otojcxx . . $ grn_text_otoj(1909183af06c6849).(ctx, output, &option, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 442 | } |
| 443 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, output, ")"); |
| 444 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &option); |
| 445 | } |
| 446 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &options); |
| 447 | } |
| 448 | |
| 449 | static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! |
| 450 | grn_table_using_normalizercxx . . $ grn_table_using_normalizer(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table) |
| 451 | { |
| 452 | grn_idcxx . . $ grn_id# proc_id = GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!; |
| 453 | switch (table->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 454 | case GRN_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:895:9`!: |
| 455 | proc_id = ((grn_hashcxx . . $ grn_hash# *)table)->headercxx . . $ _grn_hash#header..commoncxx . . $ _grn_hash#$anonymous_type_0#common.->normalizercxx . . $ _grn_hash_header_common#normalizer.; |
| 456 | break; |
| 457 | case GRN_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:896:9`!: |
| 458 | proc_id = ((grn_patcxx . . $ grn_pat# *)table)->headercxx . . $ _grn_pat#header.->normalizercxx . . $ grn_pat_header#normalizer.; |
| 459 | break; |
| 460 | case GRN_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:897:9`!: |
| 461 | proc_id = ((grn_datcxx . . $ grn_dat# *)table)->headercxx . . $ _grn_dat#header.->normalizercxx . . $ grn_dat_header#normalizer.; |
| 462 | break; |
| 463 | default: |
| 464 | break; |
| 465 | } |
| 466 | return proc_id != GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!; |
| 467 | } |
| 468 | |
| 469 | static void |
| 470 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 471 | grn_objcxx . . $ grn_obj# *table, |
| 472 | const char *module_name, |
| 473 | uint32_tcxx . . $ uint32_t# i, |
| 474 | grn_info_typecxx . . $ grn_info_type# type, |
| 475 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! for_get, |
| 476 | char real_module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]) |
| 477 | { |
| 478 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_index = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 479 | switch (type) { |
| 480 | case GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER.: |
| 481 | if (for_get) { |
| 482 | need_index = !grn_table_using_normalizercxx . . $ grn_table_using_normalizer(a5760e5c319a06ee).(ctx, table); |
| 483 | } |
| 484 | break; |
| 485 | case GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS.: |
| 486 | if (for_get) { |
| 487 | if (i == 0) { |
| 488 | need_index = !grn_table_using_normalizercxx . . $ grn_table_using_normalizer(a5760e5c319a06ee).(ctx, table); |
| 489 | } else { |
| 490 | need_index = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 491 | } |
| 492 | } else { |
| 493 | need_index = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 494 | } |
| 495 | break; |
| 496 | case GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS.: |
| 497 | need_index = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 498 | break; |
| 499 | case GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS.: |
| 500 | need_index = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 501 | break; |
| 502 | default: |
| 503 | break; |
| 504 | } |
| 505 | |
| 506 | if (need_index) { |
| 507 | grn_snprintfcxx . . $ `include/groonga/portability.h:137:11`!(real_module_name, |
| 508 | GRN_TABLE_MAX_KEY_SIZE, |
| 509 | GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!, |
| 510 | "%s%u", |
| 511 | module_name, |
| 512 | i); |
| 513 | } else { |
| 514 | grn_snprintfcxx . . $ `include/groonga/portability.h:137:11`!(real_module_name, |
| 515 | GRN_TABLE_MAX_KEY_SIZE, |
| 516 | GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!, |
| 517 | "%s", |
| 518 | module_name); |
| 519 | } |
| 520 | } |
| 521 | |
| 522 | static grn_rccxx . . $ grn_rc# |
| 523 | grn_table_get_module_stringcxx . . $ grn_table_get_module_string(25e151eb767e62f7).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 524 | grn_objcxx . . $ grn_obj# *table, |
| 525 | grn_objcxx . . $ grn_obj# *output, |
| 526 | grn_info_typecxx . . $ grn_info_type# type, |
| 527 | const char *module_name, |
| 528 | const char *context_tag) |
| 529 | { |
| 530 | grn_objcxx . . $ grn_obj# *proc; |
| 531 | |
| 532 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 533 | |
| 534 | if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, table)) { |
| 535 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 536 | "[table][%s][options][string] table must be key table: %s", |
| 537 | context_tag, |
| 538 | table ? grn_obj_type_to_string(table->header.type) : "(null)"); |
| 539 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 540 | } |
| 541 | |
| 542 | proc = grn_obj_get_infocxx . . $ grn_obj_get_info(333a81d4a8f20670).(ctx, table, type, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 543 | if (!proc) { |
| 544 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 545 | } |
| 546 | |
| 547 | grn_table_get_module_string_rawcxx . . $ grn_table_get_module_string_raw(67669828e825ddab).(ctx, table, output, proc, module_name); |
| 548 | |
| 549 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 550 | } |
| 551 | |
| 552 | static grn_rccxx . . $ grn_rc# |
| 553 | grn_table_get_modules_stringcxx . . $ grn_table_get_modules_string(25e151eb767e62f7).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 554 | grn_objcxx . . $ grn_obj# *table, |
| 555 | grn_objcxx . . $ grn_obj# *output, |
| 556 | grn_info_typecxx . . $ grn_info_type# type, |
| 557 | const char *module_name, |
| 558 | const char *context_tag) |
| 559 | { |
| 560 | grn_objcxx . . $ grn_obj# procs; |
| 561 | unsigned int i, n; |
| 562 | |
| 563 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 564 | |
| 565 | if (!grn_obj_is_table_with_keycxx . . $ grn_obj_is_table_with_key(a5760e5c319a06ee).(ctx, table)) { |
| 566 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 567 | "[table][%s][options][string] table must be key table: %s", |
| 568 | context_tag, |
| 569 | table ? grn_obj_type_to_string(table->header.type) : "(null)"); |
| 570 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 571 | } |
| 572 | |
| 573 | GRN_PTR_INITcxx . . $ `include/groonga/groonga.h:2869:9`!(&procs, GRN_OBJ_VECTORcxx . . $ `include/groonga/groonga.h:2734:9`!, GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!); |
| 574 | grn_obj_get_infocxx . . $ grn_obj_get_info(333a81d4a8f20670).(ctx, table, type, &procs); |
| 575 | if (GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(&procs) == 0) { |
| 576 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &procs); |
| 577 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 578 | } |
| 579 | |
| 580 | n = grn_vector_sizecxx . . $ grn_vector_size(8dd58acc9865e889).(ctx, &procs); |
| 581 | if (n == 0) { |
| 582 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 583 | } |
| 584 | |
| 585 | for (i = 0; i < n; i++) { |
| 586 | char real_module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 587 | grn_objcxx . . $ grn_obj# *proc = GRN_PTR_VALUE_ATcxx . . $ `include/groonga/groonga.h:3150:9`!(&procs, i); |
| 588 | |
| 589 | if (i > 0) { |
| 590 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, output, ", "); |
| 591 | } |
| 592 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 593 | table, |
| 594 | module_name, |
| 595 | i, |
| 596 | type, |
| 597 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 598 | real_module_name); |
| 599 | grn_table_get_module_string_rawcxx . . $ grn_table_get_module_string_raw(67669828e825ddab).(ctx, table, output, proc, real_module_name); |
| 600 | } |
| 601 | |
| 602 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &procs); |
| 603 | |
| 604 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 605 | } |
| 606 | |
| 607 | grn_rccxx . . $ grn_rc# |
| 608 | grn_table_set_default_tokenizer_optionscxx . . $ grn_table_set_default_tokenizer_options(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 609 | grn_objcxx . . $ grn_obj# *table, |
| 610 | grn_objcxx . . $ grn_obj# *options) |
| 611 | { |
| 612 | return grn_table_set_module_optionscxx . . $ grn_table_set_module_options(461d4f21d878c898).(ctx, |
| 613 | table, |
| 614 | OPTION_NAME_DEFAULT_TOKENIZERcxx . . $ OPTION_NAME_DEFAULT_TOKENIZER., |
| 615 | options, |
| 616 | "default-tokenizer"); |
| 617 | } |
| 618 | |
| 619 | grn_rccxx . . $ grn_rc# |
| 620 | grn_table_get_default_tokenizer_optionscxx . . $ grn_table_get_default_tokenizer_options(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 621 | grn_objcxx . . $ grn_obj# *table, |
| 622 | grn_objcxx . . $ grn_obj# *options) |
| 623 | { |
| 624 | return grn_table_get_module_optionscxx . . $ grn_table_get_module_options(461d4f21d878c898).(ctx, |
| 625 | table, |
| 626 | OPTION_NAME_DEFAULT_TOKENIZERcxx . . $ OPTION_NAME_DEFAULT_TOKENIZER., |
| 627 | options, |
| 628 | "default-tokenizer"); |
| 629 | } |
| 630 | |
| 631 | void * |
| 632 | grn_table_cache_default_tokenizer_optionscxx . . $ grn_table_cache_default_tokenizer_options(d2cf5c417953e151).( |
| 633 | grn_ctxcxx . . $ grn_ctx# *ctx, |
| 634 | grn_objcxx . . $ grn_obj# *table, |
| 635 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_func, |
| 636 | grn_close_funccxx . . $ grn_close_func# close_options_func, |
| 637 | void *user_data) |
| 638 | { |
| 639 | grn_table_cache_datacxx . . $ grn_table_cache_data# data; |
| 640 | |
| 641 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(&data, 0, sizeof(data)); |
| 642 | data.context_tagcxx . . $ $anonymous_type_3909f26ee74613da_0#context_tag. = "default-tokenizer"; |
| 643 | data.module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name. = OPTION_NAME_DEFAULT_TOKENIZERcxx . . $ OPTION_NAME_DEFAULT_TOKENIZER.; |
| 644 | data.typecxx . . $ $anonymous_type_3909f26ee74613da_0#type. = GRN_INFO_DEFAULT_TOKENIZERcxx . . $ GRN_INFO_DEFAULT_TOKENIZER.; |
| 645 | data.open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func. = open_options_func; |
| 646 | data.close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func. = close_options_func; |
| 647 | data.user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data. = user_data; |
| 648 | return grn_table_cache_module_optionscxx . . $ grn_table_cache_module_options(ee383a52e43daadc).(ctx, table, &data); |
| 649 | } |
| 650 | |
| 651 | grn_rccxx . . $ grn_rc# |
| 652 | grn_table_get_default_tokenizer_stringcxx . . $ grn_table_get_default_tokenizer_string(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 653 | grn_objcxx . . $ grn_obj# *table, |
| 654 | grn_objcxx . . $ grn_obj# *output) |
| 655 | { |
| 656 | return grn_table_get_module_stringcxx . . $ grn_table_get_module_string(25e151eb767e62f7).(ctx, |
| 657 | table, |
| 658 | output, |
| 659 | GRN_INFO_DEFAULT_TOKENIZERcxx . . $ GRN_INFO_DEFAULT_TOKENIZER., |
| 660 | OPTION_NAME_DEFAULT_TOKENIZERcxx . . $ OPTION_NAME_DEFAULT_TOKENIZER., |
| 661 | "default-tokenizer"); |
| 662 | } |
| 663 | |
| 664 | grn_rccxx . . $ grn_rc# |
| 665 | grn_table_set_normalizer_optionscxx . . $ grn_table_set_normalizer_options(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, grn_objcxx . . $ grn_obj# *options) |
| 666 | { |
| 667 | return grn_table_set_module_optionscxx . . $ grn_table_set_module_options(461d4f21d878c898).(ctx, |
| 668 | table, |
| 669 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 670 | options, |
| 671 | "normalizer"); |
| 672 | } |
| 673 | |
| 674 | grn_rccxx . . $ grn_rc# |
| 675 | grn_table_get_normalizer_optionscxx . . $ grn_table_get_normalizer_options(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, grn_objcxx . . $ grn_obj# *options) |
| 676 | { |
| 677 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 678 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 679 | table, |
| 680 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 681 | 0, |
| 682 | GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER., |
| 683 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 684 | module_name); |
| 685 | return grn_table_get_module_optionscxx . . $ grn_table_get_module_options(461d4f21d878c898).(ctx, |
| 686 | table, |
| 687 | module_name, |
| 688 | options, |
| 689 | "normalizer"); |
| 690 | } |
| 691 | |
| 692 | void * |
| 693 | grn_table_cache_normalizer_optionscxx . . $ grn_table_cache_normalizer_options(785493be7159d66d).( |
| 694 | grn_ctxcxx . . $ grn_ctx# *ctx, |
| 695 | grn_objcxx . . $ grn_obj# *table, |
| 696 | grn_objcxx . . $ grn_obj# *string, |
| 697 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_func, |
| 698 | grn_close_funccxx . . $ grn_close_func# close_options_func, |
| 699 | void *user_data) |
| 700 | { |
| 701 | grn_table_cache_datacxx . . $ grn_table_cache_data# data; |
| 702 | |
| 703 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(&data, 0, sizeof(data)); |
| 704 | data.context_tagcxx . . $ $anonymous_type_3909f26ee74613da_0#context_tag. = "normalizer"; |
| 705 | uint32_tcxx . . $ uint32_t# i = grn_string_get_normalizer_indexcxx . . $ grn_string_get_normalizer_index(8dd58acc9865e889).(ctx, string); |
| 706 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 707 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 708 | table, |
| 709 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 710 | i, |
| 711 | GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS., |
| 712 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 713 | module_name); |
| 714 | data.module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name. = module_name; |
| 715 | data.typecxx . . $ $anonymous_type_3909f26ee74613da_0#type. = GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER.; |
| 716 | data.open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func. = open_options_func; |
| 717 | data.close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func. = close_options_func; |
| 718 | data.user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data. = user_data; |
| 719 | return grn_table_cache_module_optionscxx . . $ grn_table_cache_module_options(ee383a52e43daadc).(ctx, table, &data); |
| 720 | } |
| 721 | |
| 722 | grn_rccxx . . $ grn_rc# |
| 723 | grn_table_get_normalizer_stringcxx . . $ grn_table_get_normalizer_string(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, grn_objcxx . . $ grn_obj# *output) |
| 724 | { |
| 725 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 726 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 727 | table, |
| 728 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 729 | 0, |
| 730 | GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER., |
| 731 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 732 | module_name); |
| 733 | return grn_table_get_module_stringcxx . . $ grn_table_get_module_string(25e151eb767e62f7).(ctx, |
| 734 | table, |
| 735 | output, |
| 736 | GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER., |
| 737 | module_name, |
| 738 | "normalizer"); |
| 739 | } |
| 740 | |
| 741 | grn_rccxx . . $ grn_rc# |
| 742 | grn_table_set_normalizers_optionscxx . . $ grn_table_set_normalizers_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 743 | grn_objcxx . . $ grn_obj# *table, |
| 744 | uint32_tcxx . . $ uint32_t# i, |
| 745 | grn_objcxx . . $ grn_obj# *options) |
| 746 | { |
| 747 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 748 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 749 | table, |
| 750 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 751 | i, |
| 752 | GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS., |
| 753 | falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!, |
| 754 | module_name); |
| 755 | return grn_table_set_module_optionscxx . . $ grn_table_set_module_options(461d4f21d878c898).(ctx, |
| 756 | table, |
| 757 | module_name, |
| 758 | options, |
| 759 | "normalizers"); |
| 760 | } |
| 761 | |
| 762 | grn_rccxx . . $ grn_rc# |
| 763 | grn_table_get_normalizers_optionscxx . . $ grn_table_get_normalizers_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 764 | grn_objcxx . . $ grn_obj# *table, |
| 765 | uint32_tcxx . . $ uint32_t# i, |
| 766 | grn_objcxx . . $ grn_obj# *options) |
| 767 | { |
| 768 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 769 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 770 | table, |
| 771 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 772 | i, |
| 773 | GRN_INFO_NORMALIZERcxx . . $ GRN_INFO_NORMALIZER., |
| 774 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 775 | module_name); |
| 776 | return grn_table_get_module_optionscxx . . $ grn_table_get_module_options(461d4f21d878c898).(ctx, |
| 777 | table, |
| 778 | module_name, |
| 779 | options, |
| 780 | "normalizers"); |
| 781 | } |
| 782 | |
| 783 | void * |
| 784 | grn_table_cache_normalizers_optionscxx . . $ grn_table_cache_normalizers_options(98363f246506be11).( |
| 785 | grn_ctxcxx . . $ grn_ctx# *ctx, |
| 786 | grn_objcxx . . $ grn_obj# *table, |
| 787 | uint32_tcxx . . $ uint32_t# i, |
| 788 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_func, |
| 789 | grn_close_funccxx . . $ grn_close_func# close_options_func, |
| 790 | void *user_data) |
| 791 | { |
| 792 | grn_table_cache_datacxx . . $ grn_table_cache_data# data; |
| 793 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 794 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 795 | table, |
| 796 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 797 | i, |
| 798 | GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS., |
| 799 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 800 | module_name); |
| 801 | |
| 802 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(&data, 0, sizeof(data)); |
| 803 | data.context_tagcxx . . $ $anonymous_type_3909f26ee74613da_0#context_tag. = "normalizers"; |
| 804 | data.module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name. = module_name; |
| 805 | data.typecxx . . $ $anonymous_type_3909f26ee74613da_0#type. = GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS.; |
| 806 | data.indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index. = i; |
| 807 | data.open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func. = open_options_func; |
| 808 | data.close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func. = close_options_func; |
| 809 | data.user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data. = user_data; |
| 810 | return grn_table_cache_module_optionscxx . . $ grn_table_cache_module_options(ee383a52e43daadc).(ctx, table, &data); |
| 811 | } |
| 812 | |
| 813 | grn_rccxx . . $ grn_rc# |
| 814 | grn_table_get_normalizers_stringcxx . . $ grn_table_get_normalizers_string(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, grn_objcxx . . $ grn_obj# *output) |
| 815 | { |
| 816 | return grn_table_get_modules_stringcxx . . $ grn_table_get_modules_string(25e151eb767e62f7).(ctx, |
| 817 | table, |
| 818 | output, |
| 819 | GRN_INFO_NORMALIZERScxx . . $ GRN_INFO_NORMALIZERS., |
| 820 | OPTION_NAME_NORMALIZERcxx . . $ OPTION_NAME_NORMALIZER., |
| 821 | "normalizers"); |
| 822 | } |
| 823 | |
| 824 | grn_rccxx . . $ grn_rc# |
| 825 | grn_table_set_token_filter_optionscxx . . $ grn_table_set_token_filter_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 826 | grn_objcxx . . $ grn_obj# *table, |
| 827 | unsigned int i, |
| 828 | grn_objcxx . . $ grn_obj# *options) |
| 829 | { |
| 830 | return grn_table_set_token_filters_optionscxx . . $ grn_table_set_token_filters_options(f5a6f2c02ff50f08).(ctx, table, i, options); |
| 831 | } |
| 832 | |
| 833 | grn_rccxx . . $ grn_rc# |
| 834 | grn_table_set_token_filters_optionscxx . . $ grn_table_set_token_filters_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 835 | grn_objcxx . . $ grn_obj# *table, |
| 836 | uint32_tcxx . . $ uint32_t# i, |
| 837 | grn_objcxx . . $ grn_obj# *options) |
| 838 | { |
| 839 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 840 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 841 | table, |
| 842 | OPTION_NAME_TOKEN_FILTERcxx . . $ OPTION_NAME_TOKEN_FILTER., |
| 843 | i, |
| 844 | GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS., |
| 845 | falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!, |
| 846 | module_name); |
| 847 | return grn_table_set_module_optionscxx . . $ grn_table_set_module_options(461d4f21d878c898).(ctx, |
| 848 | table, |
| 849 | module_name, |
| 850 | options, |
| 851 | "token-filters"); |
| 852 | } |
| 853 | |
| 854 | grn_rccxx . . $ grn_rc# |
| 855 | grn_table_get_token_filter_optionscxx . . $ grn_table_get_token_filter_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 856 | grn_objcxx . . $ grn_obj# *table, |
| 857 | unsigned int i, |
| 858 | grn_objcxx . . $ grn_obj# *options) |
| 859 | { |
| 860 | return grn_table_get_token_filters_optionscxx . . $ grn_table_get_token_filters_options(f5a6f2c02ff50f08).(ctx, table, i, options); |
| 861 | } |
| 862 | |
| 863 | grn_rccxx . . $ grn_rc# |
| 864 | grn_table_get_token_filters_optionscxx . . $ grn_table_get_token_filters_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 865 | grn_objcxx . . $ grn_obj# *table, |
| 866 | uint32_tcxx . . $ uint32_t# i, |
| 867 | grn_objcxx . . $ grn_obj# *options) |
| 868 | { |
| 869 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 870 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 871 | table, |
| 872 | OPTION_NAME_TOKEN_FILTERcxx . . $ OPTION_NAME_TOKEN_FILTER., |
| 873 | i, |
| 874 | GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS., |
| 875 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 876 | module_name); |
| 877 | return grn_table_get_module_optionscxx . . $ grn_table_get_module_options(461d4f21d878c898).(ctx, |
| 878 | table, |
| 879 | module_name, |
| 880 | options, |
| 881 | "token-filters"); |
| 882 | } |
| 883 | |
| 884 | void * |
| 885 | grn_table_cache_token_filter_optionscxx . . $ grn_table_cache_token_filter_options(98363f246506be11).( |
| 886 | grn_ctxcxx . . $ grn_ctx# *ctx, |
| 887 | grn_objcxx . . $ grn_obj# *table, |
| 888 | unsigned int i, |
| 889 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_func, |
| 890 | grn_close_funccxx . . $ grn_close_func# close_options_func, |
| 891 | void *user_data) |
| 892 | { |
| 893 | return grn_table_cache_token_filters_optionscxx . . $ grn_table_cache_token_filters_options(98363f246506be11).(ctx, |
| 894 | table, |
| 895 | i, |
| 896 | open_options_func, |
| 897 | close_options_func, |
| 898 | user_data); |
| 899 | } |
| 900 | |
| 901 | void * |
| 902 | grn_table_cache_token_filters_optionscxx . . $ grn_table_cache_token_filters_options(98363f246506be11).( |
| 903 | grn_ctxcxx . . $ grn_ctx# *ctx, |
| 904 | grn_objcxx . . $ grn_obj# *table, |
| 905 | uint32_tcxx . . $ uint32_t# i, |
| 906 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_func, |
| 907 | grn_close_funccxx . . $ grn_close_func# close_options_func, |
| 908 | void *user_data) |
| 909 | { |
| 910 | grn_table_cache_datacxx . . $ grn_table_cache_data# data; |
| 911 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 912 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 913 | table, |
| 914 | OPTION_NAME_TOKEN_FILTERcxx . . $ OPTION_NAME_TOKEN_FILTER., |
| 915 | i, |
| 916 | GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS., |
| 917 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 918 | module_name); |
| 919 | |
| 920 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(&data, 0, sizeof(data)); |
| 921 | data.context_tagcxx . . $ $anonymous_type_3909f26ee74613da_0#context_tag. = "token-filter"; |
| 922 | data.module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name. = module_name; |
| 923 | data.typecxx . . $ $anonymous_type_3909f26ee74613da_0#type. = GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS.; |
| 924 | data.indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index. = i; |
| 925 | data.open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func. = open_options_func; |
| 926 | data.close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func. = close_options_func; |
| 927 | data.user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data. = user_data; |
| 928 | return grn_table_cache_module_optionscxx . . $ grn_table_cache_module_options(ee383a52e43daadc).(ctx, table, &data); |
| 929 | } |
| 930 | |
| 931 | grn_rccxx . . $ grn_rc# |
| 932 | grn_table_get_token_filters_stringcxx . . $ grn_table_get_token_filters_string(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 933 | grn_objcxx . . $ grn_obj# *table, |
| 934 | grn_objcxx . . $ grn_obj# *output) |
| 935 | { |
| 936 | return grn_table_get_modules_stringcxx . . $ grn_table_get_modules_string(25e151eb767e62f7).(ctx, |
| 937 | table, |
| 938 | output, |
| 939 | GRN_INFO_TOKEN_FILTERScxx . . $ GRN_INFO_TOKEN_FILTERS., |
| 940 | OPTION_NAME_TOKEN_FILTERcxx . . $ OPTION_NAME_TOKEN_FILTER., |
| 941 | "token-filters"); |
| 942 | } |
| 943 | |
| 944 | grn_rccxx . . $ grn_rc# |
| 945 | grn_table_set_extractors_optionscxx . . $ grn_table_set_extractors_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 946 | grn_objcxx . . $ grn_obj# *table, |
| 947 | uint32_tcxx . . $ uint32_t# i, |
| 948 | grn_objcxx . . $ grn_obj# *options) |
| 949 | { |
| 950 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 951 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 952 | table, |
| 953 | OPTION_NAME_EXTRACTORcxx . . $ OPTION_NAME_EXTRACTOR., |
| 954 | i, |
| 955 | GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS., |
| 956 | falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!, |
| 957 | module_name); |
| 958 | return grn_table_set_module_optionscxx . . $ grn_table_set_module_options(461d4f21d878c898).(ctx, |
| 959 | table, |
| 960 | module_name, |
| 961 | options, |
| 962 | "extractors"); |
| 963 | } |
| 964 | |
| 965 | grn_rccxx . . $ grn_rc# |
| 966 | grn_table_get_extractors_optionscxx . . $ grn_table_get_extractors_options(f5a6f2c02ff50f08).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 967 | grn_objcxx . . $ grn_obj# *table, |
| 968 | uint32_tcxx . . $ uint32_t# i, |
| 969 | grn_objcxx . . $ grn_obj# *options) |
| 970 | { |
| 971 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 972 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 973 | table, |
| 974 | OPTION_NAME_EXTRACTORcxx . . $ OPTION_NAME_EXTRACTOR., |
| 975 | i, |
| 976 | GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS., |
| 977 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 978 | module_name); |
| 979 | return grn_table_get_module_optionscxx . . $ grn_table_get_module_options(461d4f21d878c898).(ctx, |
| 980 | table, |
| 981 | module_name, |
| 982 | options, |
| 983 | "extractors"); |
| 984 | } |
| 985 | |
| 986 | void * |
| 987 | grn_table_cache_extractors_optionscxx . . $ grn_table_cache_extractors_options(98363f246506be11).( |
| 988 | grn_ctxcxx . . $ grn_ctx# *ctx, |
| 989 | grn_objcxx . . $ grn_obj# *table, |
| 990 | uint32_tcxx . . $ uint32_t# i, |
| 991 | grn_table_module_open_options_funccxx . . $ grn_table_module_open_options_func# open_options_func, |
| 992 | grn_close_funccxx . . $ grn_close_func# close_options_func, |
| 993 | void *user_data) |
| 994 | { |
| 995 | grn_table_cache_datacxx . . $ grn_table_cache_data# data; |
| 996 | char module_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 997 | grn_table_module_format_namecxx . . $ grn_table_module_format_name(c5e26e0709cf8afc).(ctx, |
| 998 | table, |
| 999 | OPTION_NAME_EXTRACTORcxx . . $ OPTION_NAME_EXTRACTOR., |
| 1000 | i, |
| 1001 | GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS., |
| 1002 | truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!, |
| 1003 | module_name); |
| 1004 | |
| 1005 | memsetcxx . . $ memset(d1de1e4fb215f1c6).(&data, 0, sizeof(data)); |
| 1006 | data.context_tagcxx . . $ $anonymous_type_3909f26ee74613da_0#context_tag. = "extractor"; |
| 1007 | data.module_namecxx . . $ $anonymous_type_3909f26ee74613da_0#module_name. = module_name; |
| 1008 | data.typecxx . . $ $anonymous_type_3909f26ee74613da_0#type. = GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS.; |
| 1009 | data.indexcxx . . $ $anonymous_type_3909f26ee74613da_0#index. = i; |
| 1010 | data.open_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#open_options_func. = open_options_func; |
| 1011 | data.close_options_funccxx . . $ $anonymous_type_3909f26ee74613da_0#close_options_func. = close_options_func; |
| 1012 | data.user_datacxx . . $ $anonymous_type_3909f26ee74613da_0#user_data. = user_data; |
| 1013 | return grn_table_cache_module_optionscxx . . $ grn_table_cache_module_options(ee383a52e43daadc).(ctx, table, &data); |
| 1014 | } |
| 1015 | |
| 1016 | grn_rccxx . . $ grn_rc# |
| 1017 | grn_table_get_extractors_stringcxx . . $ grn_table_get_extractors_string(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, grn_objcxx . . $ grn_obj# *output) |
| 1018 | { |
| 1019 | return grn_table_get_modules_stringcxx . . $ grn_table_get_modules_string(25e151eb767e62f7).(ctx, |
| 1020 | table, |
| 1021 | output, |
| 1022 | GRN_INFO_EXTRACTORScxx . . $ GRN_INFO_EXTRACTORS., |
| 1023 | OPTION_NAME_EXTRACTORcxx . . $ OPTION_NAME_EXTRACTOR., |
| 1024 | "extractors"); |
| 1025 | } |