Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fd9e18c7f3c6303f8a7bb1d8b0af8767bb392410
      
https://github.com/WebKit/WebKit/commit/fd9e18c7f3c6303f8a7bb1d8b0af8767bb392410
  Author: Chris Dumez <cdu...@apple.com>
  Date:   2024-04-13 (Sat, 13 Apr 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/IntlCache.cpp
    M Source/JavaScriptCore/runtime/IntlCache.h
    M Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringView.h
    M Source/WebCore/PAL/pal/text/TextCodecCJK.cpp
    M Source/WebCore/editing/Editor.cpp
    M Source/WebCore/html/parser/HTMLTreeBuilder.cpp
    M Source/WebCore/platform/Length.cpp
    M Source/WebCore/platform/SharedStringHash.cpp
    M Source/WebCore/platform/TelephoneNumberDetector.h
    M Source/WebCore/platform/cocoa/TelephoneNumberDetectorCocoa.cpp
    M Source/WebCore/platform/graphics/StringTruncator.cpp
    M Tools/TestWebKitAPI/Tests/WTF/StringView.cpp

  Log Message:
  -----------
  Update StringView::UpconvertedCharactersWithSize to store its size
https://bugs.webkit.org/show_bug.cgi?id=272629

Reviewed by Darin Adler.

Update StringView::UpconvertedCharactersWithSize to store its size and add a
span() function.

* Source/JavaScriptCore/runtime/IntlCache.cpp:
(JSC::IntlCache::getBestDateTimePattern):
* Source/JavaScriptCore/runtime/IntlCache.h:
* Source/JavaScriptCore/runtime/IntlDateTimeFormat.cpp:
(JSC::IntlDateTimeFormat::initializeDateTimeFormat):
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::convertToUppercaseWithoutLocale):
(WTF::StringImpl::convertToLowercaseWithLocale):
(WTF::StringImpl::convertToUppercaseWithLocale):
(WTF::StringImpl::foldCase):
* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::UpconvertedCharactersWithSize::operator const UChar* const):
(WTF::StringView::UpconvertedCharactersWithSize::get const):
(WTF::StringView::UpconvertedCharactersWithSize::span const):
(WTF::StringView::UpconvertedCharactersWithSize<N>::UpconvertedCharactersWithSize):
* Source/WebCore/PAL/pal/text/TextCodecCJK.cpp:
(PAL::eucJPEncode):
(PAL::iso2022JPEncode):
(PAL::shiftJISEncode):
(PAL::eucKREncode):
(PAL::big5Encode):
(PAL::gbEncodeShared):
* Source/WebCore/editing/Editor.cpp:
(WebCore::scanForTelephoneNumbers):
* Source/WebCore/html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::linkifyPhoneNumbers):
* Source/WebCore/platform/Length.cpp:
(WebCore::newLengthArray):
* Source/WebCore/platform/SharedStringHash.cpp:
(WebCore::computeVisitedLinkHash):
* Source/WebCore/platform/TelephoneNumberDetector.h:
* Source/WebCore/platform/cocoa/TelephoneNumberDetectorCocoa.cpp:
(WebCore::TelephoneNumberDetector::find):
* Source/WebCore/platform/graphics/StringTruncator.cpp:
(WebCore::stringWidth):
(WebCore::truncateString):
(WebCore::StringTruncator::width):
* Tools/TestWebKitAPI/Tests/WTF/StringView.cpp:
(TestWebKitAPI::TEST(WTF, StringViewUpconvert)):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to