MySQL 8.4.0
Source Code Documentation
m_ctype_internals.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef STRINGS_M_CTYPE_INTERNALS_H_
25#define STRINGS_M_CTYPE_INTERNALS_H_
26
28
29constexpr int MY_CS_CTYPE_TABLE_SIZE = 257;
30constexpr int MY_CS_TO_LOWER_TABLE_SIZE = 256;
31constexpr int MY_CS_TO_UPPER_TABLE_SIZE = 256;
32constexpr int MY_CS_SORT_ORDER_TABLE_SIZE = 256;
33constexpr int MY_CS_TO_UNI_TABLE_SIZE = 256;
34
36
41
42extern MY_UNI_CTYPE my_uni_ctype[256];
43
48
52
53/* declarations for simple charsets */
54extern size_t my_strnxfrm_simple(const CHARSET_INFO *, uint8_t *dst,
55 size_t dstlen, unsigned nweights,
56 const uint8_t *src, size_t srclen,
57 unsigned flags);
58size_t my_strnxfrmlen_simple(const CHARSET_INFO *, size_t);
59extern int my_strnncoll_simple(const CHARSET_INFO *, const uint8_t *, size_t,
60 const uint8_t *, size_t, bool);
61
62extern int my_strnncollsp_simple(const CHARSET_INFO *, const uint8_t *, size_t,
63 const uint8_t *, size_t);
64
65extern void my_hash_sort_simple(const CHARSET_INFO *cs, const uint8_t *key,
66 size_t len, uint64_t *nr1, uint64_t *nr2);
67
68extern size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr,
69 size_t length);
70
71extern unsigned my_instr_simple(const CHARSET_INFO *, const char *b,
72 size_t b_length, const char *s, size_t s_length,
73 my_match_t *match, unsigned nmatch);
74
75/* Functions for 8bit */
76extern size_t my_caseup_str_8bit(const CHARSET_INFO *, char *);
77extern size_t my_casedn_str_8bit(const CHARSET_INFO *, char *);
78extern size_t my_caseup_8bit(const CHARSET_INFO *, char *src, size_t srclen,
79 char *dst, size_t dstlen);
80extern size_t my_casedn_8bit(const CHARSET_INFO *, char *src, size_t srclen,
81 char *dst, size_t dstlen);
82
83extern int my_strcasecmp_8bit(const CHARSET_INFO *cs, const char *,
84 const char *);
85
86int my_mb_wc_8bit(const CHARSET_INFO *cs, my_wc_t *wc, const uint8_t *s,
87 const uint8_t *e);
88int my_wc_mb_8bit(const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e);
89
90int my_mb_ctype_8bit(const CHARSET_INFO *, int *, const uint8_t *,
91 const uint8_t *);
92int my_mb_ctype_mb(const CHARSET_INFO *, int *, const uint8_t *,
93 const uint8_t *);
94
95size_t my_scan_8bit(const CHARSET_INFO *cs, const char *b, const char *e,
96 int sq);
97
98size_t my_snprintf_8bit(const CHARSET_INFO *, char *to, size_t n,
99 const char *fmt, ...)
100 MY_ATTRIBUTE((format(printf, 4, 5)));
101
102long my_strntol_8bit(const CHARSET_INFO *, const char *s, size_t l, int base,
103 const char **e, int *err);
104unsigned long my_strntoul_8bit(const CHARSET_INFO *, const char *nptr, size_t l,
105 int base, const char **endptr, int *err);
106long long my_strntoll_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l,
107 int base, const char **endptr, int *err);
108unsigned long long my_strntoull_8bit(const CHARSET_INFO *cs, const char *nptr,
109 size_t l, int base, const char **endptr,
110 int *err);
111double my_strntod_8bit(const CHARSET_INFO *, const char *s, size_t l,
112 const char **e, int *err);
113size_t my_long10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l,
114 int radix, long int val);
115size_t my_longlong10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l,
116 int radix, long long val);
117
118long long my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr,
119 const char **endptr, int *error);
120long long my_strtoll10_ucs2(const CHARSET_INFO *cs, const char *nptr,
121 char **endptr, int *error);
122
123unsigned long long my_strntoull10rnd_8bit(const CHARSET_INFO *cs,
124 const char *str, size_t length,
125 int unsigned_fl, const char **endptr,
126 int *error);
127unsigned long long my_strntoull10rnd_ucs2(const CHARSET_INFO *cs,
128 const char *str, size_t length,
129 int unsigned_fl, char **endptr,
130 int *error);
131
132void my_fill_8bit(const CHARSET_INFO *cs, char *to, size_t l, int fill);
133
134/* For 8-bit character set */
135bool my_like_range_simple(const CHARSET_INFO *cs, const char *ptr,
136 size_t ptr_length, char escape, char w_one,
137 char w_many, size_t res_length, char *min_str,
138 char *max_str, size_t *min_length,
139 size_t *max_length);
140
141/* For ASCII-based multi-byte character sets with mbminlen=1 */
142bool my_like_range_mb(const CHARSET_INFO *cs, const char *ptr,
143 size_t ptr_length, char escape, char w_one, char w_many,
144 size_t res_length, char *min_str, char *max_str,
145 size_t *min_length, size_t *max_length);
146
147/* For other character sets, with arbitrary mbminlen and mbmaxlen numbers */
148bool my_like_range_generic(const CHARSET_INFO *cs, const char *ptr,
149 size_t ptr_length, char escape, char w_one,
150 char w_many, size_t res_length, char *min_str,
151 char *max_str, size_t *min_length,
152 size_t *max_length);
153
154int my_wildcmp_8bit(const CHARSET_INFO *, const char *str, const char *str_end,
155 const char *wildstr, const char *wildend, int escape,
156 int w_one, int w_many);
157
158int my_wildcmp_bin(const CHARSET_INFO *, const char *str, const char *str_end,
159 const char *wildstr, const char *wildend, int escape,
160 int w_one, int w_many);
161
162size_t my_numchars_8bit(const CHARSET_INFO *, const char *b, const char *e);
163size_t my_numcells_8bit(const CHARSET_INFO *, const char *b, const char *e);
164size_t my_charpos_8bit(const CHARSET_INFO *, const char *b, const char *e,
165 size_t pos);
166size_t my_well_formed_len_8bit(const CHARSET_INFO *, const char *b,
167 const char *e, size_t pos, int *error);
168unsigned my_mbcharlen_8bit(const CHARSET_INFO *, unsigned c);
169
170/* Functions for multibyte charsets */
171extern size_t my_caseup_str_mb(const CHARSET_INFO *, char *);
172extern size_t my_casedn_str_mb(const CHARSET_INFO *, char *);
173extern size_t my_caseup_mb(const CHARSET_INFO *, char *src, size_t srclen,
174 char *dst, size_t dstlen);
175extern size_t my_casedn_mb(const CHARSET_INFO *, char *src, size_t srclen,
176 char *dst, size_t dstlen);
177extern size_t my_caseup_mb_varlen(const CHARSET_INFO *, char *src,
178 size_t srclen, char *dst, size_t dstlen);
179extern size_t my_casedn_mb_varlen(const CHARSET_INFO *, char *src,
180 size_t srclen, char *dst, size_t dstlen);
181extern size_t my_caseup_ujis(const CHARSET_INFO *, char *src, size_t srclen,
182 char *dst, size_t dstlen);
183extern size_t my_casedn_ujis(const CHARSET_INFO *, char *src, size_t srclen,
184 char *dst, size_t dstlen);
185extern int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *, const char *);
186
187int my_wildcmp_mb(const CHARSET_INFO *, const char *str, const char *str_end,
188 const char *wildstr, const char *wildend, int escape,
189 int w_one, int w_many);
190size_t my_numchars_mb(const CHARSET_INFO *, const char *b, const char *e);
191size_t my_numcells_mb(const CHARSET_INFO *, const char *b, const char *e);
192size_t my_charpos_mb3(const CHARSET_INFO *, const char *b, const char *e,
193 size_t pos);
194size_t my_well_formed_len_mb(const CHARSET_INFO *, const char *b, const char *e,
195 size_t pos, int *error);
196unsigned my_instr_mb(const CHARSET_INFO *, const char *b, size_t b_length,
197 const char *s, size_t s_length, my_match_t *match,
198 unsigned nmatch);
199
200int my_strnncoll_mb_bin(const CHARSET_INFO *cs, const uint8_t *s, size_t slen,
201 const uint8_t *t, size_t tlen, bool t_is_prefix);
202
203int my_strnncollsp_mb_bin(const CHARSET_INFO *cs, const uint8_t *a,
204 size_t a_length, const uint8_t *b, size_t b_length);
205
206int my_strcasecmp_mb_bin(const CHARSET_INFO *, const char *s, const char *t);
207
208void my_hash_sort_mb_bin(const CHARSET_INFO *, const uint8_t *key, size_t len,
209 uint64_t *nr1, uint64_t *nr2);
210
211size_t my_strnxfrm_mb(const CHARSET_INFO *, uint8_t *dst, size_t dstlen,
212 unsigned nweights, const uint8_t *src, size_t srclen,
213 unsigned flags);
214
215size_t my_strnxfrm_unicode(const CHARSET_INFO *, uint8_t *dst, size_t dstlen,
216 unsigned nweights, const uint8_t *src, size_t srclen,
217 unsigned flags);
218
219size_t my_strnxfrm_unicode_full_bin(const CHARSET_INFO *, uint8_t *dst,
220 size_t dstlen, unsigned nweights,
221 const uint8_t *src, size_t srclen,
222 unsigned flags);
223size_t my_strnxfrmlen_unicode_full_bin(const CHARSET_INFO *, size_t);
224
225int my_wildcmp_unicode(const CHARSET_INFO *cs, const char *str,
226 const char *str_end, const char *wildstr,
227 const char *wildend, int escape, int w_one, int w_many,
228 const MY_UNICASE_INFO *weights);
229
230extern bool my_parse_charset_xml(MY_CHARSET_LOADER *loader, const char *buf,
231 size_t buflen, MY_CHARSET_ERRMSG *errmsg);
232bool my_propagate_simple(const CHARSET_INFO *cs, const uint8_t *str,
233 size_t len);
234bool my_propagate_complex(const CHARSET_INFO *cs, const uint8_t *str,
235 size_t len);
236
238
239size_t my_strxfrm_pad(const CHARSET_INFO *cs, uint8_t *str, uint8_t *frmend,
240 uint8_t *strend, unsigned nweights, unsigned flags);
241
243
244#endif // STRINGS_M_CTYPE_INTERNALS_H_
static Mysys_charset_loader * loader
Definition: charset.cc:185
User-specified callback interface for collation parser/initializer.
Definition: m_ctype.h:190
static int flags[50]
Definition: hp_test1.cc:40
A better implementation of the UNIX ctype(3) library.
unsigned long my_wc_t
Our own version of wchar_t, ie., a type that holds a single Unicode code point ("wide character").
Definition: m_ctype.h:57
size_t my_caseup_mb_varlen(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:183
bool my_parse_charset_xml(MY_CHARSET_LOADER *loader, const char *buf, size_t buflen, MY_CHARSET_ERRMSG *errmsg)
Definition: ctype.cc:748
void my_hash_sort_mb_bin(const CHARSET_INFO *, const uint8_t *key, size_t len, uint64_t *nr1, uint64_t *nr2)
Definition: ctype-mb.cc:560
int my_strcasecmp_8bit(const CHARSET_INFO *cs, const char *, const char *)
Definition: ctype-simple.cc:241
size_t my_casedn_str_mb(const CHARSET_INFO *, char *)
Definition: ctype-mb.cc:58
constexpr int MY_CS_SORT_ORDER_TABLE_SIZE
Definition: m_ctype_internals.h:32
size_t my_charpos_mb3(const CHARSET_INFO *, const char *b, const char *e, size_t pos)
Definition: ctype-mb.cc:326
size_t my_well_formed_len_mb(const CHARSET_INFO *, const char *b, const char *e, size_t pos, int *error)
Definition: ctype-mb.cc:338
unsigned my_mbcharlen_8bit(const CHARSET_INFO *, unsigned c)
Definition: ctype-bin.cc:224
double my_strntod_8bit(const CHARSET_INFO *, const char *s, size_t l, const char **e, int *err)
Definition: ctype-simple.cc:636
MY_COLLATION_HANDLER my_collation_ucs2_uca_handler
Definition: ctype-uca.cc:5234
unsigned long long my_strntoull10rnd_ucs2(const CHARSET_INFO *cs, const char *str, size_t length, int unsigned_fl, char **endptr, int *error)
size_t my_numchars_8bit(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-simple.cc:903
MY_UNICASE_INFO my_unicase_unicode520
Definition: ctype-utf8.cc:4786
int my_strcasecmp_mb_bin(const CHARSET_INFO *, const char *s, const char *t)
Definition: ctype-mb.cc:555
size_t my_snprintf_8bit(const CHARSET_INFO *, char *to, size_t n, const char *fmt,...)
Definition: ctype-simple.cc:278
size_t my_strnxfrmlen_simple(const CHARSET_INFO *, size_t)
Definition: ctype-simple.cc:62
size_t my_strnxfrmlen_unicode_full_bin(const CHARSET_INFO *, size_t)
Definition: ctype-utf8.cc:5173
size_t my_caseup_str_8bit(const CHARSET_INFO *, char *)
Definition: ctype-simple.cc:207
MY_COLLATION_HANDLER my_collation_mb_bin_handler
Definition: ctype-mb.cc:1335
long long my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr, const char **endptr, int *error)
Definition: ctype-simple.cc:1125
size_t my_well_formed_len_8bit(const CHARSET_INFO *, const char *b, const char *e, size_t pos, int *error)
Definition: ctype-simple.cc:919
constexpr int MY_CS_TO_UNI_TABLE_SIZE
Definition: m_ctype_internals.h:33
MY_CHARSET_HANDLER my_charset_ascii_handler
Definition: ctype-simple.cc:1547
MY_UNICASE_INFO my_unicase_turkish
Definition: ctype-utf8.cc:1878
bool my_like_range_simple(const CHARSET_INFO *cs, const char *ptr, size_t ptr_length, char escape, char w_one, char w_many, size_t res_length, char *min_str, char *max_str, size_t *min_length, size_t *max_length)
Definition: ctype-simple.cc:833
size_t my_longlong10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l, int radix, long long val)
Definition: ctype-simple.cc:686
size_t my_caseup_mb(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:85
void my_fill_8bit(const CHARSET_INFO *cs, char *to, size_t l, int fill)
Definition: ctype-simple.cc:898
size_t my_casedn_mb(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:112
MY_COLLATION_HANDLER my_collation_8bit_simple_ci_handler
Definition: ctype-simple.cc:1576
size_t my_strnxfrm_mb(const CHARSET_INFO *, uint8_t *dst, size_t dstlen, unsigned nweights, const uint8_t *src, size_t srclen, unsigned flags)
Definition: ctype-mb.cc:496
MY_COLLATION_HANDLER my_collation_8bit_bin_handler
Definition: ctype-bin.cc:452
int my_mb_ctype_8bit(const CHARSET_INFO *, int *, const uint8_t *, const uint8_t *)
Definition: ctype-simple.cc:1130
MY_UNICASE_INFO my_unicase_mysql500
Definition: ctype-utf8.cc:1704
size_t my_strnxfrm_unicode_full_bin(const CHARSET_INFO *, uint8_t *dst, size_t dstlen, unsigned nweights, const uint8_t *src, size_t srclen, unsigned flags)
size_t my_casedn_8bit(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-simple.cc:231
constexpr int MY_CS_TO_LOWER_TABLE_SIZE
Definition: m_ctype_internals.h:30
long long my_strtoll10_ucs2(const CHARSET_INFO *cs, const char *nptr, char **endptr, int *error)
size_t my_caseup_str_mb(const CHARSET_INFO *, char *)
Definition: ctype-mb.cc:41
long long my_strntoll_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:461
unsigned my_instr_simple(const CHARSET_INFO *, const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, unsigned nmatch)
Definition: ctype-simple.cc:934
constexpr int MY_CS_TO_UPPER_TABLE_SIZE
Definition: m_ctype_internals.h:31
bool my_propagate_simple(const CHARSET_INFO *cs, const uint8_t *str, size_t len)
Definition: ctype-simple.cc:1474
size_t my_caseup_8bit(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-simple.cc:221
bool my_propagate_complex(const CHARSET_INFO *cs, const uint8_t *str, size_t len)
Definition: ctype-simple.cc:1480
constexpr my_wc_t MY_CS_REPLACEMENT_CHARACTER
Definition: m_ctype_internals.h:35
size_t my_numchars_mb(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-mb.cc:315
bool my_charset_is_ascii_compatible(const CHARSET_INFO *cs)
Definition: ctype.cc:826
long my_strntol_8bit(const CHARSET_INFO *, const char *s, size_t l, int base, const char **e, int *err)
Definition: ctype-simple.cc:311
size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr, size_t length)
Definition: ctype-simple.cc:927
bool my_charset_is_8bit_pure_ascii(const CHARSET_INFO *cs)
Definition: ctype.cc:812
int my_wildcmp_bin(const CHARSET_INFO *, const char *str, const char *str_end, const char *wildstr, const char *wildend, int escape, int w_one, int w_many)
Definition: ctype-bin.cc:365
void my_hash_sort_simple(const CHARSET_INFO *cs, const uint8_t *key, size_t len, uint64_t *nr1, uint64_t *nr2)
Definition: ctype-simple.cc:288
unsigned long long my_strntoull_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:539
int my_wildcmp_mb(const CHARSET_INFO *, const char *str, const char *str_end, const char *wildstr, const char *wildend, int escape, int w_one, int w_many)
Definition: ctype-mb.cc:308
size_t my_casedn_mb_varlen(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:176
int my_wildcmp_8bit(const CHARSET_INFO *, const char *str, const char *str_end, const char *wildstr, const char *wildend, int escape, int w_one, int w_many)
Definition: ctype-simple.cc:809
MY_UNICASE_INFO my_unicase_default
Definition: ctype-utf8.cc:1658
MY_CHARSET_HANDLER my_charset_8bit_handler
Definition: ctype-simple.cc:1519
int my_wildcmp_unicode(const CHARSET_INFO *cs, const char *str, const char *str_end, const char *wildstr, const char *wildend, int escape, int w_one, int w_many, const MY_UNICASE_INFO *weights)
Definition: ctype-utf8.cc:4929
unsigned my_instr_mb(const CHARSET_INFO *, const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, unsigned nmatch)
Definition: ctype-mb.cc:357
size_t my_numcells_8bit(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-simple.cc:908
size_t my_long10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l, int radix, long int val)
Definition: ctype-simple.cc:650
int my_strnncollsp_simple(const CHARSET_INFO *, const uint8_t *, size_t, const uint8_t *, size_t)
Definition: ctype-simple.cc:175
constexpr int MY_CS_CTYPE_TABLE_SIZE
Definition: m_ctype_internals.h:29
bool my_like_range_generic(const CHARSET_INFO *cs, const char *ptr, size_t ptr_length, char escape, char w_one, char w_many, size_t res_length, char *min_str, char *max_str, size_t *min_length, size_t *max_length)
Calculate min_str and max_str that ranges a LIKE string.
Definition: ctype-mb.cc:806
size_t my_strnxfrm_simple(const CHARSET_INFO *, uint8_t *dst, size_t dstlen, unsigned nweights, const uint8_t *src, size_t srclen, unsigned flags)
Definition: ctype-simple.cc:105
MY_UNI_CTYPE my_uni_ctype[256]
Definition: my_uctype.cc:935
size_t my_charpos_8bit(const CHARSET_INFO *, const char *b, const char *e, size_t pos)
Definition: ctype-simple.cc:913
int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *, const char *)
Definition: ctype-mb.cc:194
int my_strnncollsp_mb_bin(const CHARSET_INFO *cs, const uint8_t *a, size_t a_length, const uint8_t *b, size_t b_length)
Definition: ctype-mb.cc:435
size_t my_casedn_str_8bit(const CHARSET_INFO *, char *)
Definition: ctype-simple.cc:214
size_t my_strnxfrm_unicode(const CHARSET_INFO *, uint8_t *dst, size_t dstlen, unsigned nweights, const uint8_t *src, size_t srclen, unsigned flags)
unsigned long my_strntoul_8bit(const CHARSET_INFO *, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:389
bool my_like_range_mb(const CHARSET_INFO *cs, const char *ptr, size_t ptr_length, char escape, char w_one, char w_many, size_t res_length, char *min_str, char *max_str, size_t *min_length, size_t *max_length)
Definition: ctype-mb.cc:657
int my_mb_wc_8bit(const CHARSET_INFO *cs, my_wc_t *wc, const uint8_t *s, const uint8_t *e)
Definition: ctype-simple.cc:248
MY_CHARSET_HANDLER my_charset_ucs2_handler
Definition: ctype-ucs2.cc:2894
int my_strnncoll_mb_bin(const CHARSET_INFO *cs, const uint8_t *s, size_t slen, const uint8_t *t, size_t tlen, bool t_is_prefix)
Definition: ctype-mb.cc:405
int my_mb_ctype_mb(const CHARSET_INFO *, int *, const uint8_t *, const uint8_t *)
Definition: ctype-mb.cc:1322
size_t my_scan_8bit(const CHARSET_INFO *cs, const char *b, const char *e, int sq)
Definition: ctype-simple.cc:876
unsigned long long my_strntoull10rnd_8bit(const CHARSET_INFO *cs, const char *str, size_t length, int unsigned_fl, const char **endptr, int *error)
Definition: ctype-simple.cc:1221
int my_strnncoll_simple(const CHARSET_INFO *, const uint8_t *, size_t, const uint8_t *, size_t, bool)
Definition: ctype-simple.cc:133
size_t my_casedn_ujis(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-ujis.cc:35769
size_t my_numcells_mb(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-mb.cc:1290
int my_wc_mb_8bit(const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e)
Definition: ctype-simple.cc:256
size_t my_caseup_ujis(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-ujis.cc:35779
size_t my_strxfrm_pad(const CHARSET_INFO *cs, uint8_t *str, uint8_t *frmend, uint8_t *strend, unsigned nweights, unsigned flags)
Definition: ctype-simple.cc:1502
static const char * strend(const char *s)
Definition: m_string.h:69
void error(const char *format,...)
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1073
Definition: buf0block_hint.cc:30
Definition: commit_order_queue.h:34
static std::string escape(const std::string &str)
Escapes (only) apostrophes.
Definition: st_units_of_measure.cc:39
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:927
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Definition: m_ctype.h:423
Helper structure to return error messages from collation parser/initializer.
Definition: m_ctype.h:181
Definition: m_ctype.h:342
Definition: m_ctype.h:247
Definition: m_ctype.h:70
Definition: m_ctype.h:77
Definition: m_ctype.h:170
int n
Definition: xcom_base.cc:509