Changeset 43339 in webkit for trunk/JavaScriptCore/runtime/UString.h
- Timestamp:
- May 7, 2009, 1:27:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/UString.h
r43331 r43339 143 143 static BaseString& empty() { return *emptyBaseString; } 144 144 145 bool reserveCapacity(int capacity); 146 145 147 protected: 146 148 // constructor for use by BaseString subclass; they are their own bases … … 327 329 size_t cost() const; 328 330 331 // Attempt to grow this string such that it can grow to a total length of 'capacity' 332 // without reallocation. This may fail a number of reasons - if the BasicString is 333 // shared and another string is using part of the capacity beyond our end point, if 334 // the realloc fails, or if this string is empty and has no storage. 335 // 336 // This method returns a boolean indicating success. 337 bool reserveCapacity(int capacity) 338 { 339 return m_rep->reserveCapacity(capacity); 340 } 341 329 342 private: 330 343 void expandCapacity(int requiredLength);
Note:
See TracChangeset
for help on using the changeset viewer.