Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29332775: Issue #1234 - Remove 'CString' From 'ToLowerString()' (Closed)

Created:
Dec. 15, 2015, 9:10 p.m. by Eric
Modified:
Jan. 8, 2016, 3:42 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue #1234 - Remove 'CString' From 'ToLowerString()' Reimplement 'ToLowerString()' to eliminate 'CString'. New implementation uses '_wcslwr_s()', the same function used in 'CString::MakeLower()' from our prior version, but without the overhead of two string conversions. Add unit tests for new implementation.

Patch Set 1 #

Total comments: 20

Patch Set 2 : rewrite to use _wcslwr_s() #

Total comments: 12

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : address comments, round two #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -2 lines) Patch
M src/plugin/PluginUtil.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/plugin/PluginUtil.cpp View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download
M test/plugin/UtilTest.cpp View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download

Messages

Total messages: 10
Eric
This shouldn't have been so complicated, but apparently it was, so there are "too many" ...
Dec. 15, 2015, 9:14 p.m. (2015-12-15 21:14:00 UTC) #1
sergei
https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp File src/plugin/PluginUtil.cpp (right): https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp#newcode58 src/plugin/PluginUtil.cpp:58: * This function '_wcslwr()' uses the current locale to ...
Dec. 16, 2015, 10:32 a.m. (2015-12-16 10:32:45 UTC) #2
Eric
New patch set 2. https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp File src/plugin/PluginUtil.cpp (right): https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp#newcode58 src/plugin/PluginUtil.cpp:58: * This function '_wcslwr()' uses ...
Dec. 16, 2015, 1:53 p.m. (2015-12-16 13:53:27 UTC) #3
sergei
https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp File src/plugin/PluginUtil.cpp (right): https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp#newcode74 src/plugin/PluginUtil.cpp:74: _wcslwr(const_cast<wchar_t*>(lower.data())); On 2015/12/16 13:53:26, Eric wrote: > On 2015/12/16 ...
Dec. 16, 2015, 3:53 p.m. (2015-12-16 15:53:17 UTC) #4
Eric
New patch set 3. https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp File src/plugin/PluginUtil.cpp (right): https://codereview.adblockplus.org/29332775/diff/29332776/src/plugin/PluginUtil.cpp#newcode74 src/plugin/PluginUtil.cpp:74: _wcslwr(const_cast<wchar_t*>(lower.data())); On 2015/12/16 15:53:16, sergei ...
Dec. 16, 2015, 4:38 p.m. (2015-12-16 16:38:07 UTC) #5
Eric
Patch set 3 is current; no need for rebase. This is one of two outstanding ...
Jan. 5, 2016, 4:16 p.m. (2016-01-05 16:16:10 UTC) #6
Oleksandr
Just a couple of nits. Otherwise looks good. https://codereview.adblockplus.org/29332775/diff/29332817/src/plugin/PluginUtil.cpp File src/plugin/PluginUtil.cpp (right): https://codereview.adblockplus.org/29332775/diff/29332817/src/plugin/PluginUtil.cpp#newcode65 src/plugin/PluginUtil.cpp:65: * ...
Jan. 5, 2016, 10:59 p.m. (2016-01-05 22:59:01 UTC) #7
Eric
Patch set 4 addresses Oleksandr's comments. https://codereview.adblockplus.org/29332775/diff/29332817/src/plugin/PluginUtil.cpp File src/plugin/PluginUtil.cpp (right): https://codereview.adblockplus.org/29332775/diff/29332817/src/plugin/PluginUtil.cpp#newcode65 src/plugin/PluginUtil.cpp:65: * Thus we ...
Jan. 7, 2016, 2:34 p.m. (2016-01-07 14:34:05 UTC) #8
Oleksandr
On 2016/01/07 14:34:05, Eric wrote: > Patch set 4 addresses Oleksandr's comments. > > https://codereview.adblockplus.org/29332775/diff/29332817/src/plugin/PluginUtil.cpp ...
Jan. 8, 2016, 2:50 p.m. (2016-01-08 14:50:57 UTC) #9
sergei
Jan. 8, 2016, 3:04 p.m. (2016-01-08 15:04:41 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld