mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
GTextEditor: Work on cut/copy/paste operations.
This commit is contained in:
parent
b8581b0069
commit
48d48679b0
4 changed files with 88 additions and 7 deletions
|
@ -38,6 +38,8 @@ String String::isolated_copy() const
|
|||
|
||||
String String::substring(ssize_t start, ssize_t length) const
|
||||
{
|
||||
if (!length)
|
||||
return empty();
|
||||
ASSERT(m_impl);
|
||||
ASSERT(start + length <= m_impl->length());
|
||||
// FIXME: This needs some input bounds checking.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue