llvm::raw_ostream::write_escaped

Output Str, turning '', 't', ' ', '"', and anything that doesn't satisfy llvm::isPrint into an escape sequence.

Synopsis

Declared in <llvm/Support/raw_ostream.h>

raw_ostream&
write_escaped(
    StringRef Str,
    bool UseHexEscapes = false);

Return Value

This stream, for chaining.

Parameters

NameDescription
StrString to write with escapes.
UseHexEscapesIf true, use hex escapes for non-printable bytes.