MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / PrintCStringTo

Function PrintCStringTo

tests/gtest/src/gtest-printers.cc:404–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402// Prints a null-terminated C-style string to the ostream.
403template <typename Char>
404void PrintCStringTo(const Char* s, ostream* os) {
405 if (s == nullptr) {
406 *os << "NULL";
407 } else {
408 *os << ImplicitCast_<const void*>(s) << " pointing to ";
409 PrintCharsAsStringTo(s, std::char_traits<Char>::length(s), os);
410 }
411}
412
413} // anonymous namespace
414

Callers 1

PrintToFunction · 0.70

Calls 2

lengthFunction · 0.85
PrintCharsAsStringToFunction · 0.70

Tested by

no test coverage detected