On 2018-03-14, at 20:32:18, Robin Vowels wrote: > From: "Charles Mills" <charl...@mcn.org> > Sent: Thursday, March 15, 2018 2:51 AM > >> 1. Is there a machine instruction that will find one string within >> another? That given "Now is the time" and "is" would find the "is" and >> return a pointer to it? A machine instruction analog of Rexx POS? >> 2. Searching the PoOp for such an instruction led me to CUSE. It does >> not seem that CUSE could be used for this - is that correct? If I am reading >> CUSE correctly, then given "Now is the time", "All is well" and 2 or 3 would >> return the position of "is". Is my reading correct? What would that be good >> for? What would be a reasonable real-world use? > > The traditional TRT to search for the first letter, > followed by CLC for the word (for which the search can commence > at the second letter, because the first letter has already been found), > will likely be the quickest. > Ok. Now make it case-insensitive, which is a common convention. That can be done with Boyer-Moore.
-- gil