Diff
Modified: trunk/Source/WTF/wtf/text/AtomString.h (294884 => 294885)
--- trunk/Source/WTF/wtf/text/AtomString.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WTF/wtf/text/AtomString.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -98,16 +98,13 @@
bool contains(UChar character) const { return m_string.contains(character); }
bool contains(ASCIILiteral literal) const { return m_string.contains(literal); }
- bool contains(const char*) const = delete;
bool contains(StringView) const;
bool containsIgnoringASCIICase(StringView) const;
size_t find(UChar character, unsigned start = 0) const { return m_string.find(character, start); }
size_t find(ASCIILiteral literal, unsigned start = 0) const { return m_string.find(literal, start); }
- size_t find(const char*, unsigned start = 0) const = delete;
size_t find(StringView, unsigned start = 0) const;
size_t findIgnoringASCIICase(StringView) const;
- size_t findIgnoringASCIICase(const char*) const = delete;
size_t findIgnoringASCIICase(StringView, unsigned start) const;
size_t find(CodeUnitMatchFunction matchFunction, unsigned start = 0) const { return m_string.find(matchFunction, start); }
@@ -190,7 +187,6 @@
bool equalIgnoringASCIICase(const AtomString&, const String&);
bool equalIgnoringASCIICase(const String&, const AtomString&);
bool equalIgnoringASCIICase(const AtomString&, ASCIILiteral);
-bool equalIgnoringASCIICase(const AtomString&, const char*) = delete;
bool equalLettersIgnoringASCIICase(const AtomString&, ASCIILiteral);
bool startsWithLettersIgnoringASCIICase(const AtomString&, ASCIILiteral);
Modified: trunk/Source/WTF/wtf/text/StringImpl.h (294884 => 294885)
--- trunk/Source/WTF/wtf/text/StringImpl.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WTF/wtf/text/StringImpl.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -433,7 +433,6 @@
template<typename CodeUnitMatchFunction, std::enable_if_t<std::is_invocable_r_v<bool, CodeUnitMatchFunction, UChar>>* = nullptr>
size_t find(CodeUnitMatchFunction, unsigned start = 0);
ALWAYS_INLINE size_t find(ASCIILiteral literal, unsigned start = 0) { return find(literal.characters8(), literal.length(), start); }
- size_t find(const char*, unsigned start = 0) = delete;
WTF_EXPORT_PRIVATE size_t find(StringView);
WTF_EXPORT_PRIVATE size_t find(StringView, unsigned start);
WTF_EXPORT_PRIVATE size_t findIgnoringASCIICase(StringView) const;
@@ -442,7 +441,6 @@
WTF_EXPORT_PRIVATE size_t reverseFind(UChar, unsigned start = MaxLength);
WTF_EXPORT_PRIVATE size_t reverseFind(StringView, unsigned start = MaxLength);
ALWAYS_INLINE size_t reverseFind(ASCIILiteral literal, unsigned start = MaxLength) { return reverseFind(literal.characters8(), literal.length(), start); }
- size_t reverseFind(const char*, unsigned start = MaxLength) = delete;
WTF_EXPORT_PRIVATE bool startsWith(StringView) const;
WTF_EXPORT_PRIVATE bool startsWithIgnoringASCIICase(StringView) const;
@@ -589,8 +587,6 @@
WTF_EXPORT_PRIVATE bool equalIgnoringASCIICase(const StringImpl*, const StringImpl*);
bool equalIgnoringASCIICase(const StringImpl&, ASCIILiteral);
bool equalIgnoringASCIICase(const StringImpl*, ASCIILiteral);
-bool equalIgnoringASCIICase(const StringImpl&, const char*) = delete;
-bool equalIgnoringASCIICase(const StringImpl*, const char*) = delete;
WTF_EXPORT_PRIVATE bool equalIgnoringASCIICaseNonNull(const StringImpl*, const StringImpl*);
Modified: trunk/Source/WTF/wtf/text/StringView.h (294884 => 294885)
--- trunk/Source/WTF/wtf/text/StringView.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WTF/wtf/text/StringView.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -151,12 +151,10 @@
template<typename CodeUnitMatchFunction, std::enable_if_t<std::is_invocable_r_v<bool, CodeUnitMatchFunction, UChar>>* = nullptr>
size_t find(CodeUnitMatchFunction&&, unsigned start = 0) const;
ALWAYS_INLINE size_t find(ASCIILiteral literal, unsigned start = 0) const { return find(literal.characters8(), literal.length(), start); }
- size_t find(const char*, unsigned start = 0) const = delete;
WTF_EXPORT_PRIVATE size_t find(StringView, unsigned start = 0) const;
size_t reverseFind(UChar, unsigned index = std::numeric_limits<unsigned>::max()) const;
ALWAYS_INLINE size_t reverseFind(ASCIILiteral literal, unsigned start = std::numeric_limits<unsigned>::max()) const { return reverseFind(literal.characters8(), literal.length(), start); }
- size_t reverseFind(const char*, unsigned start = std::numeric_limits<unsigned>::max()) const = delete;
WTF_EXPORT_PRIVATE size_t reverseFind(StringView, unsigned start = std::numeric_limits<unsigned>::max()) const;
WTF_EXPORT_PRIVATE size_t findIgnoringASCIICase(StringView) const;
@@ -170,7 +168,6 @@
template<typename CodeUnitMatchFunction, std::enable_if_t<std::is_invocable_r_v<bool, CodeUnitMatchFunction, UChar>>* = nullptr>
bool contains(CodeUnitMatchFunction&&) const;
bool contains(ASCIILiteral literal) const { return find(literal) != notFound; }
- bool contains(const char*) const = delete;
bool contains(StringView string) const { return find(string) != notFound; }
WTF_EXPORT_PRIVATE bool containsIgnoringASCIICase(StringView) const;
@@ -234,7 +231,6 @@
bool equal(StringView, const LChar* b);
bool equalIgnoringASCIICase(StringView, StringView);
-bool equalIgnoringASCIICase(StringView, const char*) = delete;
bool equalIgnoringASCIICase(StringView, ASCIILiteral);
WTF_EXPORT_PRIVATE bool equalRespectingNullity(StringView, StringView);
Modified: trunk/Source/WTF/wtf/text/WTFString.h (294884 => 294885)
--- trunk/Source/WTF/wtf/text/WTFString.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WTF/wtf/text/WTFString.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -354,7 +354,6 @@
bool equalIgnoringASCIICase(const String&, const String&);
bool equalIgnoringASCIICase(const String&, ASCIILiteral);
-bool equalIgnoringASCIICase(const String&, const char*) = delete;
bool equalLettersIgnoringASCIICase(const String&, ASCIILiteral);
bool startsWithLettersIgnoringASCIICase(const String&, ASCIILiteral);
@@ -495,8 +494,6 @@
return string;
}
-String makeStringByReplacingAll(const String&, UChar target, const char*) = delete;
-
WTF_EXPORT_PRIVATE String WARN_UNUSED_RETURN makeStringByRemoving(const String&, unsigned position, unsigned lengthToRemove);
template<size_t inlineCapacity> inline String String::make8BitFrom16BitSource(const Vector<UChar, inlineCapacity>& buffer)
Modified: trunk/Source/WebCore/platform/network/HTTPHeaderMap.h (294884 => 294885)
--- trunk/Source/WebCore/platform/network/HTTPHeaderMap.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WebCore/platform/network/HTTPHeaderMap.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -178,10 +178,10 @@
WEBCORE_EXPORT bool remove(HTTPHeaderName);
// Instead of passing a string literal to any of these functions, just use a HTTPHeaderName instead.
- template<size_t length> String get(const char (&)[length]) const = delete;
- template<size_t length> void set(const char (&)[length], const String&) = delete;
- template<size_t length> bool contains(const char (&)[length]) = delete;
- template<size_t length> bool remove(const char (&)[length]) = delete;
+ template<size_t length> String get(ASCIILiteral) const = delete;
+ template<size_t length> void set(ASCIILiteral, const String&) = delete;
+ template<size_t length> bool contains(ASCIILiteral) = delete;
+ template<size_t length> bool remove(ASCIILiteral) = delete;
const CommonHeadersVector& commonHeaders() const { return m_commonHeaders; }
const UncommonHeadersVector& uncommonHeaders() const { return m_uncommonHeaders; }
Modified: trunk/Source/WebCore/platform/network/ResourceRequestBase.h (294884 => 294885)
--- trunk/Source/WebCore/platform/network/ResourceRequestBase.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WebCore/platform/network/ResourceRequestBase.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -111,9 +111,9 @@
WEBCORE_EXPORT bool hasHTTPHeaderField(HTTPHeaderName) const;
// Instead of passing a string literal to any of these functions, just use a HTTPHeaderName instead.
- template<size_t length> String httpHeaderField(const char (&)[length]) const = delete;
- template<size_t length> void setHTTPHeaderField(const char (&)[length], const String&) = delete;
- template<size_t length> void addHTTPHeaderField(const char (&)[length], const String&) = delete;
+ template<size_t length> String httpHeaderField(ASCIILiteral) const = delete;
+ template<size_t length> void setHTTPHeaderField(ASCIILiteral, const String&) = delete;
+ template<size_t length> void addHTTPHeaderField(ASCIILiteral, const String&) = delete;
WEBCORE_EXPORT void clearHTTPAuthorization();
Modified: trunk/Source/WebCore/platform/network/ResourceResponseBase.h (294884 => 294885)
--- trunk/Source/WebCore/platform/network/ResourceResponseBase.h 2022-05-26 18:21:26 UTC (rev 294884)
+++ trunk/Source/WebCore/platform/network/ResourceResponseBase.h 2022-05-26 18:30:46 UTC (rev 294885)
@@ -130,9 +130,9 @@
WEBCORE_EXPORT void addUncommonHTTPHeaderField(const String& name, const String& value);
// Instead of passing a string literal to any of these functions, just use a HTTPHeaderName instead.
- template<size_t length> String httpHeaderField(const char (&)[length]) const = delete;
- template<size_t length> void setHTTPHeaderField(const char (&)[length], const String&) = delete;
- template<size_t length> void addHTTPHeaderField(const char (&)[length], const String&) = delete;
+ template<size_t length> String httpHeaderField(ASCIILiteral) const = delete;
+ template<size_t length> void setHTTPHeaderField(ASCIILiteral, const String&) = delete;
+ template<size_t length> void addHTTPHeaderField(ASCIILiteral, const String&) = delete;
bool isMultipart() const { return mimeType() == "multipart/x-mixed-replace"; }