Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 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"

Public Member Functions

bool operator== (const SourceEditIntent &other) const =default
 Compare all members for value equality.

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
 Structural or textual editing intent represented by this record.
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.

Member Function Documentation

◆ operator==()

bool donner::editor::SourceEditIntent::operator== ( const SourceEditIntent & other) const
default

Compare all members for value equality.

Parameters
otherValue to compare.

Member Data Documentation

◆ kind

SourceEditIntentKind donner::editor::SourceEditIntent::kind
Initial value:
=
@ Unknown
Operation kind was not classified by the caller.
Definition SourceEditIntent.h:12

Structural or textual editing intent represented by this record.


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