Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8bc5a4faf17f080969fd19205c89a90b0a82da47
https://github.com/WebKit/WebKit/commit/8bc5a4faf17f080969fd19205c89a90b0a82da47
Author: Keith Miller <[email protected]>
Date: 2024-04-07 (Sun, 07 Apr 2024)
Changed paths:
M Source/WTF/wtf/HashTraits.h
M Source/WTF/wtf/text/ASCIILiteral.cpp
M Source/WTF/wtf/text/ASCIILiteral.h
Log Message:
-----------
ASCIILiteral could be a wrapper around std::span
https://bugs.webkit.org/show_bug.cgi?id=272173
rdar://125920640
Reviewed by Chris Dumez.
Right now ASCIILiteral just points to a `const char*` but now that
std::span exists we should consider using that as the underlying
storage for ASCIILiteral since it makes getting the length faster.
To make the characters8() function behave as expected we keep a
null terminator in the span we hold.
* Source/WTF/wtf/text/ASCIILiteral.cpp:
(WTF::ASCIILiteral::dump const):
* Source/WTF/wtf/text/ASCIILiteral.h:
(WTF::StringLiterals::operator _s):
(WTF::ASCIILiteral::length const): Deleted.
Canonical link: https://commits.webkit.org/277181@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes