Menu

#816 Add string methods containsAbbrev() and caselessContainsAbbrev()

5.1.0
unread
nobody
None
none
1
2023-01-09
2023-01-09
z/VMphile
No

Classic Rexx provided abbrev(), and ooRexx added caselessAbbrev(), then later added contains() and caselessContains(). I have been using caselessAbbrev() within a loop-parse-select block to evaluate e.g. command-line options. With containsAbbrev() and caselessContainsAbbrev(), in many cases the loop could be eliminated.

Also, if possible, if the contains family of methods could return the position of the match in the input string, that would be very useful.

Discussion

Anonymous
Anonymous

Add attachments
Cancel