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
/
syllable-gen.cpp
blob
07d867cc3c20d6d751567d9a2e5909aa6a8e9800
1
#include <stdio.h>
2
char
*
vowels
[] = {
3
"o"
,
"u"
,
"i"
,
"y"
,
4
NULL
5
};
6
7
char
*
last_consonants
[] = {
// longest first
8
"i"
,
"y"
,
"o"
,
"u"
,
""
,
9
NULL
10
};
11
12
char
*
padding_vowels
[] = {
13
"o"
,
"u"
,
""
,
14
NULL
15
};
16
17
int
main
()
18
{
19
for
(
int
i
=
0
;
padding_vowels
[
i
];
i
++)
20
for
(
int
j
=
0
;
vowels
[
j
];
j
++)
21
for
(
int
k
=
0
;
last_consonants
[
k
];
k
++)
22
printf
(
"%s%s%s
\n
"
,
23
padding_vowels
[
i
],
24
vowels
[
j
],
25
last_consonants
[
k
]);
26
return
0
;
27
}