1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

Add String::substring().

This commit is contained in:
Andreas Kling 2018-10-16 11:42:39 +02:00
parent 9cd0a34b5c
commit 0c1a4e8de3
3 changed files with 33 additions and 14 deletions

View file

@ -59,6 +59,7 @@ public:
}
Vector<String> split(char separator) const;
String substring(size_t start, size_t length) const;
bool isEmpty() const { return length() == 0; }
unsigned length() const { return m_impl ? m_impl->length() : 0; }