Prints a string to a writer, replacing each occurrence of a specified character with a given replacement string.
import mir.test: should; auto csv = stringBuf; csv.put('"'); csv.printReplaced(`some string with " double quotes "!`, '"', `""`); csv.put('"'); csv.data.should == `"some string with "" double quotes ""!"`;
Prints a string to a writer, replacing each occurrence of a specified character with a given replacement string.