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

LibWeb: Implement CharacterData.{append,insert,delete}Data

This commit is contained in:
Luke Wilde 2022-07-11 16:23:50 +01:00 committed by Andreas Kling
parent af5b4ae1c4
commit ee719870c8
3 changed files with 27 additions and 0 deletions

View file

@ -28,6 +28,9 @@ public:
unsigned length() const { return m_data.length(); }
ExceptionOr<String> substring_data(size_t offset, size_t count) const;
ExceptionOr<void> append_data(String const&);
ExceptionOr<void> insert_data(size_t offset, String const&);
ExceptionOr<void> delete_data(size_t offset, size_t count);
ExceptionOr<void> replace_data(size_t offset, size_t count, String const&);
protected: