MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / IsPrintableAscii

Function IsPrintableAscii

tests/gtest/gtest-all.cc:11240–11242  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

11238// value of c directly instead of calling isprint(), which is buggy on
11239// Windows Mobile.
11240inline 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.

Callers 1

PrintAsCharLiteralToFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected