[Webkit-unassigned] [Bug 249777] New: StringView::SplitResult::Iterator Improvements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 22 08:33:20 PST 2022


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

            Bug ID: 249777
           Summary: StringView::SplitResult::Iterator Improvements
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rreno at apple.com

StringView::SplitResult::Iterator does not conform to LegacyForwardIterator as claimed by the trait iterator_category = std::forward_iterator_tag;

It's missing at least operator-> and postfix operator++


We should also consider upgrading the iterator to a bidirectional iterator. We could then do efficient checks for string formatting such as checking
that an IPv4 address contains the proper number of octets (it.end() - it.begin() == 4) that don't require rolling your own loop.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221222/bc7cd84f/attachment.htm>


More information about the webkit-unassigned mailing list