Add String::substring().

This commit is contained in:
Andreas Kling 2018-10-16 11:42:39 +02:00
commit 0c1a4e8de3
Notes: sideshowbarker 2024-07-19 18:47:35 +09:00
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; }