22 #ifndef LIBCWD_CHAR2STR_H
23 #define LIBCWD_CHAR2STR_H
58 void print_char_to(std::ostream&)
const;
59 void print_escaped_char_to(std::ostream&)
const;
71 if ((c2s.c > 31 && c2s.c != 92 && c2s.c != 127) )
72 c2s.print_char_to(os);
74 c2s.print_escaped_char_to(os);
Print a char to a debug ostream, escaping non-printable characters as needed.
Definition: char2str.h:53
char2str(char ci)
Construct a char2str object with attribute ci.
Definition: char2str.h:63
friend std::ostream & operator<<(std::ostream &os, char2str const c2s)
Write the character represented by c2s to the ostream os, escaping it when it is a non-printable char...
Definition: char2str.h:69
namespace for libcwd.
Definition: debug.cc:87