Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Issue 1511813004: Refactor StringImpl::{start,end}sWith(StringImpl*, ...) (Closed)

Created:
5 years ago by fs
Modified:
5 years ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor StringImpl::{start,end}sWith(StringImpl*, ...) In preparation for ASCII case-insensitive matching in these two methods, add a macro for handling the "dispatch" to the right method, and split the single method into two in both instances. Make the argument to the new methods as well as the methods themselves const. Add equalSubstring{,IgnoringCase} helpers and use those to implement both of the methods. BUG=565878 Committed: https://crrev.com/935f4239788702fc9f9c196c6858b1037ed53cc4 Cr-Commit-Position: refs/heads/master@{#364243}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -13 lines) Patch
M third_party/WebKit/Source/wtf/text/StringImpl.h View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringImpl.cpp View 2 chunks +69 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 5 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
fs
Part 2 of https://codereview.chromium.org/1499933003 PTAL
5 years ago (2015-12-09 13:31:35 UTC) #2
tkent
lgtm
5 years ago (2015-12-10 01:17:16 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1511813004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1511813004/1
5 years ago (2015-12-10 01:18:54 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-10 01:31:01 UTC) #6
commit-bot: I haz the power
5 years ago (2015-12-10 01:31:46 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/935f4239788702fc9f9c196c6858b1037ed53cc4
Cr-Commit-Position: refs/heads/master@{#364243}

Powered by Google App Engine
This is Rietveld 408576698