The OpenD Programming Language

print

Prints escaped character in the form 'c'.

Examples

import mir.appender: scopedBuffer;
auto w = scopedBuffer!char;
w.print('\n');
w.print('\'');
w.print('a');
w.print('\xF4');
assert(w.data == `'\n''\'''a''\xF4'`);

Meta