mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:07:45 +00:00
AK: Add String::substring_view(size_t).
This commit is contained in:
parent
ac2358ff0d
commit
78eff163ea
2 changed files with 8 additions and 0 deletions
|
@ -138,6 +138,7 @@ public:
|
|||
|
||||
Vector<StringView> split_view(char separator, bool keep_empty = false) const;
|
||||
StringView substring_view(size_t start, size_t length) const;
|
||||
StringView substring_view(size_t start) const;
|
||||
|
||||
bool is_null() const { return !m_impl; }
|
||||
ALWAYS_INLINE bool is_empty() const { return length() == 0; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue