| 424 | // Prints a null-terminated C-style string to the ostream. |
| 425 | template <typename Char> |
| 426 | void PrintCStringTo(const Char* s, ostream* os) { |
| 427 | if (s == nullptr) { |
| 428 | *os << "NULL"; |
| 429 | } else { |
| 430 | *os << ImplicitCast_<const void*>(s) << " pointing to "; |
| 431 | PrintCharsAsStringTo(s, std::char_traits<Char>::length(s), os); |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | } // anonymous namespace |
| 436 |
no test coverage detected