[webkit-changes] [WebKit/WebKit] 0e64ae: Reduce use of memchr() in the codebase

Chris Dumez noreply at github.com
Thu Jan 23 19:13:43 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0e64aee2e3700b102c9a400f2b4b1849b9778334
      https://github.com/WebKit/WebKit/commit/0e64aee2e3700b102c9a400f2b4b1849b9778334
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2025-01-23 (Thu, 23 Jan 2025)

  Changed paths:
    M Source/WTF/wtf/StdLibExtras.h
    M Source/WTF/wtf/text/StringCommon.h
    M Source/WebCore/rendering/RenderQuote.cpp
    M Source/WebKitLegacy/mac/Misc/WebNSDataExtras.mm
    M Tools/Scripts/webkitpy/style/checkers/cpp.py
    M Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
    M Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm

  Log Message:
  -----------
  Reduce use of memchr() in the codebase
https://bugs.webkit.org/show_bug.cgi?id=286337

Reviewed by Darin Adler.

* Source/WTF/wtf/StdLibExtras.h:
(WTF::find):
* Source/WTF/wtf/text/StringCommon.h:
(WTF::spanHasPrefixIgnoringASCIICase):
(WTF::sizeof):
* Source/WebCore/rendering/RenderQuote.cpp:
(WebCore::subtagCompare):
* Source/WebKitLegacy/mac/Misc/WebNSDataExtras.mm:
(-[NSData _webkit_guessedMIMETypeForXML]):
(-[NSData _webkit_guessedMIMEType]):
(-[NSData _web_isCaseInsensitiveEqualToCString:]):
* Tools/Scripts/webkitpy/style/checkers/cpp.py:
(check_safer_cpp):
(CppChecker):
* Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py:
(WebKitStyleTest.test_safer_cpp):
* Tools/TestWebKitAPI/Tests/WTF/cocoa/URLExtras.mm:
(TestWebKitAPI::dataAsString):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list