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
Shhh.. dont know what i did
[vspell.git]
/
dictionary-test.cpp
blob
52e415952e5210816edfcee9f9f25b494b5db18b
1
#include
"dictionary.h"
2
#include <iostream>
3
#include <string>
4
5
using namespace
std
;
6
7
int
main
()
8
{
9
Dictionary
::
initialize
();
10
11
cerr
<<
"Loading... "
;
12
Dictionary
::
get_root
()->
load
(
"wordlist.wl"
);
13
cerr
<<
"done"
<<
endl
;
14
15
string str
;
16
while
(
cin
>>
str
) {
17
cout
<<
str
<<
" -> "
<<
Dictionary
::
is_syllable_exist
(
str
) <<
endl
;
18
}
19
return
0
;
20
}