13 return c >= 0x20 && c < 0x7F;
34 static const char * sHex =
"0123456789ABCDEF";
35 return sHex[c & 0x0F];
53 void prtHex(std::ostream& o, uint32_t c)
73 void prtCh(std::ostream& o, uint32_t c)
80 o << (dot ?
"'" :
"\\'");
84 o << (dot ?
"\\\"" :
"\"");
88 o << (dot ?
"\\\\n" :
"\\n");
92 o << (dot ?
"\\\\t" :
"\\t");
96 o << (dot ?
"\\\\v" :
"\\v");
100 o << (dot ?
"\\\\b" :
"\\b");
104 o << (dot ?
"\\\\r" :
"\\r");
108 o << (dot ?
"\\\\f" :
"\\f");
112 o << (dot ?
"\\\\a" :
"\\a");
120 o << static_cast<char> (c);
139 void printSpan(std::ostream& o, uint32_t lb, uint32_t ub)
void prtCh(std::ostream &o, uint32_t c)
void printSpan(std::ostream &o, uint32_t lb, uint32_t ub)
uint32_t szCodeUnit() const
bool is_space(uint32_t c)
bool is_print(uint32_t c)
void prtChOrHexForSpan(std::ostream &o, uint32_t c)
void prtChOrHex(std::ostream &o, uint32_t c)
void prtHex(std::ostream &o, uint32_t c)