diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /AK/String.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'AK/String.cpp')
-rw-r--r-- | AK/String.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/AK/String.cpp b/AK/String.cpp index 1e18bca9a2..66c01a2149 100644 --- a/AK/String.cpp +++ b/AK/String.cpp @@ -16,12 +16,12 @@ namespace AK { -bool String::operator==(const FlyString& fly_string) const +bool String::operator==(FlyString const& fly_string) const { return m_impl == fly_string.impl() || view() == fly_string.view(); } -bool String::operator==(const String& other) const +bool String::operator==(String const& other) const { return m_impl == other.impl() || view() == other.view(); } @@ -31,12 +31,12 @@ bool String::operator==(StringView other) const return view() == other; } -bool String::operator<(const String& other) const +bool String::operator<(String const& other) const { return view() < other.view(); } -bool String::operator>(const String& other) const +bool String::operator>(String const& other) const { return view() > other.view(); } @@ -146,7 +146,7 @@ Vector<StringView> String::split_view(Function<bool(char)> separator, bool keep_ return v; } -Vector<StringView> String::split_view(const char separator, bool keep_empty) const +Vector<StringView> String::split_view(char const separator, bool keep_empty) const { return split_view([separator](char ch) { return ch == separator; }, keep_empty); } @@ -358,7 +358,7 @@ String escape_html_entities(StringView html) return builder.to_string(); } -String::String(const FlyString& string) +String::String(FlyString const& string) : m_impl(string.impl()) { } @@ -387,27 +387,27 @@ String String::to_titlecase() const return StringUtils::to_titlecase(*this); } -bool operator<(const char* characters, const String& string) +bool operator<(char const* characters, String const& string) { return string.view() > characters; } -bool operator>=(const char* characters, const String& string) +bool operator>=(char const* characters, String const& string) { return string.view() <= characters; } -bool operator>(const char* characters, const String& string) +bool operator>(char const* characters, String const& string) { return string.view() < characters; } -bool operator<=(const char* characters, const String& string) +bool operator<=(char const* characters, String const& string) { return string.view() >= characters; } -bool String::operator==(const char* cstring) const +bool String::operator==(char const* cstring) const { return view() == cstring; } |