summaryrefslogtreecommitdiff
path: root/AK/String.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2020-07-12 13:36:48 -0400
committerAndreas Kling <kling@serenityos.org>2020-07-13 15:00:14 +0200
commit97cea9e61cbd88705d1ac573039659079b2fe356 (patch)
treec8e4e32679c1ae24b3ef845656f860bdc586b8ee /AK/String.h
parent332f349e07d70e9c1cf32ca0021802ef08646908 (diff)
downloadserenity-97cea9e61cbd88705d1ac573039659079b2fe356.zip
AK: Give String::index_of() an optional second "start" argument
Diffstat (limited to 'AK/String.h')
-rw-r--r--AK/String.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/String.h b/AK/String.h
index 9432c18de6..ac107f1016 100644
--- a/AK/String.h
+++ b/AK/String.h
@@ -124,7 +124,7 @@ public:
bool equals_ignoring_case(const StringView&) const;
bool contains(const String&) const;
- Optional<size_t> index_of(const String&) const;
+ Optional<size_t> index_of(const String&, size_t start = 0) const;
Vector<String> split_limit(char separator, size_t limit, bool keep_empty = false) const;
Vector<String> split(char separator, bool keep_empty = false) const;