isprint()
This commit is contained in:
+1
-1
@@ -155,7 +155,7 @@ std::ostream& operator<<(std::ostream& strm, const Escaper& esc)
|
||||
case '\'': next = '\''; break;
|
||||
case '\"': next = '\"'; break;
|
||||
default:
|
||||
if(isprint(c)) {
|
||||
if(c>=' ' && c<='~') { // isprint()
|
||||
strm.put(c);
|
||||
} else {
|
||||
strm<<"\\x"<<std::hex<<std::setw(2)<<std::setfill('0')<<unsigned(c&0xff);
|
||||
|
||||
Reference in New Issue
Block a user