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

Issue 2500723002: Add UTF-16 string literal constructors to String classes (Closed)

Created:
4 years, 1 month ago by kojii
Modified:
3 years, 9 months ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UTF-16 string literal constructors to String classes The patch adds UTF-16 string literal[1] constructors to String, AtomicString, and StringView. [1] http://en.cppreference.com/w/cpp/language/string_literal Committed: https://crrev.com/95c5d59165c76528ee1cff41a2faa804d796ce9c Cr-Commit-Position: refs/heads/master@{#431827}

Patch Set 1 #

Total comments: 1

Patch Set 2 : esprehn nit (cstr -> chars) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M third_party/WebKit/Source/wtf/text/AtomicString.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/StringView.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/WTFString.h View 1 1 chunk +2 lines, -0 lines 1 comment Download

Messages

Total messages: 24 (15 generated)
kojii
PTAL. Is this ok to add? I used u"utf-16" string literals in my tests and ...
4 years, 1 month ago (2016-11-12 16:23:14 UTC) #8
haraken
(Elliott should be a better reviewer for the String implementation.)
4 years, 1 month ago (2016-11-14 01:50:03 UTC) #9
esprehn
Lgtm w/ a nit https://codereview.chromium.org/2500723002/diff/1/third_party/WebKit/Source/wtf/text/WTFString.h File third_party/WebKit/Source/wtf/text/WTFString.h (right): https://codereview.chromium.org/2500723002/diff/1/third_party/WebKit/Source/wtf/text/WTFString.h#newcode87 third_party/WebKit/Source/wtf/text/WTFString.h:87: String(const char16_t* cstr) : String(reinterpret_cast<const ...
4 years, 1 month ago (2016-11-14 02:24:15 UTC) #10
kojii
Thank you (on your Sunday evening ;)
4 years, 1 month ago (2016-11-14 02:28:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2500723002/20001
4 years, 1 month ago (2016-11-14 04:05:25 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-14 04:12:41 UTC) #19
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/95c5d59165c76528ee1cff41a2faa804d796ce9c Cr-Commit-Position: refs/heads/master@{#431827}
4 years, 1 month ago (2016-11-14 04:16:47 UTC) #21
jungshik at Google
While working on https://crbug.com/693046, I came across this CL. Sorry for adding a comment to ...
3 years, 9 months ago (2017-03-09 20:33:33 UTC) #23
esprehn
3 years, 9 months ago (2017-03-10 00:09:14 UTC) #24
Message was sent while issue was closed.
How is this different from
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/editing/c...
? We've had that for years I think. Are UChar and char16_t different sizes?

Powered by Google App Engine
This is Rietveld 408576698