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) || (
unsigned char)c2s.c > 159)
72 c2s.print_char_to(os);
74 c2s.print_escaped_char_to(os);
81 #endif // LIBCWD_CHAR2STR_H namespace for libcwd.
Definition: debug.cc:87
char2str(char ci)
Construct a char2str object with attribute ci.
Definition: char2str.h:63
Print a char to a debug ostream, escaping non-printable characters as needed.
Definition: char2str.h:53
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