MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteEscape

Method WriteEscape

Source/cmConfigureLog.cxx:316–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316void cmConfigureLog::WriteEscape(unsigned char c)
317{
318 char buffer[6];
319 int n = snprintf(buffer, sizeof(buffer), "\\x%02x", c);
320 if (n > 0) {
321 this->Stream.write(buffer, n);
322 }
323}

Callers 1

WriteLiteralTextBlockMethod · 0.95

Calls 2

snprintfFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected