String matching: Difference between revisions

m
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 1,713:
=={{header|EasyLang}}==
 
<syntaxhighlight lang=easylang>
func starts s$ t$ .
if substr s$ 1 len t$ = t$
Line 1,727:
.
func contains s$ t$ .
forreturn iif to lenstrpos s$ - len t$ +> 10
if substr s$ i len t$ = t$
return 1
.
.
return 0
.
print starts "hello world" "he"
print ends "hello world" "rld"
print contains "hello world" "wowor"
</syntaxhighlight>
 
 
=={{header|Elena}}==
1,995

edits