CHANGESTR.REX: Difference between revisions

m
moved a category to TOF.
m (→‎the CHANGESTR source: added an internal routine (function) version.)
m (moved a category to TOF.)
 
(3 intermediate revisions by 2 users not shown)
Line 1:
[[Category:REXX_library_routines]]
==the CHANGESTR function==
 
== the CHANGESTR function ==
This a RYO version of the REXX function &nbsp; '''changestr''' &nbsp; (<u>change</u> <u>str</u>ing).
 
It is included in some of the more modern Classic REXXes, but older versions of
<br>Classic REXX don't have this function as a &nbsp; BIF &nbsp; (<u>bB</u>uilt-<u>iI</u>n-<u>fF</u>unction).
 
 
 
This version of the &nbsp; '''changestr''' &nbsp; BIF has more functionality than the standard BIF.
 
 
__TOC__
 
 
==the CHANGESTR (external) program source==
 
===the CHANGESTR (external) program source===
The following &nbsp; CHANGESTR &nbsp; 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.*/
Line 68 ⟶ 73:
return f || $ || h /* support three options. */</lang>
 
=== the CHANGESTR {(internal}) procedure source ===
The following CHANGESTR program can be coded as is when the intention is to be an internal routine (function).