Algorithms A l g o r i t h m 188, Global Character String Search and Replace functions individually. In the present CHANGE function, lines 28 to 44 do the string search/replace. These could easily be put in a separate function, which would be similar in usage to t h a t of [1]. Lines 50 to 63 convert the changed character vector back to matrix form (for [1FXing). These could again easily be put in a separate function. In the past, t have used a version of CHANGE which did not return an explicit result. This was convenient when using CHANCE with the DO and FOR functions of [2]. However, it's nice to know t h a t CHANGE is behaving as expected, so CHANGE now returns the number of changes made. This can be ignored if unwanted (example 2). It also means that using CHARGE with a left argument of 'aSTRZNGaSTRING' causes it to just count the number of occurrences of "STRING" in the function, which is a useful facility (example 3). Although it uses no looping, CHANGE can (especially on line 30) use rather a lot of temporary storage. An A P L implementation may
/lp/association-for-computing-machinery/168-global-character-string-search-and-replace-G01TcA2S7O