[webkit-changes] [WebKit/WebKit] 4a5f7f: Decrease use of StringView::character8() / charact...

Chris Dumez noreply at github.com
Sun Apr 21 14:20:31 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4a5f7f431122a5e13b4d81f3cf9d4352e1338d98
      https://github.com/WebKit/WebKit/commit/4a5f7f431122a5e13b4d81f3cf9d4352e1338d98
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2024-04-21 (Sun, 21 Apr 2024)

  Changed paths:
    M Source/JavaScriptCore/yarr/YarrParser.h
    M Source/WTF/wtf/JSONValues.cpp
    M Source/WTF/wtf/text/AdaptiveStringSearcher.h
    M Source/WTF/wtf/text/Base64.cpp
    M Source/WTF/wtf/text/StringCommon.h
    M Source/WTF/wtf/text/StringImpl.cpp
    M Source/WTF/wtf/text/StringView.cpp
    M Source/WTF/wtf/text/StringView.h
    M Source/WTF/wtf/text/TextBreakIterator.cpp
    M Source/WTF/wtf/text/WTFString.h
    M Source/WTF/wtf/text/cf/StringViewCF.cpp
    M Source/WTF/wtf/text/cocoa/StringViewCocoa.mm
    M Source/WTF/wtf/text/icu/TextBreakIteratorICU.h
    M Source/WTF/wtf/text/icu/UTextProvider.h
    M Source/WTF/wtf/text/icu/UTextProviderLatin1.cpp
    M Source/WTF/wtf/text/icu/UTextProviderLatin1.h
    M Source/WTF/wtf/text/icu/UTextProviderUTF16.cpp
    M Source/WTF/wtf/text/icu/UTextProviderUTF16.h
    M Source/WTF/wtf/unicode/icu/CollatorICU.cpp
    M Source/WebCore/dom/SpaceSplitString.cpp

  Log Message:
  -----------
  Decrease use of StringView::character8() / character16()
https://bugs.webkit.org/show_bug.cgi?id=273040

Reviewed by Darin Adler.

Decrease use of StringView::character8() / character16() in preparation
for dropping them.

* Source/JavaScriptCore/yarr/YarrParser.h:
(JSC::Yarr::Parser::Parser):
* Source/WTF/wtf/JSONValues.cpp:
(WTF::JSONImpl::Value::parseJSON):
* Source/WTF/wtf/text/AdaptiveStringSearcher.h:
(WTF::searchStringRaw): Deleted.
* Source/WTF/wtf/text/Base64.cpp:
(WTF::base64Decode):
(WTF::base64DecodeToString):
* Source/WTF/wtf/text/StringCommon.h:
* Source/WTF/wtf/text/StringImpl.cpp:
(WTF::StringImpl::find):
* Source/WTF/wtf/text/StringView.cpp:
(WTF::StringView::find const):
(WTF::getCharactersWithASCIICaseInternal):
(WTF::StringView::getCharactersWithASCIICase const):
(WTF::normalizedNFC):
(WTF::makeStringByReplacingAll):
(WTF::makeStringBySimplifyingNewLinesSlowCase):
* Source/WTF/wtf/text/StringView.h:
(WTF::StringView::span8 const):
(WTF::StringView::span16 const):
(WTF::StringView::span<LChar> const):
(WTF::StringView::span<UChar> const):
(WTF::StringView::characterAt const):
(WTF::StringView::unsafeCharacterAt const):
(WTF::equal):
(WTF::StringView::CodePoints::Iterator::Iterator):
(WTF::StringView::trim const):
(WTF::startsWith):
(WTF::startsWithIgnoringASCIICase):
(WTF::endsWith):
(WTF::endsWithIgnoringASCIICase):
(WTF::StringView::characters8 const): Deleted.
(WTF::StringView::characters16 const): Deleted.
(WTF::StringView::characters<LChar> const): Deleted.
(WTF::StringView::characters<UChar> const): Deleted.
* Source/WTF/wtf/text/TextBreakIterator.cpp:
(WTF::setTextForIterator):
(WTF::numGraphemeClusters):
(WTF::numCodeUnitsInGraphemeClusters):
* Source/WTF/wtf/text/WTFString.h:
(WTF::String::span<LChar> const):
(WTF::String::span<UChar> const):
* Source/WTF/wtf/text/cf/StringViewCF.cpp:
(WTF::StringView::createCFString const):
(WTF::StringView::createCFStringWithoutCopying const):
* Source/WTF/wtf/text/cocoa/StringViewCocoa.mm:
(WTF::StringView::createNSString const):
(WTF::StringView::createNSStringWithoutCopying const):
* Source/WTF/wtf/text/icu/TextBreakIteratorICU.h:
(WTF::TextBreakIteratorICU::setText):
* Source/WTF/wtf/text/icu/UTextProvider.h:
(WTF::initializeContextAwareUTextProvider):
* Source/WTF/wtf/text/icu/UTextProviderLatin1.cpp:
(WTF::openLatin1ContextAwareUTextProvider):
* Source/WTF/wtf/text/icu/UTextProviderLatin1.h:
* Source/WTF/wtf/text/icu/UTextProviderUTF16.cpp:
(WTF::openUTF16ContextAwareUTextProvider):
* Source/WTF/wtf/text/icu/UTextProviderUTF16.h:
* Source/WTF/wtf/unicode/icu/CollatorICU.cpp:
(WTF::createIterator):
* Source/WebCore/dom/SpaceSplitString.cpp:
(WebCore::spaceSplitStringContainsValueInternal):

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