Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 511e5fff44f9949be51d903a8d1f9c851d2864e0
      
https://github.com/WebKit/WebKit/commit/511e5fff44f9949be51d903a8d1f9c851d2864e0
  Author: Chris Dumez <cdu...@apple.com>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSDateMath.cpp
    M Source/WTF/wtf/DateMath.cpp
    M Source/WTF/wtf/DateMath.h
    M Source/WebCore/platform/network/HTTPParsers.cpp
    M Source/WebCore/platform/network/curl/CookieUtil.cpp

  Log Message:
  -----------
  Reduce use of `const char*` in <wtf/DateMath.h>
https://bugs.webkit.org/show_bug.cgi?id=273409

Reviewed by Darin Adler.

Reduce use of `const char*` in <wtf/DateMath.h> by leveraging std::span.

* Source/JavaScriptCore/runtime/JSDateMath.cpp:
(JSC::DateCache::parseDate):
* Source/WTF/wtf/DateMath.cpp:
(WTF::skipSpacesAndComments):
(WTF::findMonth):
(WTF::parseInt):
(WTF::parseLong):
(WTF::parseDate):
(WTF::parseDateFromNullTerminatedCharacters): Deleted.
* Source/WTF/wtf/DateMath.h:
* Source/WebCore/platform/network/HTTPParsers.cpp:
(WebCore::parseHTTPDate):
* Source/WebCore/platform/network/curl/CookieUtil.cpp:
(WebCore::CookieUtil::parseExpiresMS):
(WebCore::CookieUtil::parseCookieAttributes):

Canonical link: https://commits.webkit.org/278153@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to