Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0d04522925eab514bd07f9c87fc844454f26129d
      
https://github.com/WebKit/WebKit/commit/0d04522925eab514bd07f9c87fc844454f26129d
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-04-19 (Sun, 19 Apr 2026)

  Changed paths:
    M Source/WTF/wtf/SIMDUTF.h
    M Source/WTF/wtf/text/Base64.cpp
    M Source/WTF/wtf/text/StringCommon.cpp
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/unicode/UTF8Conversion.cpp

  Log Message:
  -----------
  [WTF] Use std::span SIMDUTF API
https://bugs.webkit.org/show_bug.cgi?id=312705
rdar://175100059

Reviewed by Sosuke Suzuki.

Newer SIMDUTF offers std::span-based API. Let's use them.

* Source/WTF/wtf/SIMDUTF.h:
* Source/WTF/wtf/text/Base64.cpp:
(WTF::base64EncodeInternal):
(WTF::fromBase64Impl):
(WTF::maxLengthFromBase64):
* Source/WTF/wtf/text/StringCommon.cpp:
(WTF::isWellFormedUTF16):
(WTF::toWellFormedUTF16):
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::create):
(WTF::StringImpl::utf8ForCharactersIntoBuffer):
(WTF::StringImpl::utf8LengthFromUTF16):
(WTF::StringImpl::tryConvertUTF16ToUTF8):
* Source/WTF/wtf/unicode/UTF8Conversion.cpp:
(WTF::Unicode::convert):
(WTF::Unicode::checkUTF8WithoutUTF16Length):
(WTF::Unicode::checkUTF8):

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



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

Reply via email to