54
54
uint32_t str_length,Alloced_length;
56
56
const CHARSET_INFO *str_charset;
60
Ptr=0; str_length=Alloced_length=0; alloced=0;
61
str_charset= &my_charset_bin;
63
String(uint32_t length_arg)
65
alloced=0; Alloced_length=0; (void) real_alloc(length_arg);
66
str_charset= &my_charset_bin;
68
String(const char *str, const CHARSET_INFO * const cs)
70
Ptr=(char*) str; str_length=(uint) strlen(str); Alloced_length=0; alloced=0;
73
String(const char *str,uint32_t len, const CHARSET_INFO * const cs)
75
Ptr=(char*) str; str_length=len; Alloced_length=0; alloced=0;
78
String(char *str,uint32_t len, const CHARSET_INFO * const cs)
80
Ptr=(char*) str; Alloced_length=str_length=len; alloced=0;
59
Ptr(NULL), str_length(0), Alloced_length(0),
60
alloced(false), str_charset(&my_charset_bin)
63
String(uint32_t length_arg) :
64
Ptr(NULL), str_length(0), Alloced_length(0),
65
alloced(false), str_charset(&my_charset_bin)
67
(void) real_alloc(length_arg);
70
String(const char *str, const CHARSET_INFO * const cs) :
71
Ptr(str), str_length(0), Alloced_length(0),
72
alloced(false), str_charset(cs)
74
str_length= strlen(str);
77
String(const char *str,uint32_t len, const CHARSET_INFO * const cs) :
78
str_length(len), Alloced_length(0), alloced(false),
79
Ptr(str), str_charset(cs)
83
83
String(const String &str)
84
str_length(str.Ptr), Alloced_length(0), alloced(false),
85
Ptr(str), str_charset(cs)
85
87
Ptr=str.Ptr ; str_length=str.str_length ;
86
Alloced_length=str.Alloced_length; alloced=0;
88
Alloced_length=str.Alloced_length; alloced=0;
87
89
str_charset=str.str_charset;
89
91
static void *operator new(size_t size, MEM_ROOT *mem_root)