Changeset 65493 in webkit for trunk/JavaScriptCore/wtf/text/StringImpl.cpp
- Timestamp:
- Aug 17, 2010, 4:54:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/text/StringImpl.cpp
r65468 r65493 543 543 } 544 544 545 for (unsigned i = 0; i < =delta; ++i) {545 for (unsigned i = 0; i < delta; ++i) { 546 546 if (searchHash == matchHash && equal(searchCharacters + i, matchString, matchLength)) 547 547 return index + i; … … 549 549 searchHash -= searchCharacters[i]; 550 550 } 551 if (searchHash == matchHash && equal(searchCharacters + delta, matchString, matchLength)) 552 return index + delta; 551 553 return notFound; 552 554 }
Note:
See TracChangeset
for help on using the changeset viewer.