Changeset 23223 in vbox for trunk/include/iprt
- Timestamp:
- Sep 22, 2009 3:50:03 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 52692
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/ministring_cpp.h
r22173 r23223 212 212 } 213 213 214 /** 215 * Appends a copy of @a that to "this". 216 * @param that 217 */ 218 MiniString& append(const MiniString &that) 219 { 220 size_t cbThis = length(); 221 size_t cbThat = that.length(); 222 223 if (cbThat) 224 { 225 size_t cbBoth = cbThis + cbThat + 1; 226 227 reserve(cbBoth); 228 // calls realloc(cbBoth) and sets m_cbAllocated 229 230 memcpy(m_psz + cbThis, that.m_psz, cbThat); 231 m_psz[cbThis + cbThat] = '\0'; 232 m_cbLength = cbBoth - 1; 233 } 234 return *this; 235 } 214 MiniString& append(const MiniString &that); 215 MiniString& append(char c); 236 216 237 217 /**
Note:
See TracChangeset
for help on using the changeset viewer.