Bug 22538 - StringImpl::startsWith uses find which searches the whole string.
Summary: StringImpl::startsWith uses find which searches the whole string.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-28 00:02 PST by David Levin
Modified: 2008-12-02 12:27 PST (History)
1 user (show)

See Also:


Attachments
Simply changes the find to reverseFind in StringImpl::startswith (1.59 KB, patch)
2008-11-28 08:26 PST, David Levin
eric: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Levin 2008-11-28 00:02:46 PST
It wouldn't if it used StringImpl::reverseFind.
Comment 1 David Levin 2008-11-28 08:26:49 PST
Created attachment 25573 [details]
Simply changes the find to reverseFind in StringImpl::startswith
Comment 2 Eric Seidel (no email) 2008-12-01 13:01:03 PST
Comment on attachment 25573 [details]
Simply changes the find to reverseFind in StringImpl::startswith

Looks fine to me.
Comment 3 Eric Seidel (no email) 2008-12-02 12:27:45 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/platform/text/StringImpl.h
Committed r38910