[Webkit-unassigned] [Bug 151917] Implement UCharIterator StringView::createIterator()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 6 18:38:17 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151917

--- Comment #2 from Darin Adler <darin at apple.com> ---
Comment on attachment 266722
  --> https://bugs.webkit.org/attachment.cgi?id=266722
Patch

Why should this be a member function instead of just a function that takes a StringView?

It’s a little bit dangerous to create one of these UCharIterator objects for general use, because the iterator only good as long as the characters pointer to by the StringView are good. The functions we pass to the UCharIterator don’t do the CHECK_STRINGVIEW_LIFETIME checking.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151207/7e68c351/attachment.html>


More information about the webkit-unassigned mailing list