repo.or.cz
/
vspell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Reworked WordArchive::load to use new wordlist format
[vspell.git]
/
utils
/
distance-test.cpp
blob
d547c779730350c08cc29987b0908b833fb9310b
1
#include <iostream>
2
#include <string>
3
#include <values.h>
4
#include <stdio.h>
5
#include
"distance.h"
6
7
using namespace
std
;
8
9
int
main
()
10
{
11
string s1
,
s2
;
12
int
i
,
j
;
13
14
ed_init
();
15
16
while
(
cin
>>
s1
>>
s2
) {
17
int
ret
=
ed
(
s1
.
data
(),
s1
.
size
(),
s2
.
data
(),
s2
.
size
());
18
ed_dump
(
s1
.
size
(),
s2
.
size
());
19
cout
<<
ret
<<
endl
;
20
}
21
}