CHANGESTR.REX: Difference between revisions

Content added Content deleted
m (→‎the CHANGESTR source: added an internal routine (function) version.)
m (added an internal (routine) version.)
Line 8: Line 8:


This version of the   '''changestr'''   BIF has more functionality than the standard BIF.
This version of the   '''changestr'''   BIF has more functionality than the standard BIF.



__TOC__
__TOC__



==the CHANGESTR (external) program source==

===the CHANGESTR (external) program source===
The following   CHANGESTR   program can be coded as is when the intention is to be an external routine (function).
The following   CHANGESTR   program can be coded as is when the intention is to be an external routine (function).
<lang rexx>/*REXX program emulates the CHANGESTR BIF (built-in function) for older REXXes.*/
<lang rexx>/*REXX program emulates the CHANGESTR BIF (built-in function) for older REXXes.*/
Line 68: Line 71:
return f || $ || h /* support three options. */</lang>
return f || $ || h /* support three options. */</lang>


==the CHANGESTR {internal} procedure source==
===the CHANGESTR (internal) procedure source===
The following CHANGESTR program can be coded as is when the intention is to be an internal routine (function).
The following CHANGESTR program can be coded as is when the intention is to be an internal routine (function).