Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::SourceEditIntent Struct Reference

One source-buffer edit expressed in byte offsets against the buffer version visible when the edit occurred. More...

#include "donner/editor/SourceEditIntent.h"

Collaboration diagram for donner::editor::SourceEditIntent:
[legend]

Public Member Functions

bool operator== (const SourceEditIntent &other) const =default

Public Attributes

std::size_t offset = 0
 Byte offset where the edit starts.
std::size_t removedLength = 0
 Number of bytes removed at offset.
std::string replacement
 Bytes inserted at offset.
SourceEditIntentKind kind = SourceEditIntentKind::Unknown
std::uint64_t bufferVersion = 0
 Monotonic text-buffer edit version.
SourceEditPoint start
 Edit start in the pre-edit source buffer.
SourceEditPoint removedEnd
 End of the removed range in the pre-edit buffer.
SourceEditPoint replacementEnd
 End of the inserted text in the post-edit buffer.

Detailed Description

One source-buffer edit expressed in byte offsets against the buffer version visible when the edit occurred.


The documentation for this struct was generated from the following file: