| 402 | // Prints a null-terminated C-style string to the ostream. |
| 403 | template <typename Char> |
| 404 | void 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 |
no test coverage detected