Count occurrences of a substring: Difference between revisions
m
→{{header|ALGOL 68}}: typo
m (→{{header|ALGOL 68}}: Add note about string in string, remove use of formatted transput to make runable with more compilers/interpreters) |
m (→{{header|ALGOL 68}}: typo) |
||
Line 430:
=={{header|ALGOL 68}}==
Algol68 has no build in function to do this task, hence the
If your Algol 68 compiler/interpreter does not have ''string in string'', there is an implementation on Rosetta Code [[ALGOL_68/prelude#string_in_string|here]].<br>
<syntaxhighlight lang="algol68">PROC count string in string = (STRING needle, haystack)INT: (
|