Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6aadfa61330f0e751cd4d05e3ec053c9977f5ea0
      
https://github.com/WebKit/WebKit/commit/6aadfa61330f0e751cd4d05e3ec053c9977f5ea0
  Author: Chris Dumez <[email protected]>
  Date:   2024-06-28 (Fri, 28 Jun 2024)

  Changed paths:
    M Source/WTF/wtf/URL.cpp
    M Source/WTF/wtf/text/CString.h
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringImpl.h
    M Source/WTF/wtf/text/StringView.h
    M Source/WTF/wtf/text/WTFString.h
    M Source/WebCore/dom/TextEncoder.cpp
    M Source/WebCore/platform/generic/KeyedEncoderGeneric.cpp
    M Source/WebCore/workers/ScriptBuffer.cpp

  Log Message:
  -----------
  Update `tryGetUTF8()` to return a `span<const char8_t>` instead of a 
`span<const char>`
https://bugs.webkit.org/show_bug.cgi?id=275823

Reviewed by Darin Adler.

Update `tryGetUTF8()` to return a `span<const char8_t>` instead of a 
`span<const char>`,
since it returns UTF-8.

* Source/WTF/wtf/URL.cpp:
(WTF::percentEncodeCharacters):
* Source/WTF/wtf/text/CString.h:
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::utf8ForCharacters):
(WTF::StringImpl::utf8ForCharactersIntoBuffer):
* Source/WTF/wtf/text/StringImpl.h:
(WTF::StringImpl::tryGetUTF8 const):
(WTF::StringImpl::tryGetUTF8ForCharacters):
* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::tryGetUTF8 const):
* Source/WTF/wtf/text/WTFString.h:
(WTF::String::tryGetUTF8 const):
* Source/WebCore/dom/TextEncoder.cpp:
(WebCore::TextEncoder::encode const):
* Source/WebCore/platform/generic/KeyedEncoderGeneric.cpp:
(WebCore::KeyedEncoderGeneric::encodeString):
* Source/WebCore/workers/ScriptBuffer.cpp:
(WebCore::ScriptBuffer::append):

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

Reply via email to