projects
/
qstardict
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Russian translation. Gui fix.
[qstardict]
/
plugins
/
stardict
/
distance.h
1
#ifndef DISTANCE_H
2
#define DISTANCE_H
3
4
#include <glib.h>
5
6
class EditDistance
7
{
8
private:
9
int *d;
10
int currentelements;
11
/*Gets the minimum of three values */
12
inline int minimum( const int a, const int b, const int c )
13
{
14
int min = a;
15
if ( b < min )
16
min = b;
17
if ( c < min )
18
min = c;
19
return min;
20
};
21
public:
22
EditDistance( );
23
~EditDistance( );
24
int CalEditDistance( const gunichar *s, const gunichar *t, const int limit );
25
};
26
27
#endif