mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
AK: Remove explicit String::operator!= in favor of defaulted one
This commit is contained in:
parent
b5f1a48a7c
commit
7f8d69ee2f
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/DanShaders Commit: https://github.com/SerenityOS/serenity/commit/7f8d69ee2f Pull-request: https://github.com/SerenityOS/serenity/pull/21661 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/kleinesfilmroellchen Reviewed-by: https://github.com/trflynn89
1 changed files with 0 additions and 7 deletions
|
@ -151,16 +151,9 @@ public:
|
|||
Optional<size_t> find_byte_offset(StringView substring, size_t from_byte_offset = 0) const;
|
||||
|
||||
[[nodiscard]] bool operator==(String const&) const;
|
||||
[[nodiscard]] bool operator!=(String const& other) const { return !(*this == other); }
|
||||
|
||||
[[nodiscard]] bool operator==(FlyString const&) const;
|
||||
[[nodiscard]] bool operator!=(FlyString const& other) const { return !(*this == other); }
|
||||
|
||||
[[nodiscard]] bool operator==(StringView) const;
|
||||
[[nodiscard]] bool operator!=(StringView other) const { return !(*this == other); }
|
||||
|
||||
[[nodiscard]] bool operator==(char const* cstring) const;
|
||||
[[nodiscard]] bool operator!=(char const* cstring) const { return !(*this == cstring); }
|
||||
|
||||
// NOTE: UTF-8 is defined in a way that lexicographic ordering of code points is equivalent to lexicographic ordering of bytes.
|
||||
[[nodiscard]] int operator<=>(String const& other) const { return this->bytes_as_string_view().compare(other.bytes_as_string_view()); }
|
||||
|
|
Loading…
Reference in a new issue