mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibGUI: Allow TextDocument::set_text to fail
This commit is contained in:
parent
f8c603fe7e
commit
3cc7b00e24
Notes:
sideshowbarker
2024-07-18 21:12:19 +09:00
Author: https://github.com/itamar8910
Commit: 3cc7b00e24
Pull-request: https://github.com/SerenityOS/serenity/pull/5869
Issue: https://github.com/SerenityOS/serenity/issues/5062
2 changed files with 38 additions and 10 deletions
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
void set_spans(Vector<TextDocumentSpan> spans) { m_spans = move(spans); }
|
||||
|
||||
void set_text(const StringView&);
|
||||
bool set_text(const StringView&);
|
||||
|
||||
const NonnullOwnPtrVector<TextDocumentLine>& lines() const { return m_lines; }
|
||||
NonnullOwnPtrVector<TextDocumentLine>& lines() { return m_lines; }
|
||||
|
@ -176,7 +176,7 @@ public:
|
|||
Utf32View view() const { return { code_points(), length() }; }
|
||||
const u32* code_points() const { return m_text.data(); }
|
||||
size_t length() const { return m_text.size(); }
|
||||
void set_text(TextDocument&, const StringView&);
|
||||
bool set_text(TextDocument&, const StringView&);
|
||||
void set_text(TextDocument&, Vector<u32>);
|
||||
void append(TextDocument&, u32);
|
||||
void prepend(TextDocument&, u32);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue