OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_TextDiff.h>
Public Member Functions | |
bool | isDeletion () const noexcept |
String | appliedTo (const String &original) const noexcept |
Public Attributes | |
String | insertedText |
int | start |
int | length |
Describes a change, which can be either an insertion or deletion.
Definition at line 53 of file juce_TextDiff.h.
Returns the result of applying this change to a string.
Definition at line 214 of file juce_TextDiff.cpp.
|
noexcept |
Returns true if this change is a deletion, or false for an insertion.
Definition at line 209 of file juce_TextDiff.cpp.
String juce::TextDiff::Change::insertedText |
If this change is a deletion, this string will be empty; otherwise, it'll be the text that should be inserted at the index specified by start.
Definition at line 55 of file juce_TextDiff.h.
Referenced by isDeletion().
int juce::TextDiff::Change::length |
If this change is a deletion, this specifies the number of characters to delete. For an insertion, this is the length of the new text being inserted.
Definition at line 58 of file juce_TextDiff.h.
int juce::TextDiff::Change::start |
Specifies the character index in a string at which text should be inserted or deleted.
Definition at line 57 of file juce_TextDiff.h.