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 ""!"`;
See Implementation