over and over again, simple tests to find out whether a needle is contained in a haystack are performed in code, in the following fashion:
IF haystack~pos(needle) > 0 THEN, or
IF haystack~wordPos(needle) > 0 THEN, etc....
A string method "contains" would greatly enhance code readability and follow the human centric philosophy of rexx. The aboce code would look like
IF haystack~contains(needle) THEN, or
IF haystack~containsWord(needle) THEN, etc....
Madou
Anonymous
Committed revision [r10205].
This added contains and caselessContains to String and MutableBuffer. The starting position and search range can be specified with this functions. Word versions will be committed separately.
Related
Commit: [r10205]
Committed [r10207]
Adds containsWord and caselessContainsWord to String and MutableBuffer.
Related
Commit: [r10207]
Documented contains() / caselessContains() for MutableBuffer in revision [r10933].
String to follow.
Related
Commit: [r10933]
Committed revision [r10970] for String.
Related
Commit: [r10970]