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

Function isNiceCharacter

src/utils/string.cpp:992–994  ·  view source on GitHub ↗

* @return @c True if character @a c is a nice character (printable or control). * @c False otherwise. */

Source from the content-addressed store, hash-verified

990 * @c False otherwise.
991 */
992bool isNiceCharacter(unsigned char c) {
993 return isPrintableChar(c) || isContolCharacter(c);
994}
995
996/**
997* @brief Does the provided string seem nice, i.e ratio of printable characters

Callers 2

isNiceAsciiWideCharacterFunction · 0.85
TEST_FFunction · 0.85

Calls 2

isPrintableCharFunction · 0.85
isContolCharacterFunction · 0.85

Tested by 1

TEST_FFunction · 0.68