|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
A byte-level splice in the source text buffer. More...
#include "donner/editor/TextPatch.h"
A byte-level splice in the source text buffer.
Represents "replace `length` bytes starting at `offset` with `replacement`." Patches are applied in descending offset order by applyPatches so earlier patches don't shift the byte offsets of later ones.
| std::size_t donner::editor::TextPatch::length = 0 |
Number of bytes to replace (0 = pure insert).
| std::size_t donner::editor::TextPatch::offset = 0 |
Byte offset in the source text.
| std::string donner::editor::TextPatch::replacement |
New text to splice in (empty = pure delete).