|
|
Simple Character Substitution
Added on 6/30/1999
|
Substitutes Characters.
on replaceChar str, oldChar, newChar
-- replaces all occurences of oldChar in str with newChar
-- ok for use in small input, it would be slow for large text
repeat while str contains oldChar
put newChar into char (offset (oldChar, str)) of str
end repeat
return str
end
|
|