31
31
#include <mysys/iocache.h>
34
int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
35
String *copy_if_not_alloced(String *a,String *b,uint32_t arg_length);
36
uint32_t copy_and_convert(char *to, uint32_t to_length, const CHARSET_INFO * const to_cs,
37
const char *from, uint32_t from_length,
38
const CHARSET_INFO * const from_cs, uint32_t *errors);
39
uint32_t well_formed_copy_nchars(const CHARSET_INFO * const to_cs,
40
char *to, uint32_t to_length,
41
const CHARSET_INFO * const from_cs,
42
const char *from, uint32_t from_length,
44
const char **well_formed_error_pos,
45
const char **cannot_convert_error_pos,
46
const char **from_end_pos);
47
size_t my_copy_with_hex_escaping(const CHARSET_INFO * const cs,
48
char *dst, size_t dstlen,
49
const char *src, size_t srclen);
35
#if defined(__cplusplus)
39
int sortcmp(const String *a,const String *b, const CHARSET_INFO * const cs);
40
int stringcmp(const String *a,const String *b);
41
String *copy_if_not_alloced(String *a,String *b,uint32_t arg_length);
42
uint32_t copy_and_convert(char *to, uint32_t to_length,
43
const CHARSET_INFO * const to_cs,
44
const char *from, uint32_t from_length,
45
const CHARSET_INFO * const from_cs,
47
uint32_t well_formed_copy_nchars(const CHARSET_INFO * const to_cs,
48
char *to, uint32_t to_length,
49
const CHARSET_INFO * const from_cs,
50
const char *from, uint32_t from_length,
52
const char **well_formed_error_pos,
53
const char **cannot_convert_error_pos,
54
const char **from_end_pos);
55
size_t my_copy_with_hex_escaping(const CHARSET_INFO * const cs,
56
char *dst, size_t dstlen,
57
const char *src, size_t srclen);
59
#if defined(__cplusplus)