sources/mystring.h

changeset 83
08bfc3d9d2ae
parent 73
07dda51a7a8e
child 84
3bd32eec3d57
child 87
53c2aecb9704
equal deleted inserted replaced
82:895088452014 83:08bfc3d9d2ae
101 void remove_from_end (int len) { remove (length() - len, len); } 101 void remove_from_end (int len) { remove (length() - len, len); }
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 __cdecl sprintf (const char* fmtstr, ...);
107 void vsprintf (const char* fmtstr, va_list args);
107 bool starts_with (const String &other); 108 bool starts_with (const String &other);
108 String strip (char unwanted) { return strip ({unwanted}); } 109 String strip (char unwanted) { return strip ({unwanted}); }
109 String strip (const List<char> &unwanted); 110 String strip (const List<char> &unwanted);
110 void trim (int n); 111 void trim (int n);
111 112

mercurial