@@ -156,7 +156,7 @@ static inline void APPEND_HEX(char *&to, uchar value)
156
156
}
157
157
158
158
159
- void String ::qs_append_hex (const char *str, uint32 len)
159
+ void Static_binary_string ::qs_append_hex (const char *str, uint32 len)
160
160
{
161
161
const char *str_end= str + len;
162
162
for (char *to= Ptr + str_length ; str < str_end; str++)
@@ -677,7 +677,7 @@ bool String::append_with_prefill(const char *s,uint32 arg_length,
677
677
}
678
678
679
679
680
- int String ::strstr (const String &s,uint32 offset)
680
+ int Static_binary_string ::strstr (const Static_binary_string &s, uint32 offset)
681
681
{
682
682
if (s.length ()+offset <= str_length)
683
683
{
@@ -708,7 +708,7 @@ int String::strstr(const String &s,uint32 offset)
708
708
** Search string from end. Offset is offset to the end of string
709
709
*/
710
710
711
- int String ::strrstr (const String &s,uint32 offset)
711
+ int Static_binary_string ::strrstr (const Static_binary_string &s, uint32 offset)
712
712
{
713
713
if (s.length () <= offset && offset <= str_length)
714
714
{
@@ -787,34 +787,34 @@ int String::reserve(size_t space_needed, size_t grow_by)
787
787
return FALSE ;
788
788
}
789
789
790
- void String ::qs_append (const char *str, size_t len)
790
+ void Static_binary_string ::qs_append (const char *str, size_t len)
791
791
{
792
792
memcpy (Ptr + str_length, str, len + 1 );
793
793
str_length += (uint32)len;
794
794
}
795
795
796
- void String ::qs_append (double d)
796
+ void Static_binary_string ::qs_append (double d)
797
797
{
798
798
char *buff = Ptr + str_length;
799
799
str_length+= (uint32) my_gcvt (d, MY_GCVT_ARG_DOUBLE, FLOATING_POINT_BUFFER - 1 , buff,
800
800
NULL );
801
801
}
802
802
803
- void String ::qs_append (double *d)
803
+ void Static_binary_string ::qs_append (double *d)
804
804
{
805
805
double ld;
806
806
float8get (ld, (char *) d);
807
807
qs_append (ld);
808
808
}
809
809
810
- void String ::qs_append (int i)
810
+ void Static_binary_string ::qs_append (int i)
811
811
{
812
812
char *buff= Ptr + str_length;
813
813
char *end= int10_to_str (i, buff, -10 );
814
814
str_length+= (int ) (end-buff);
815
815
}
816
816
817
- void String ::qs_append (ulonglong i)
817
+ void Static_binary_string ::qs_append (ulonglong i)
818
818
{
819
819
char *buff= Ptr + str_length;
820
820
char *end= longlong10_to_str (i, buff, 10 );
@@ -1149,26 +1149,6 @@ void String::print_with_conversion(String *print, CHARSET_INFO *cs) const
1149
1149
}
1150
1150
1151
1151
1152
- /*
1153
- Exchange state of this object and argument.
1154
-
1155
- SYNOPSIS
1156
- String::swap()
1157
-
1158
- RETURN
1159
- Target string will contain state of this object and vice versa.
1160
- */
1161
-
1162
- void String::swap (String &s)
1163
- {
1164
- swap_variables (char *, Ptr, s.Ptr );
1165
- swap_variables (uint32, str_length, s.str_length );
1166
- swap_variables (uint32, Alloced_length, s.Alloced_length );
1167
- swap_variables (bool , alloced, s.alloced );
1168
- Charset::swap (s);
1169
- }
1170
-
1171
-
1172
1152
/* *
1173
1153
Convert string to printable ASCII string
1174
1154
0 commit comments