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

Function onlyUnprintableCharsAreZeroBytes

src/utils/string.cpp:124–129  ·  view source on GitHub ↗

* @brief Checks if the only unprintable characters in the given string are zero * bytes. */

Source from the content-addressed store, hash-verified

122* bytes.
123*/
124bool onlyUnprintableCharsAreZeroBytes(const WideStringType &str) {
125 return std::find_if(
126 str.begin(),
127 str.end(),
128 [](WideCharType c){return !isPrintableOrZeroByte(c);}) == str.end();
129}
130
131/**
132* @brief Converts the given character into a hexadecimal representation to be

Callers 1

asEscapedCStringFunction · 0.85

Calls 3

isPrintableOrZeroByteFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected