MCPcopy Create free account
hub / github.com/avast/retdec / isPrintableChar

Function isPrintableChar

src/utils/string.cpp:29–31  ·  view source on GitHub ↗

* @brief Our alternative to std::isprint() which can be inconsistent for '\t' * - true on windows, false on other systems. */

Source from the content-addressed store, hash-verified

27 * - true on windows, false on other systems.
28 */
29bool isPrintableChar(unsigned char c) {
30 return std::isprint(c) && !std::iscntrl(c);
31}
32
33/**
34* @brief Returns @c true if @c is non-printable character, @c false otherwise.

Callers 6

isNonprintableCharFunction · 0.85
isPrintableFunction · 0.85
canBeAppendedLiterallyFunction · 0.85
unicodeToAsciiFunction · 0.85
isNiceCharacterFunction · 0.85
readStringRawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected