Debian Codegraph @

lib/grn_str.h

raw symbols SCIP
1 /*
2 Copyright (C) 2009-2016 Brazil
3 Copyright (C) 2022-2023 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 <groonga/nfkc.h>cxx . . $ `<file>/include/groonga/nfkc.h`/
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 typedef enumcxx . . $ $anonymous_type_946308ef283cea1e_0# {
30 GETOPT_OP_NONEcxx . . $ GETOPT_OP_NONE. = 0,
31 GETOPT_OP_ONcxx . . $ GETOPT_OP_ON.,
32 GETOPT_OP_OFFcxx . . $ GETOPT_OP_OFF.,
33 GETOPT_OP_UPDATEcxx . . $ GETOPT_OP_UPDATE.
34 } grn_str_getopt_opcxx . . $ grn_str_getopt_op#;
35
36 typedef structcxx . . $ $anonymous_type_946308ef283cea1e_1# {
37 const char optcxx . . $ $anonymous_type_946308ef283cea1e_1#opt.; /* ends opt == 0 && longopt == NULL */
38 const char *longoptcxx . . $ $anonymous_type_946308ef283cea1e_1#longopt.;
39 const char **argcxx . . $ $anonymous_type_946308ef283cea1e_1#arg.; /* if NULL, no arg are required */
40 int flagcxx . . $ $anonymous_type_946308ef283cea1e_1#flag.;
41 grn_str_getopt_opcxx . . $ grn_str_getopt_op# opcxx . . $ $anonymous_type_946308ef283cea1e_1#op.;
42 } grn_str_getopt_optcxx . . $ grn_str_getopt_opt#;
43
44 GRN_APIcxx . . $ `lib/grn.h:84:13`! size_t
45 grn_str_lencxx . . $ grn_str_len(445e83e90ccdb2bf).(grn_ctxcxx . . $ grn_ctx# *ctx,
46 const char *str,
47 const char *end,
48 grn_encodingcxx . . $ grn_encoding# encoding,
49 const char **last);
50
51 #define GRN_STR_BLANKcxx . . $ `lib/grn_str.h:51:9`! 0x80
52 #define GRN_STR_ISBLANKcxx . . $ `lib/grn_str.h:52:9`!(c) (c & 0x80)
53 #define GRN_STR_CTYPEcxx . . $ `lib/grn_str.h:53:9`!(c) (c & 0x7f)
54
55 GRN_APIcxx . . $ `lib/grn.h:84:13`! int
56 grn_isspacecxx . . $ grn_isspace(f8f88a86d74aa1ba).(const char *s, grn_encodingcxx . . $ grn_encoding# encoding);
57 int8_tcxx . . $ int8_t#
58 grn_atoi8cxx . . $ grn_atoi8(152a5960b5dc2e0b).(const char *nptr, const char *end, const char **rest);
59 uint8_tcxx . . $ uint8_t#
60 grn_atoui8cxx . . $ grn_atoui8(f990af94c3e406d4).(const char *nptr, const char *end, const char **rest);
61 int16_tcxx . . $ int16_t#
62 grn_atoi16cxx . . $ grn_atoi16(4913b82ede25a538).(const char *nptr, const char *end, const char **rest);
63 uint16_tcxx . . $ uint16_t#
64 grn_atoui16cxx . . $ grn_atoui16(d1cca3e5e0f31bcc).(const char *nptr, const char *end, const char **rest);
65 GRN_APIcxx . . $ `lib/grn.h:84:13`! int
66 grn_atoicxx . . $ grn_atoi(adf3ff2c2b114929).(const char *nptr, const char *end, const char **rest);
67 GRN_APIcxx . . $ `lib/grn.h:84:13`! unsigned int
68 grn_atouicxx . . $ grn_atoui(2da3fe788a18ce64).(const char *nptr, const char *end, const char **rest);
69 GRN_APIcxx . . $ `lib/grn.h:84:13`! unsigned int
70 grn_htouicxx . . $ grn_htoui(2da3fe788a18ce64).(const char *nptr, const char *end, const char **rest);
71 GRN_APIcxx . . $ `lib/grn.h:84:13`! int64_tcxx . . $ int64_t#
72 grn_atollcxx . . $ grn_atoll(e3438c906dd00acd).(const char *nptr, const char *end, const char **rest);
73 GRN_APIcxx . . $ `lib/grn.h:84:13`! uint64_tcxx . . $ uint64_t#
74 grn_atoullcxx . . $ grn_atoull(bd2852887cfac9d6).(const char *nptr, const char *end, const char **rest);
75 grn_rccxx . . $ grn_rc#
76 grn_itoacxx . . $ grn_itoa(33e71d0fc16b913b).(int i, char *p, char *end, char **rest);
77 grn_rccxx . . $ grn_rc#
78 grn_lltoacxx . . $ grn_lltoa(818d36cd4dfb4adb).(int64_tcxx . . $ int64_t# i, char *p, char *end, char **rest);
79 grn_rccxx . . $ grn_rc#
80 grn_ulltoacxx . . $ grn_ulltoa(21641f6ae377f469).(uint64_tcxx . . $ uint64_t# i, char *p, char *end, char **rest);
81 GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_rccxx . . $ grn_rc#
82 grn_atoncxx . . $ grn_aton(544d61017b0b1e75).(grn_ctxcxx . . $ grn_ctx# *ctx,
83 const char *p,
84 const char *end,
85 const char **rest,
86 grn_objcxx . . $ grn_obj# *res);
87
88 GRN_APIcxx . . $ `lib/grn.h:84:13`! void
89 grn_itohcxx . . $ grn_itoh(8d45ad636653b6f2).(unsigned int i, char *p, unsigned int len);
90 int
91 grn_str_tokcxx . . $ grn_str_tok(edef019617c279c5).(const char *str,
92 size_t str_len,
93 char delim,
94 const char **tokbuf,
95 int buf_size,
96 const char **rest);
97 GRN_APIcxx . . $ `lib/grn.h:84:13`! int
98 grn_str_getoptcxx . . $ grn_str_getopt(1f77e49aad5fba88).(int argc,
99 char *const argv[],
100 const grn_str_getopt_optcxx . . $ grn_str_getopt_opt# *opts,
101 int *flags);
102
103 extern int grn_str_margin_sizecxx . . $ grn_str_margin_size.;
104
105 char *
106 grn_itobcxx . . $ grn_itob(76b3be8b15f1dbe5).(grn_idcxx . . $ grn_id# id, char *p);
107 grn_idcxx . . $ grn_id#
108 grn_btoicxx . . $ grn_btoi(33ab057182e9f89d).(char *b);
109
110 grn_rccxx . . $ grn_rc#
111 grn_substringcxx . . $ grn_substring(473fce51820fcb75).(grn_ctxcxx . . $ grn_ctx# *ctx,
112 char **str,
113 char **str_end,
114 int start,
115 int end,
116 grn_encodingcxx . . $ grn_encoding# encoding);
117
118 GRN_APIcxx . . $ `lib/grn.h:84:13`! int
119 grn_charlen_cxx . . $ grn_charlen_(b4b53c9e31f93d3e).(grn_ctxcxx . . $ grn_ctx# *ctx,
120 const char *str,
121 const char *end,
122 grn_encodingcxx . . $ grn_encoding# encoding);
123 GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_strcxx . . $ grn_str# *
124 grn_str_open_cxx . . $ grn_str_open_(8098434ec04b6983).(grn_ctxcxx . . $ grn_ctx# *ctx,
125 const char *str,
126 unsigned int str_len,
127 int flags,
128 grn_encodingcxx . . $ grn_encoding# encoding);
129
130 grn_rccxx . . $ grn_rc#
131 grn_text_ulltoacxx . . $ grn_text_ulltoa(cf35b313a8fea93f).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *buf, unsigned long long int i);
132
133 GRN_APIcxx . . $ `lib/grn.h:84:13`! const char *
134 grn_text_cgideccxx . . $ grn_text_cgidec(5d8e45ee3c206d59).(grn_ctxcxx . . $ grn_ctx# *ctx,
135 grn_objcxx . . $ grn_obj# *buf,
136 const char *p,
137 const char *e,
138 const char *delimiters);
139
140 #define GRN_TOK_VOIDcxx . . $ `lib/grn_str.h:140:9`! (0x00)
141 #define GRN_TOK_SYMBOLcxx . . $ `lib/grn_str.h:141:9`! (0x01)
142 #define GRN_TOK_STRINGcxx . . $ `lib/grn_str.h:142:9`! (0x02)
143 #define GRN_TOK_QUOTEcxx . . $ `lib/grn_str.h:143:9`! (0x03)
144
145 GRN_APIcxx . . $ `lib/grn.h:84:13`! const char *
146 grn_text_unesc_tokcxx . . $ grn_text_unesc_tok(ee2b918276aaefd9).(
147 grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *buf, const char *p, const char *e, uint8_tcxx . . $ uint8_t# *tok_type);
148
149 GRN_APIcxx . . $ `lib/grn.h:84:13`! void
150 grn_str_url_path_normalizecxx . . $ grn_str_url_path_normalize(cc67929d906e7f3e).(
151 grn_ctxcxx . . $ grn_ctx# *ctx, const char *path, size_t path_len, char *buf, size_t buf_len);
152
153 #define GRN_OBJ_FORMAT_XML_ELEMENT_MASKcxx . . $ `lib/grn_str.h:153:9`! (0x01 << 1)
154 #define GRN_OBJ_FORMAT_XML_ELEMENT_RESULTSETcxx . . $ `lib/grn_str.h:154:9`! (0x00 << 1)
155 #define GRN_OBJ_FORMAT_XML_ELEMENT_NAVIGATIONENTRYcxx . . $ `lib/grn_str.h:155:9`! (0x01 << 1)
156
157 #include <stdio.h>
158 GRN_APIcxx . . $ `lib/grn.h:84:13`! grn_rccxx . . $ grn_rc#
159 grn_text_fgetscxx . . $ grn_text_fgets(f6568b8d94b4f84a).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *buf, FILEcxx . . $ FILE# *fp);
160
161 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`!
162 grn_bulk_is_zerocxx . . $ grn_bulk_is_zero(a5760e5c319a06ee).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *obj);
163
164 #ifdef __cplusplus
165 }
166 #endif