print

Prints escaped character in the form 'c'.

Examples

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

Meta