Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
23
Task/Soundex/EasyLang/soundex.easy
Normal file
23
Task/Soundex/EasyLang/soundex.easy
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
trans$ = "01230120022455012623010202"
|
||||
func$ code c$ .
|
||||
c = strcode c$ - 64
|
||||
if c > 26
|
||||
c -= 32
|
||||
.
|
||||
return substr trans$ c 1
|
||||
.
|
||||
func$ soundex s$ .
|
||||
code$ = substr s$ 1 1
|
||||
prev$ = code code$
|
||||
for i = 2 to len s$
|
||||
cur$ = code substr s$ i 1
|
||||
if cur$ <> "" and cur$ <> "0" and cur$ <> prev$
|
||||
code$ &= cur$
|
||||
.
|
||||
prev$ = cur$
|
||||
.
|
||||
return substr code$ & "0000" 1 4
|
||||
.
|
||||
for v$ in [ "Soundex" "Example" "Sownteks" "Ekzampul" ]
|
||||
print soundex v$
|
||||
.
|
||||
Loading…
Add table
Add a link
Reference in a new issue