Changeset 65593 in webkit for trunk/JavaScriptCore/runtime/JSString.cpp
- Timestamp:
- Aug 18, 2010, 1:56:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/JSString.cpp
r65588 r65593 113 113 if (matchPosition == notFound) 114 114 return JSValue(this); 115 return jsString(exec, m_value.substr (0, matchPosition), replacement, m_value.substr(matchPosition + 1));115 return jsString(exec, m_value.substringSharingImpl(0, matchPosition), replacement, m_value.substringSharingImpl(matchPosition + 1)); 116 116 } 117 117 … … 148 148 } 149 149 150 builder.append(UString(string).substr (0, matchPosition));150 builder.append(UString(string).substringSharingImpl(0, matchPosition)); 151 151 if (replacement.length()) 152 152 builder.append(replacement); 153 builder.append(UString(string).substr (matchPosition + 1));153 builder.append(UString(string).substringSharingImpl(matchPosition + 1)); 154 154 matchString = 0; 155 155 }
Note:
See TracChangeset
for help on using the changeset viewer.