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

Issue 14813013: add SkString::append(const char c) (Closed)

Created:
7 years, 7 months ago by epoger
Modified:
7 years, 7 months ago
CC:
skia-review_googlegroups.com, bsalomon, scroggo
Visibility:
Public.

Description

add SkString::append(const char c) R=bsalomon@google.com Committed: https://code.google.com/p/skia/source/detail?r=9081

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M include/core/SkString.h View 2 chunks +2 lines, -1 line 0 comments Download
M tests/StringTest.cpp View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
epoger
Brian, Leon, and I agreed yesterday that this would be handy.
7 years, 7 months ago (2013-05-09 18:54:21 UTC) #1
bsalomon
lgtm
7 years, 7 months ago (2013-05-09 18:58:28 UTC) #2
epoger
Committed patchset #1 manually as r9081 (presubmit successful).
7 years, 7 months ago (2013-05-09 19:37:44 UTC) #3
bungeman-skia
I don't see the need for this at all, this is what appendUnichar is for. ...
7 years, 7 months ago (2013-05-09 19:47:17 UTC) #4
epoger
On 2013/05/09 19:47:17, bungeman1 wrote: > I don't see the need for this at all, ...
7 years, 7 months ago (2013-05-09 19:53:05 UTC) #5
reed1
On 2013/05/09 19:53:05, epoger wrote: > On 2013/05/09 19:47:17, bungeman1 wrote: > > I don't ...
7 years, 7 months ago (2013-05-09 19:55:56 UTC) #6
epoger
7 years, 7 months ago (2013-05-09 19:57:29 UTC) #7
Message was sent while issue was closed.
On 2013/05/09 19:55:56, reed1 wrote:
> > So, what's the best way to append SkPATH_SEPARATOR to an SkString?
> 
> Use appendUnichar(SkPATH_SEPARATOR).
> 
> The problem possibly w/ this change is that we can make non-utf8 sequences.

Isn't that already an issue with the existing append() and += operators?

At any rate, OK, I'll roll this out and use appendUnichar() instead for my case.

Powered by Google App Engine
This is Rietveld 408576698