openshot-audio
0.1.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
JuceLibraryCode
modules
juce_core
text
juce_TextDiff.h
Go to the documentation of this file.
1
/*
2
==============================================================================
3
4
This file is part of the juce_core module of the JUCE library.
5
Copyright (c) 2015 - ROLI Ltd.
6
7
Permission to use, copy, modify, and/or distribute this software for any purpose with
8
or without fee is hereby granted, provided that the above copyright notice and this
9
permission notice appear in all copies.
10
11
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
12
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
13
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
15
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
18
------------------------------------------------------------------------------
19
20
NOTE! This permissive ISC license applies ONLY to files within the juce_core module!
21
All other JUCE modules are covered by a dual GPL/commercial license, so if you are
22
using any other modules, be sure to check that you also comply with their license.
23
24
For more details, visit www.juce.com
25
26
==============================================================================
27
*/
28
29
#ifndef JUCE_TEXTDIFF_H_INCLUDED
30
#define JUCE_TEXTDIFF_H_INCLUDED
31
32
41
class
JUCE_API
TextDiff
42
{
43
public
:
45
TextDiff
(
const
String
& original,
46
const
String
& target);
47
55
String
appliedTo (
String
text)
const
;
56
58
struct
Change
59
{
60
String
insertedText
;
62
int
start
;
63
int
length
;
67
bool
isDeletion()
const
noexcept
;
68
70
String
appliedTo (
const
String
& original)
const
noexcept
;
71
};
72
76
Array
<
Change
> changes;
77
};
78
79
80
#endif // JUCE_TEXTDIFF_H_INCLUDED
noexcept
#define noexcept
Definition:
juce_CompilerSupport.h:141
TextDiff::Change
Definition:
juce_TextDiff.h:58
String
Definition:
juce_String.h:43
JUCE_API
#define JUCE_API
Definition:
juce_StandardHeader.h:139
TextDiff::Change::start
int start
Definition:
juce_TextDiff.h:62
const
#define const
Array
Definition:
juce_Array.h:60
TextDiff::Change::length
int length
Definition:
juce_TextDiff.h:63
TextDiff
Definition:
juce_TextDiff.h:41
TextDiff::Change::insertedText
String insertedText
Definition:
juce_TextDiff.h:60
Generated by
1.8.11