| 1 | /* |
| 2 | Copyright(C) 2012-2018 Brazil |
| 3 | Copyright(C) 2021 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 | #pragma once |
| 21 | |
| 22 | #include "grn.h"cxx . . $ `<file>/lib/grn.h`/ |
| 23 | #include "grn_ctx.h"cxx . . $ `<file>/lib/grn_ctx.h`/ |
| 24 | #include "grn_db.h"cxx . . $ `<file>/lib/grn_db.h`/ |
| 25 | #include "grn_str.h"cxx . . $ `<file>/lib/grn_str.h`/ |
| 26 | |
| 27 | #ifdef __cplusplus |
| 28 | extern "C" { |
| 29 | #endif |
| 30 | |
| 31 | typedef structcxx . . $ $anonymous_type_a07610201251503c_0# { |
| 32 | grn_obj_headercxx . . $ grn_obj_header# headercxx . . $ $anonymous_type_a07610201251503c_0#header.; |
| 33 | const char *originalcxx . . $ $anonymous_type_a07610201251503c_0#original.; |
| 34 | unsigned int original_length_in_bytescxx . . $ $anonymous_type_a07610201251503c_0#original_length_in_bytes.; |
| 35 | char *normalizedcxx . . $ $anonymous_type_a07610201251503c_0#normalized.; |
| 36 | unsigned int normalized_length_in_bytescxx . . $ $anonymous_type_a07610201251503c_0#normalized_length_in_bytes.; |
| 37 | unsigned int n_characterscxx . . $ $anonymous_type_a07610201251503c_0#n_characters.; |
| 38 | int16_tcxx . . $ int16_t# *checkscxx . . $ $anonymous_type_a07610201251503c_0#checks.; |
| 39 | uint8_tcxx . . $ uint8_t# *ctypescxx . . $ $anonymous_type_a07610201251503c_0#ctypes.; |
| 40 | uint64_tcxx . . $ uint64_t# *offsetscxx . . $ $anonymous_type_a07610201251503c_0#offsets.; |
| 41 | grn_encodingcxx . . $ grn_encoding# encodingcxx . . $ $anonymous_type_a07610201251503c_0#encoding.; |
| 42 | int flagscxx . . $ $anonymous_type_a07610201251503c_0#flags.; |
| 43 | grn_objcxx . . $ grn_obj# *lexiconcxx . . $ $anonymous_type_a07610201251503c_0#lexicon.; |
| 44 | uint32_tcxx . . $ uint32_t# normalizer_indexcxx . . $ $anonymous_type_a07610201251503c_0#normalizer_index.; |
| 45 | } grn_stringcxx . . $ grn_string#; |
| 46 | |
| 47 | grn_rccxx . . $ grn_rc# grn_string_initcxx . . $ grn_string_init(6b836d3fe11755a8).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 48 | grn_objcxx . . $ grn_obj# *string, |
| 49 | grn_objcxx . . $ grn_obj# *lexicon_or_normalizer, |
| 50 | int flags, |
| 51 | grn_encodingcxx . . $ grn_encoding# encoding); |
| 52 | grn_objcxx . . $ grn_obj# *grn_string_open_cxx . . $ grn_string_open_(bc90bc1ba05096ea).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 53 | const char *str, |
| 54 | unsigned int str_len, |
| 55 | grn_objcxx . . $ grn_obj# *lexicon_or_normalizer, |
| 56 | int flags, |
| 57 | grn_encodingcxx . . $ grn_encoding# encoding); |
| 58 | grn_rccxx . . $ grn_rc# grn_string_fincxx . . $ grn_string_fin(4865d068a46d0f83).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *string); |
| 59 | grn_rccxx . . $ grn_rc# grn_string_closecxx . . $ grn_string_close(4865d068a46d0f83).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *string); |
| 60 | grn_rccxx . . $ grn_rc# grn_string_set_originalcxx . . $ grn_string_set_original(6df5a48525cbe78d).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 61 | grn_objcxx . . $ grn_obj# *string, |
| 62 | const char *original, |
| 63 | unsigned int length_in_bytes); |
| 64 | grn_rccxx . . $ grn_rc# grn_string_inspectcxx . . $ grn_string_inspect(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *buffer, grn_objcxx . . $ grn_obj# *string); |
| 65 | |
| 66 | #ifdef __cplusplus |
| 67 | } |
| 68 | #endif |