Avoid unneeded string copy when parsing URL hosts
Created attachment 287683 [details] Patch
https://trac.webkit.org/changeset/205318
Comment on attachment 287683 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287683&action=review > Source/WebCore/platform/URLParser.h:46 > + void parseAuthority(StringView::CodePoints::Iterator&, const StringView::CodePoints::Iterator& end); > + void parseHost(StringView::CodePoints::Iterator&, const StringView::CodePoints::Iterator& end); Why these pairs of arguments instead of a StringView?
At the time I need to call these functions, all I have is StringView::CodePoints::Iterators. I'm not sure how to make a StringView out of iterators.