Changeset 65593 in webkit for trunk/JavaScriptCore/wtf/text/WTFString.cpp
- Timestamp:
- Aug 18, 2010, 1:56:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/text/WTFString.cpp
r65468 r65593 246 246 } 247 247 248 String String::substringSharingImpl(unsigned offset, unsigned length) const 249 { 250 // FIXME: We used to check against a limit of Heap::minExtraCost / sizeof(UChar). 251 252 unsigned stringLength = this->length(); 253 offset = min(offset, stringLength); 254 length = min(length, stringLength - offset); 255 256 if (!offset && length == stringLength) 257 return *this; 258 return String(StringImpl::create(m_impl, offset, length)); 259 } 260 248 261 String String::lower() const 249 262 {
Note:
See TracChangeset
for help on using the changeset viewer.