AK: Add StringView::count(char)

This commit is contained in:
Dan Klishch 2023-08-14 21:55:36 -04:00 committed by Ali Mohammad Pur
commit 3556c27d2d
Notes: sideshowbarker 2024-07-17 05:06:13 +09:00
3 changed files with 16 additions and 0 deletions

View file

@ -107,6 +107,7 @@ DeprecatedString replace(StringView, StringView needle, StringView replacement,
ErrorOr<String> replace(String const&, StringView needle, StringView replacement, ReplaceMode);
size_t count(StringView, StringView needle);
size_t count(StringView, char needle);
}