FOSSology
4.4.0
Open Source License Compliance by Open Source Software
diff.h
1
/*
2
Author: Daniele Fognini, Andreas Wuerl
3
SPDX-FileCopyrightText: © 2013-2014 Siemens AG
4
5
SPDX-License-Identifier: GPL-2.0-only
6
*/
7
8
#ifndef MONK_AGENT_DIFF_H
9
#define MONK_AGENT_DIFF_H
10
11
#include "string_operations.h"
12
#include "monk.h"
13
14
typedef
struct
{
15
size_t
start
;
16
size_t
length;
17
}
DiffPoint
;
18
19
typedef
struct
{
20
DiffPoint
text;
21
DiffPoint
search
;
22
char
* diffType;
23
}
DiffMatchInfo
;
24
25
typedef
struct
{
26
size_t
matched;
27
size_t
added;
28
size_t
removed;
29
GArray* matchedInfo;
30
double
rank;
31
unsigned
short
percentual;
32
}
DiffResult
;
33
34
int
lookForDiff(
const
GArray* textTokens,
const
GArray* searchTokens,
35
size_t
iText,
size_t
iSearch,
36
unsigned
int
maxAllowedDiff,
unsigned
int
minAdjacentMatches,
37
DiffMatchInfo
* result);
38
39
int
matchNTokens(
const
GArray* textTokens,
size_t
textStart,
size_t
textLength,
40
const
GArray* searchTokens,
size_t
searchStart,
size_t
searchLength,
41
unsigned
int
numberOfWantedMatches);
42
43
DiffResult
* findMatchAsDiffs(
const
GArray* textTokens,
const
GArray* searchTokens,
44
size_t
textStartPosition,
size_t
searchStartPosition,
45
unsigned
int
maxAllowedDiff,
unsigned
int
minAdjacentMatches);
46
47
void
diffResult_free(
DiffResult
* diffResult);
48
49
#endif
// MONK_AGENT_DIFF_H
search
Definition:
search.php:15
start
start($application)
start the application Assumes application is restartable via /etc/init.d/<script>....
Definition:
pkgConfig.php:1214
DiffMatchInfo
Definition:
diff.h:19
DiffPoint
Definition:
diff.h:14
DiffResult
Definition:
diff.h:25
src
monk
agent
diff.h
Generated on Mon Nov 18 2024 07:37:13 for FOSSology by
1.9.1