From: J L. T. <jlt...@ma...> - 2022-06-17 20:39:28
|
Would it not be possible to use something more Rexxish, like this abbrev() function? | #include <locale> | #include <string> | | using namespace std; | // ------------------------------------------------------------------------------- // | inline const bool abbrev(const string pattern, | const string candidate, | const unsigned int minLength = pattern.length()) | {return candidate.length() <= pattern.length() & | candidate.length() >= minLength & | candidate.toupper() == pattern.substr(1,candidate.length()).toupper(); | } so e.g. | : | if (abbrev("locate",stagename,1) | call LOCATEstage | : and abbrev() could be used for other components as well. Leslie On 2022-06-17 13:44:27 Jeff Hennick wrote: > From: Jeff Hennick <Je...@je...> > To: net...@li... > > My ERROR! I apologize. > > In getting NetRexx Pipelines stages updated last year, I did not look at > the working LOCATE stage, and did not inspect the IBM documentation to see > it could be abbreviated to just L. I will supply the needed short class > files (one is needed for each "word": L, LO, LOC, etc. to call the LOCATE > stage) to do this. When I have time, I'll scan the IBM documentation to > see if there are other such stages I have missed. Jeff Hennick -- |