[webkit-changes] [WebKit/WebKit] 4dda90: Reduce use of strlen() in the codebase

Chris Dumez noreply at github.com
Tue Jan 28 12:27:25 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4dda9081d58ad072836beddaf27a8823ef52b7b1
      https://github.com/WebKit/WebKit/commit/4dda9081d58ad072836beddaf27a8823ef52b7b1
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2025-01-28 (Tue, 28 Jan 2025)

  Changed paths:
    M Source/WTF/wtf/DataLog.cpp
    M Source/WTF/wtf/StringPrintStream.cpp
    M Source/WTF/wtf/cocoa/FileSystemCocoa.mm
    M Source/WTF/wtf/dtoa/utils.h
    M Source/WTF/wtf/text/StringCommon.h
    M Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp
    M Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp
    M Source/WebCore/platform/ios/LegacyTileCache.mm
    M Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm
    M Tools/DumpRenderTree/mac/DumpRenderTree.mm

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

Reviewed by Darin Adler.

* Source/WTF/wtf/DataLog.cpp:
(WTF::initializeLogFileOnce):
* Source/WTF/wtf/StringPrintStream.cpp:
(WTF::StringPrintStream::toCString const):
(WTF::StringPrintStream::tryToString const):
(WTF::StringPrintStream::toString const):
(WTF::StringPrintStream::toStringWithLatin1Fallback const):
* Source/WTF/wtf/cocoa/FileSystemCocoa.mm:
(WTF::FileSystemImpl::openTemporaryFile):
* Source/WTF/wtf/dtoa/utils.h:
(WTF::double_conversion::StringBuilder::Finalize):
* Source/WTF/wtf/text/StringCommon.h:
(WTF::requires):
* Source/WebCore/Modules/fetch/FetchBodyConsumer.cpp:
(WebCore::FetchBodyConsumer::packageFormData):
* Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp:
(PAL::WTF_REQUIRES_LOCK):
* Source/WebCore/platform/ios/LegacyTileCache.mm:
(WebCore::LegacyTileCache::drawLayer):
* Source/WebKit/Shared/Cocoa/SandboxExtensionCocoa.mm:
(WebKit::SandboxExtension::createHandleForTemporaryFile):
* Tools/DumpRenderTree/mac/DumpRenderTree.mm:
(libraryPathForDumpRenderTree):
(runTestingServerLoop):

Canonical link: https://commits.webkit.org/289462@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