mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
AK: Add String::contains(String)
This is just a wrapper around strstr() for now. There are many better ways to search for a string within a string, but I'm just adding a nice API at the moment. :^)
This commit is contained in:
parent
fe83d5087b
commit
01c6088789
3 changed files with 43 additions and 0 deletions
|
@ -110,6 +110,8 @@ public:
|
|||
return m_impl->to_uppercase();
|
||||
}
|
||||
|
||||
bool contains(const String&) const;
|
||||
|
||||
Vector<String> split_limit(char separator, int limit) const;
|
||||
Vector<String> split(char separator) const;
|
||||
String substring(int start, int length) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue