JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::TextDiff::Change Struct Reference

Describes a change, which can be either an insertion or deletion. More...

#include <juce_TextDiff.h>

Collaboration diagram for juce::TextDiff::Change:

Public Member Functions

String appliedTo (const String &original) const noexcept
 Returns the result of applying this change to a string. More...
 
bool isDeletion () const noexcept
 Returns true if this change is a deletion, or false for an insertion. More...
 

Public Attributes

String 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. More...
 
int length
 If this change is a deletion, this specifies the number of characters to delete. More...
 
int start
 Specifies the character index in a string at which text should be inserted or deleted. More...
 

Detailed Description

Describes a change, which can be either an insertion or deletion.

Member Function Documentation

◆ appliedTo()

String juce::TextDiff::Change::appliedTo ( const String original) const
noexcept

Returns the result of applying this change to a string.

◆ isDeletion()

bool juce::TextDiff::Change::isDeletion ( ) const
noexcept

Returns true if this change is a deletion, or false for an insertion.

Member Data Documentation

◆ insertedText

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.

◆ length

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.

◆ start

int juce::TextDiff::Change::start

Specifies the character index in a string at which text should be inserted or deleted.


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