MySQL 8.2.0
Source Code Documentation
m_ctype_internals.h
Go to the documentation of this file.
1/* Copyright (c) 2021, 2023, 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 also distributed 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 included with MySQL.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License, version 2.0, for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22
23#ifndef STRINGS_M_CTYPE_INTERNALS_H_
24#define STRINGS_M_CTYPE_INTERNALS_H_
25
27
28constexpr int MY_CS_CTYPE_TABLE_SIZE = 257;
29constexpr int MY_CS_TO_LOWER_TABLE_SIZE = 256;
30constexpr int MY_CS_TO_UPPER_TABLE_SIZE = 256;
31constexpr int MY_CS_SORT_ORDER_TABLE_SIZE = 256;
32constexpr int MY_CS_TO_UNI_TABLE_SIZE = 256;
33
35
40
41extern MY_UNI_CTYPE my_uni_ctype[256];
42
47
51
52/* declarations for simple charsets */
53extern size_t my_strnxfrm_simple(const CHARSET_INFO *, uint8_t *dst,
54 size_t dstlen, unsigned nweights,
55 const uint8_t *src, size_t srclen,
56 unsigned flags);
57size_t my_strnxfrmlen_simple(const CHARSET_INFO *, size_t);
58extern int my_strnncoll_simple(const CHARSET_INFO *, const uint8_t *, size_t,
59 const uint8_t *, size_t, bool);
60
61extern int my_strnncollsp_simple(const CHARSET_INFO *, const uint8_t *, size_t,
62 const uint8_t *, size_t);
63
64extern void my_hash_sort_simple(const CHARSET_INFO *cs, const uint8_t *key,
65 size_t len, uint64_t *nr1, uint64_t *nr2);
66
67extern size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr,
68 size_t length);
69
70extern unsigned my_instr_simple(const CHARSET_INFO *, const char *b,
71 size_t b_length, const char *s, size_t s_length,
72 my_match_t *match, unsigned nmatch);
73
74/* Functions for 8bit */
75extern size_t my_caseup_str_8bit(const CHARSET_INFO *, char *);
76extern size_t my_casedn_str_8bit(const CHARSET_INFO *, char *);
77extern size_t my_caseup_8bit(const CHARSET_INFO *, char *src, size_t srclen,
78 char *dst, size_t dstlen);
79extern size_t my_casedn_8bit(const CHARSET_INFO *, char *src, size_t srclen,
80 char *dst, size_t dstlen);
81
82extern int my_strcasecmp_8bit(const CHARSET_INFO *cs, const char *,
83 const char *);
84
85int my_mb_wc_8bit(const CHARSET_INFO *cs, my_wc_t *wc, const uint8_t *s,
86 const uint8_t *e);
87int my_wc_mb_8bit(const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e);
88
89int my_mb_ctype_8bit(const CHARSET_INFO *, int *, const uint8_t *,
90 const uint8_t *);
91int my_mb_ctype_mb(const CHARSET_INFO *, int *, const uint8_t *,
92 const uint8_t *);
93
94size_t my_scan_8bit(const CHARSET_INFO *cs, const char *b, const char *e,
95 int sq);
96
97size_t my_snprintf_8bit(const CHARSET_INFO *, char *to, size_t n,
98 const char *fmt, ...)
99 MY_ATTRIBUTE((format(printf, 4, 5)));
100
101long my_strntol_8bit(const CHARSET_INFO *, const char *s, size_t l, int base,
102 const char **e, int *err);
103unsigned long my_strntoul_8bit(const CHARSET_INFO *, const char *nptr, size_t l,
104 int base, const char **endptr, int *err);
105long long my_strntoll_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l,
106 int base, const char **endptr, int *err);
107unsigned long long my_strntoull_8bit(const CHARSET_INFO *cs, const char *nptr,
108 size_t l, int base, const char **endptr,
109 int *err);
110double my_strntod_8bit(const CHARSET_INFO *, const char *s, size_t l,
111 const char **e, int *err);
112size_t my_long10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l,
113 int radix, long int val);
114size_t my_longlong10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l,
115 int radix, long long val);
116
117long long my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr,
118 const char **endptr, int *error);
119long long my_strtoll10_ucs2(const CHARSET_INFO *cs, const char *nptr,
120 char **endptr, int *error);
121
122unsigned long long my_strntoull10rnd_8bit(const CHARSET_INFO *cs,
123 const char *str, size_t length,
124 int unsigned_fl, const char **endptr,
125 int *error);
126unsigned long long my_strntoull10rnd_ucs2(const CHARSET_INFO *cs,
127 const char *str, size_t length,
128 int unsigned_fl, char **endptr,
129 int *error);
130
131void my_fill_8bit(const CHARSET_INFO *cs, char *to, size_t l, int fill);
132
133/* For 8-bit character set */
134bool my_like_range_simple(const CHARSET_INFO *cs, const char *ptr,
135 size_t ptr_length, char escape, char w_one,
136 char w_many, size_t res_length, char *min_str,
137 char *max_str, size_t *min_length,
138 size_t *max_length);
139
140/* For ASCII-based multi-byte character sets with mbminlen=1 */
141bool my_like_range_mb(const CHARSET_INFO *cs, const char *ptr,
142 size_t ptr_length, char escape, char w_one, char w_many,
143 size_t res_length, char *min_str, char *max_str,
144 size_t *min_length, size_t *max_length);
145
146/* For other character sets, with arbitrary mbminlen and mbmaxlen numbers */
147bool my_like_range_generic(const CHARSET_INFO *cs, const char *ptr,
148 size_t ptr_length, char escape, char w_one,
149 char w_many, size_t res_length, char *min_str,
150 char *max_str, size_t *min_length,
151 size_t *max_length);
152
153int my_wildcmp_8bit(const CHARSET_INFO *, const char *str, const char *str_end,
154 const char *wildstr, const char *wildend, int escape,
155 int w_one, int w_many);
156
157int my_wildcmp_bin(const CHARSET_INFO *, const char *str, const char *str_end,
158 const char *wildstr, const char *wildend, int escape,
159 int w_one, int w_many);
160
161size_t my_numchars_8bit(const CHARSET_INFO *, const char *b, const char *e);
162size_t my_numcells_8bit(const CHARSET_INFO *, const char *b, const char *e);
163size_t my_charpos_8bit(const CHARSET_INFO *, const char *b, const char *e,
164 size_t pos);
165size_t my_well_formed_len_8bit(const CHARSET_INFO *, const char *b,
166 const char *e, size_t pos, int *error);
167unsigned my_mbcharlen_8bit(const CHARSET_INFO *, unsigned c);
168
169/* Functions for multibyte charsets */
170extern size_t my_caseup_str_mb(const CHARSET_INFO *, char *);
171extern size_t my_casedn_str_mb(const CHARSET_INFO *, char *);
172extern size_t my_caseup_mb(const CHARSET_INFO *, char *src, size_t srclen,
173 char *dst, size_t dstlen);
174extern size_t my_casedn_mb(const CHARSET_INFO *, char *src, size_t srclen,
175 char *dst, size_t dstlen);
176extern size_t my_caseup_mb_varlen(const CHARSET_INFO *, char *src,
177 size_t srclen, char *dst, size_t dstlen);
178extern size_t my_casedn_mb_varlen(const CHARSET_INFO *, char *src,
179 size_t srclen, char *dst, size_t dstlen);
180extern size_t my_caseup_ujis(const CHARSET_INFO *, char *src, size_t srclen,
181 char *dst, size_t dstlen);
182extern size_t my_casedn_ujis(const CHARSET_INFO *, char *src, size_t srclen,
183 char *dst, size_t dstlen);
184extern int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *, const char *);
185
186int my_wildcmp_mb(const CHARSET_INFO *, const char *str, const char *str_end,
187 const char *wildstr, const char *wildend, int escape,
188 int w_one, int w_many);
189size_t my_numchars_mb(const CHARSET_INFO *, const char *b, const char *e);
190size_t my_numcells_mb(const CHARSET_INFO *, const char *b, const char *e);
191size_t my_charpos_mb3(const CHARSET_INFO *, const char *b, const char *e,
192 size_t pos);
193size_t my_well_formed_len_mb(const CHARSET_INFO *, const char *b, const char *e,
194 size_t pos, int *error);
195unsigned my_instr_mb(const CHARSET_INFO *, const char *b, size_t b_length,
196 const char *s, size_t s_length, my_match_t *match,
197 unsigned nmatch);
198
199int my_strnncoll_mb_bin(const CHARSET_INFO *cs, const uint8_t *s, size_t slen,
200 const uint8_t *t, size_t tlen, bool t_is_prefix);
201
202int my_strnncollsp_mb_bin(const CHARSET_INFO *cs, const uint8_t *a,
203 size_t a_length, const uint8_t *b, size_t b_length);
204
205int my_strcasecmp_mb_bin(const CHARSET_INFO *, const char *s, const char *t);
206
207void my_hash_sort_mb_bin(const CHARSET_INFO *, const uint8_t *key, size_t len,
208 uint64_t *nr1, uint64_t *nr2);
209
210size_t my_strnxfrm_mb(const CHARSET_INFO *, uint8_t *dst, size_t dstlen,
211 unsigned nweights, const uint8_t *src, size_t srclen,
212 unsigned flags);
213
214size_t my_strnxfrm_unicode(const CHARSET_INFO *, uint8_t *dst, size_t dstlen,
215 unsigned nweights, const uint8_t *src, size_t srclen,
216 unsigned flags);
217
218size_t my_strnxfrm_unicode_full_bin(const CHARSET_INFO *, uint8_t *dst,
219 size_t dstlen, unsigned nweights,
220 const uint8_t *src, size_t srclen,
221 unsigned flags);
222size_t my_strnxfrmlen_unicode_full_bin(const CHARSET_INFO *, size_t);
223
224int my_wildcmp_unicode(const CHARSET_INFO *cs, const char *str,
225 const char *str_end, const char *wildstr,
226 const char *wildend, int escape, int w_one, int w_many,
227 const MY_UNICASE_INFO *weights);
228
229extern bool my_parse_charset_xml(MY_CHARSET_LOADER *loader, const char *buf,
230 size_t buflen, MY_CHARSET_ERRMSG *errmsg);
231bool my_propagate_simple(const CHARSET_INFO *cs, const uint8_t *str,
232 size_t len);
233bool my_propagate_complex(const CHARSET_INFO *cs, const uint8_t *str,
234 size_t len);
235
237
238size_t my_strxfrm_pad(const CHARSET_INFO *cs, uint8_t *str, uint8_t *frmend,
239 uint8_t *strend, unsigned nweights, unsigned flags);
240
242
243#endif // STRINGS_M_CTYPE_INTERNALS_H_
static Mysys_charset_loader * loader
Definition: charset.cc:184
User-specified callback interface for collation parser/initializer.
Definition: m_ctype.h:189
static int flags[50]
Definition: hp_test1.cc:39
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:56
size_t my_caseup_mb_varlen(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:182
bool my_parse_charset_xml(MY_CHARSET_LOADER *loader, const char *buf, size_t buflen, MY_CHARSET_ERRMSG *errmsg)
Definition: ctype.cc:747
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:559
int my_strcasecmp_8bit(const CHARSET_INFO *cs, const char *, const char *)
Definition: ctype-simple.cc:240
size_t my_casedn_str_mb(const CHARSET_INFO *, char *)
Definition: ctype-mb.cc:57
constexpr int MY_CS_SORT_ORDER_TABLE_SIZE
Definition: m_ctype_internals.h:31
size_t my_charpos_mb3(const CHARSET_INFO *, const char *b, const char *e, size_t pos)
Definition: ctype-mb.cc:325
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:337
unsigned my_mbcharlen_8bit(const CHARSET_INFO *, unsigned c)
Definition: ctype-bin.cc:223
double my_strntod_8bit(const CHARSET_INFO *, const char *s, size_t l, const char **e, int *err)
Definition: ctype-simple.cc:635
MY_COLLATION_HANDLER my_collation_ucs2_uca_handler
Definition: ctype-uca.cc:5233
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:902
MY_UNICASE_INFO my_unicase_unicode520
Definition: ctype-utf8.cc:4785
int my_strcasecmp_mb_bin(const CHARSET_INFO *, const char *s, const char *t)
Definition: ctype-mb.cc:554
size_t my_snprintf_8bit(const CHARSET_INFO *, char *to, size_t n, const char *fmt,...)
Definition: ctype-simple.cc:277
size_t my_strnxfrmlen_simple(const CHARSET_INFO *, size_t)
Definition: ctype-simple.cc:61
size_t my_strnxfrmlen_unicode_full_bin(const CHARSET_INFO *, size_t)
Definition: ctype-utf8.cc:5172
size_t my_caseup_str_8bit(const CHARSET_INFO *, char *)
Definition: ctype-simple.cc:206
MY_COLLATION_HANDLER my_collation_mb_bin_handler
Definition: ctype-mb.cc:1334
long long my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr, const char **endptr, int *error)
Definition: ctype-simple.cc:1124
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:918
constexpr int MY_CS_TO_UNI_TABLE_SIZE
Definition: m_ctype_internals.h:32
MY_CHARSET_HANDLER my_charset_ascii_handler
Definition: ctype-simple.cc:1546
MY_UNICASE_INFO my_unicase_turkish
Definition: ctype-utf8.cc:1877
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:832
size_t my_longlong10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l, int radix, long long val)
Definition: ctype-simple.cc:685
size_t my_caseup_mb(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:84
void my_fill_8bit(const CHARSET_INFO *cs, char *to, size_t l, int fill)
Definition: ctype-simple.cc:897
size_t my_casedn_mb(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:111
MY_COLLATION_HANDLER my_collation_8bit_simple_ci_handler
Definition: ctype-simple.cc:1575
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:495
MY_COLLATION_HANDLER my_collation_8bit_bin_handler
Definition: ctype-bin.cc:451
int my_mb_ctype_8bit(const CHARSET_INFO *, int *, const uint8_t *, const uint8_t *)
Definition: ctype-simple.cc:1129
MY_UNICASE_INFO my_unicase_mysql500
Definition: ctype-utf8.cc:1703
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:230
constexpr int MY_CS_TO_LOWER_TABLE_SIZE
Definition: m_ctype_internals.h:29
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:40
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:460
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:933
constexpr int MY_CS_TO_UPPER_TABLE_SIZE
Definition: m_ctype_internals.h:30
bool my_propagate_simple(const CHARSET_INFO *cs, const uint8_t *str, size_t len)
Definition: ctype-simple.cc:1473
size_t my_caseup_8bit(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-simple.cc:220
bool my_propagate_complex(const CHARSET_INFO *cs, const uint8_t *str, size_t len)
Definition: ctype-simple.cc:1479
constexpr my_wc_t MY_CS_REPLACEMENT_CHARACTER
Definition: m_ctype_internals.h:34
size_t my_numchars_mb(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-mb.cc:314
bool my_charset_is_ascii_compatible(const CHARSET_INFO *cs)
Definition: ctype.cc:825
long my_strntol_8bit(const CHARSET_INFO *, const char *s, size_t l, int base, const char **e, int *err)
Definition: ctype-simple.cc:310
size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr, size_t length)
Definition: ctype-simple.cc:926
bool my_charset_is_8bit_pure_ascii(const CHARSET_INFO *cs)
Definition: ctype.cc:811
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:364
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:287
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:538
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:307
size_t my_casedn_mb_varlen(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:175
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:808
MY_UNICASE_INFO my_unicase_default
Definition: ctype-utf8.cc:1657
MY_CHARSET_HANDLER my_charset_8bit_handler
Definition: ctype-simple.cc:1518
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:4928
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:356
size_t my_numcells_8bit(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-simple.cc:907
size_t my_long10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l, int radix, long int val)
Definition: ctype-simple.cc:649
int my_strnncollsp_simple(const CHARSET_INFO *, const uint8_t *, size_t, const uint8_t *, size_t)
Definition: ctype-simple.cc:174
constexpr int MY_CS_CTYPE_TABLE_SIZE
Definition: m_ctype_internals.h:28
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:805
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:104
MY_UNI_CTYPE my_uni_ctype[256]
Definition: my_uctype.cc:934
size_t my_charpos_8bit(const CHARSET_INFO *, const char *b, const char *e, size_t pos)
Definition: ctype-simple.cc:912
int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *, const char *)
Definition: ctype-mb.cc:193
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:434
size_t my_casedn_str_8bit(const CHARSET_INFO *, char *)
Definition: ctype-simple.cc:213
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:388
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:656
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:247
MY_CHARSET_HANDLER my_charset_ucs2_handler
Definition: ctype-ucs2.cc:2893
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:404
int my_mb_ctype_mb(const CHARSET_INFO *, int *, const uint8_t *, const uint8_t *)
Definition: ctype-mb.cc:1321
size_t my_scan_8bit(const CHARSET_INFO *cs, const char *b, const char *e, int sq)
Definition: ctype-simple.cc:875
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:1220
int my_strnncoll_simple(const CHARSET_INFO *, const uint8_t *, size_t, const uint8_t *, size_t, bool)
Definition: ctype-simple.cc:132
size_t my_casedn_ujis(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-ujis.cc:35768
size_t my_numcells_mb(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-mb.cc:1289
int my_wc_mb_8bit(const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e)
Definition: ctype-simple.cc:255
size_t my_caseup_ujis(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-ujis.cc:35778
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:1501
static const char * strend(const char *s)
Definition: m_string.h:68
Log error(cerr, "ERROR")
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1085
Definition: buf0block_hint.cc:29
Definition: commit_order_queue.h:33
static std::string escape(const std::string &str)
Escapes (only) apostrophes.
Definition: st_units_of_measure.cc:38
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:75
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:921
required string key
Definition: replication_asynchronous_connection_failover.proto:59
Definition: m_ctype.h:422
Helper structure to return error messages from collation parser/initializer.
Definition: m_ctype.h:180
Definition: m_ctype.h:341
Definition: m_ctype.h:246
Definition: m_ctype.h:69
Definition: m_ctype.h:76
Definition: m_ctype.h:169
int n
Definition: xcom_base.cc:508