mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
AK: Give DeprecatedString::replace() a default mode
This is used in Jakt, and providing that value from Jakt's side is more trouble than doing this. Considering this class is bound to go away, a little backwards-compatible API change is just fine.
This commit is contained in:
parent
7a17fd6d71
commit
099a6bc45f
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ public:
|
|||
return { characters(), length() };
|
||||
}
|
||||
|
||||
[[nodiscard]] DeprecatedString replace(StringView needle, StringView replacement, ReplaceMode replace_mode) const { return StringUtils::replace(*this, needle, replacement, replace_mode); }
|
||||
[[nodiscard]] DeprecatedString replace(StringView needle, StringView replacement, ReplaceMode replace_mode = ReplaceMode::All) const { return StringUtils::replace(*this, needle, replacement, replace_mode); }
|
||||
[[nodiscard]] size_t count(StringView needle) const { return StringUtils::count(*this, needle); }
|
||||
[[nodiscard]] DeprecatedString reverse() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue