Logo

Programming-Idioms

History of Idiom 39 > diff from v41 to v42

Edit summary for version 42 by tkoenig:
New Fortran implementation by user [tkoenig]

Version 41

2019-09-26, 22:35:42

Version 42

2019-09-27, 08:35:20

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Code
ok = index(string, word) /= 0