Bug 249777 - StringView::SplitResult::Iterator Improvements
Summary: StringView::SplitResult::Iterator Improvements
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-22 08:33 PST by Ryan Reno
Modified: 2022-12-22 08:36 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Reno 2022-12-22 08:33:20 PST
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.
Comment 1 Radar WebKit Bug Importer 2022-12-22 08:36:01 PST
<rdar://problem/103639246>