The OpenD Programming Language

printReplaced

void
printReplaced
(
C
W
)
(
scope ref W w
,
scope const(C)[] str
,
C c
,
scope const(C)[] to
)

Examples

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

Meta