145
145
ulint size); /* in: size of destination buffer */
147
147
/**************************************************************************
148
Compute strlen(ut_strcpyq(str, q)). */
153
/* out: length of the string when quoted */
154
const char* str, /* in: null-terminated string */
155
char q); /* in: the quote character */
157
/**************************************************************************
158
Make a quoted copy of a NUL-terminated string. Leading and trailing
159
quotes will not be included; only embedded quotes will be escaped.
160
See also ut_strlenq() and ut_memcpyq(). */
165
/* out: pointer to end of dest */
166
char* dest, /* in: output buffer */
167
char q, /* in: the quote character */
168
const char* src); /* in: null-terminated string */
170
/**************************************************************************
171
Make a quoted copy of a fixed-length string. Leading and trailing
172
quotes will not be included; only embedded quotes will be escaped.
173
See also ut_strlenq() and ut_strcpyq(). */
178
/* out: pointer to end of dest */
179
char* dest, /* in: output buffer */
180
char q, /* in: the quote character */
181
const char* src, /* in: string to be quoted */
182
ulint len); /* in: length of src */
184
/**************************************************************************
185
148
Return the number of times s2 occurs in s1. Overlapping instances of s2
186
149
are only counted once. */