sources/mystring.h

branch
protocol5
changeset 79
62cfb7b97fc0
parent 73
07dda51a7a8e
child 84
3bd32eec3d57
equal deleted inserted replaced
78:c1d43ade656e 79:62cfb7b97fc0
102 void remove_from_start (int len) { remove (0, len); } 102 void remove_from_start (int len) { remove (0, len); }
103 void replace (const char* a, const char* b); 103 void replace (const char* a, const char* b);
104 void replace (int pos, int n, const String &a) { m_string.replace (pos, n, a.chars()); } 104 void replace (int pos, int n, const String &a) { m_string.replace (pos, n, a.chars()); }
105 void shrink_to_fit() { m_string.shrink_to_fit(); } 105 void shrink_to_fit() { m_string.shrink_to_fit(); }
106 void sprintf (const char* fmtstr, ...); 106 void sprintf (const char* fmtstr, ...);
107 bool starts_with (const String &other); 107 bool starts_with (const String &other) const;
108 String strip (char unwanted) { return strip ({unwanted}); } 108 String strip (char unwanted) { return strip ({unwanted}); }
109 String strip (const List<char> &unwanted); 109 String strip (const List<char> &unwanted);
110 void trim (int n); 110 void trim (int n);
111 111
112 static String from_number (short int a); 112 static String from_number (short int a);

mercurial