Returns true if c is a printable ASCII character. We test the value of c directly instead of calling isprint(), which is buggy on Windows Mobile.
| 11238 | // value of c directly instead of calling isprint(), which is buggy on |
| 11239 | // Windows Mobile. |
| 11240 | inline bool IsPrintableAscii(wchar_t c) { |
| 11241 | return 0x20 <= c && c <= 0x7E; |
| 11242 | } |
| 11243 | |
| 11244 | // Prints a wide or narrow char c as a character literal without the |
| 11245 | // quotes, escaping it when necessary; returns how c was formatted. |
no outgoing calls
no test coverage detected