WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93402
Use char* instead of LChar* for the public interface of String construction from literals
https://bugs.webkit.org/show_bug.cgi?id=93402
Summary
Use char* instead of LChar* for the public interface of String construction f...
Benjamin Poulain
Reported
2012-08-07 15:39:22 PDT
Some part of the API was based on LChar because it is easier. After using it for a bit, I think it is dangerously confusing.
Attachments
Patch
(11.70 KB, patch)
2012-08-07 15:51 PDT
,
Benjamin Poulain
msaboff
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Benjamin Poulain
Comment 1
2012-08-07 15:51:30 PDT
Created
attachment 157028
[details]
Patch
Michael Saboff
Comment 2
2012-08-08 15:40:44 PDT
Comment on
attachment 157028
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=157028&action=review
> Source/WTF/wtf/text/StringImpl.cpp:87 > + ASSERT(charactersAreAllASCII<LChar>(reinterpret_cast<const LChar*>(characters), length));
Do we care about the ASSERT after this change?
Benjamin Poulain
Comment 3
2012-08-08 16:14:27 PDT
Thanks for the review.
> > + ASSERT(charactersAreAllASCII<LChar>(reinterpret_cast<const LChar*>(characters), length)); > > Do we care about the ASSERT after this change?
Yep, it is still possible to pass non ASCII characters. Unfortunately there is no easy way to enforce that at compile time.
Benjamin Poulain
Comment 4
2012-08-08 18:29:56 PDT
Committed
r125135
: <
http://trac.webkit.org/changeset/125135
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug