Changeset 955 for cpp/frams/util/sstring.h
- Timestamp:
- 06/25/20 00:34:29 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/sstring.h
r889 r955 70 70 SString(); ///< make an empty string 71 71 SString(const char*t, int t_len = -1); ///< make a string from char* 72 SString(int x) ; ///< string with initial buffer size72 SString(int x) = delete; ///< disallow the former 'int' constructor (so the new 'char' version is not used through implicit conversion) 73 73 SString(const SString& from); ///< duplicate string 74 74 SString(SString&& from); ///< move 75 SString(char in); 75 76 ~SString(); 76 77 … … 86 87 int len() const { return buf->used; } ///< get string length 87 88 void shrink(); ///< free unnecessary buffer 89 void reserve(int needed) { ensureSize(needed); } ///< like in std::string 88 90 89 91 /// after this call, you can modify sstring directly.
Note: See TracChangeset
for help on using the changeset viewer.