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
sc-train: Only load wordlist on first count, specified by --wordlist
[vspell.git]
/
utils
/
std-syllable.cpp
blob
264e471ee1ce65301ff90ffaea7d1b660ae68685
1
#include <syllable.h>
2
#include <iostream>
3
#include <string>
4
#include <wordnode.h>
5
#include <sstream>
6
7
using namespace
std
;
8
9
int
main
(
int
argc
,
char
**
argv
)
10
{
11
dic_init
();
12
string s
;
13
while
(
getline
(
cin
,
s
)) {
14
istringstream
iss
(
s
);
15
string ss
;
16
bool
first
=
true
;
17
while
(
iss
>>
ss
) {
18
if
(
first
)
19
first
=
false
;
20
else
21
cout
<<
" "
;
22
cout
<<
get_std_syllable
(
ss
);
23
}
24
cout
<<
endl
;
25
}
26
return
0
;
27
}