[webkit-changes] [WebKit/WebKit] 44f686: Replace `String::fromUTF8(const LChar*)` with `Str...
Chris Dumez
noreply at github.com
Mon May 6 21:22:49 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 44f686979a890c8d5e6e4ae4fbbddfaf8ed539df
https://github.com/WebKit/WebKit/commit/44f686979a890c8d5e6e4ae4fbbddfaf8ed539df
Author: Chris Dumez <cdumez at apple.com>
Date: 2024-05-06 (Mon, 06 May 2024)
Changed paths:
M Source/WTF/wtf/FileSystem.cpp
M Source/WTF/wtf/text/ASCIIFastPath.h
M Source/WTF/wtf/text/StringCommon.h
M Source/WTF/wtf/text/WTFString.cpp
M Source/WTF/wtf/text/WTFString.h
M Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp
Log Message:
-----------
Replace `String::fromUTF8(const LChar*)` with `String::fromUTF8(std::span<const char8_t>)`
https://bugs.webkit.org/show_bug.cgi?id=273799
Reviewed by Sihui Liu.
Replace `String::fromUTF8(const LChar*)` with `String::fromUTF8(std::span<const char8_t>)`
as we're transitioning towards using std::span, and using char8_t to represent UTF-8.
* Source/WTF/wtf/FileSystem.cpp:
(WTF::FileSystemImpl::fromStdFileSystemPath):
* Source/WTF/wtf/text/ASCIIFastPath.h:
* Source/WTF/wtf/text/StringCommon.h:
(WTF::span):
* Source/WTF/wtf/text/WTFString.cpp:
(WTF::fromUTF8Impl):
(WTF::String::fromUTF8):
(WTF::String::fromUTF8ReplacingInvalidSequences):
(WTF::String::fromUTF8WithLatin1Fallback):
* Source/WTF/wtf/text/WTFString.h:
Canonical link: https://commits.webkit.org/278442@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