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

Function hasUnprintableChars

src/utils/string.cpp:113–118  ·  view source on GitHub ↗

* @brief Checks if the given string has any unprintable characters. */

Source from the content-addressed store, hash-verified

111* @brief Checks if the given string has any unprintable characters.
112*/
113bool hasUnprintableChars(const WideStringType &str) {
114 return std::find_if(
115 str.begin(),
116 str.end(),
117 [](WideCharType c){return !isPrintable(c);}) == str.end();
118}
119
120/**
121* @brief Checks if the only unprintable characters in the given string are zero

Callers 1

asEscapedCStringFunction · 0.85

Calls 3

isPrintableFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected