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.
Created attachment 157028 [details] Patch
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?
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.
Committed r125135: <http://trac.webkit.org/changeset/125135>