Lines Matching refs:os

64                                 size_t count, ostream* os) {  in PrintByteSegmentInObjectTo()  argument
72 *os << ' '; in PrintByteSegmentInObjectTo()
74 *os << '-'; in PrintByteSegmentInObjectTo()
77 *os << text; in PrintByteSegmentInObjectTo()
83 ostream* os) { in PrintBytesInObjectToImpl() argument
85 *os << count << "-byte object <"; in PrintBytesInObjectToImpl()
94 PrintByteSegmentInObjectTo(obj_bytes, 0, count, os); in PrintBytesInObjectToImpl()
96 PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os); in PrintBytesInObjectToImpl()
97 *os << " ... "; in PrintBytesInObjectToImpl()
100 PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os); in PrintBytesInObjectToImpl()
102 *os << ">"; in PrintBytesInObjectToImpl()
115 ostream* os) { in PrintBytesInObjectTo() argument
116 PrintBytesInObjectToImpl(obj_bytes, count, os); in PrintBytesInObjectTo()
146 static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) { in PrintAsCharLiteralTo() argument
149 *os << "\\0"; in PrintAsCharLiteralTo()
152 *os << "\\'"; in PrintAsCharLiteralTo()
155 *os << "\\\\"; in PrintAsCharLiteralTo()
158 *os << "\\a"; in PrintAsCharLiteralTo()
161 *os << "\\b"; in PrintAsCharLiteralTo()
164 *os << "\\f"; in PrintAsCharLiteralTo()
167 *os << "\\n"; in PrintAsCharLiteralTo()
170 *os << "\\r"; in PrintAsCharLiteralTo()
173 *os << "\\t"; in PrintAsCharLiteralTo()
176 *os << "\\v"; in PrintAsCharLiteralTo()
180 *os << static_cast<char>(c); in PrintAsCharLiteralTo()
183 *os << "\\x" + String::FormatHexInt(static_cast<UnsignedChar>(c)); in PrintAsCharLiteralTo()
192 static CharFormat PrintAsStringLiteralTo(wchar_t c, ostream* os) { in PrintAsStringLiteralTo() argument
195 *os << "'"; in PrintAsStringLiteralTo()
198 *os << "\\\""; in PrintAsStringLiteralTo()
201 return PrintAsCharLiteralTo<wchar_t>(c, os); in PrintAsStringLiteralTo()
207 static CharFormat PrintAsStringLiteralTo(char c, ostream* os) { in PrintAsStringLiteralTo() argument
209 static_cast<wchar_t>(static_cast<unsigned char>(c)), os); in PrintAsStringLiteralTo()
217 void PrintCharAndCodeTo(Char c, ostream* os) { in PrintCharAndCodeTo() argument
219 *os << ((sizeof(c) > 1) ? "L'" : "'"); in PrintCharAndCodeTo()
220 const CharFormat format = PrintAsCharLiteralTo<UnsignedChar>(c, os); in PrintCharAndCodeTo()
221 *os << "'"; in PrintCharAndCodeTo()
228 *os << " (" << static_cast<int>(c); in PrintCharAndCodeTo()
236 *os << ", 0x" << String::FormatHexInt(static_cast<UnsignedChar>(c)); in PrintCharAndCodeTo()
238 *os << ")"; in PrintCharAndCodeTo()
241 void PrintTo(unsigned char c, ::std::ostream* os) { in PrintTo() argument
242 PrintCharAndCodeTo<unsigned char>(c, os); in PrintTo()
244 void PrintTo(signed char c, ::std::ostream* os) { in PrintTo() argument
245 PrintCharAndCodeTo<unsigned char>(c, os); in PrintTo()
250 void PrintTo(wchar_t wc, ostream* os) { in PrintTo() argument
251 PrintCharAndCodeTo<wchar_t>(wc, os); in PrintTo()
263 const CharType* begin, size_t len, ostream* os) { in PrintCharsAsStringTo() argument
265 *os << kQuoteBegin; in PrintCharsAsStringTo()
273 *os << "\" " << kQuoteBegin; in PrintCharsAsStringTo()
275 is_previous_hex = PrintAsStringLiteralTo(cur, os) == kHexEscape; in PrintCharsAsStringTo()
277 *os << "\""; in PrintCharsAsStringTo()
287 const CharType* begin, size_t len, ostream* os) { in UniversalPrintCharArray() argument
296 PrintCharsAsStringTo(begin, len - 1, os); in UniversalPrintCharArray()
304 PrintCharsAsStringTo(begin, len, os); in UniversalPrintCharArray()
305 *os << " (no terminating NUL)"; in UniversalPrintCharArray()
309 void UniversalPrintArray(const char* begin, size_t len, ostream* os) { in UniversalPrintArray() argument
310 UniversalPrintCharArray(begin, len, os); in UniversalPrintArray()
315 void UniversalPrintArray(const wchar_t* begin, size_t len, ostream* os) { in UniversalPrintArray() argument
316 UniversalPrintCharArray(begin, len, os); in UniversalPrintArray()
320 void PrintTo(const char* s, ostream* os) { in PrintTo() argument
322 *os << "NULL"; in PrintTo()
324 *os << ImplicitCast_<const void*>(s) << " pointing to "; in PrintTo()
325 PrintCharsAsStringTo(s, strlen(s), os); in PrintTo()
337 void PrintTo(const wchar_t* s, ostream* os) { in PrintTo() argument
339 *os << "NULL"; in PrintTo()
341 *os << ImplicitCast_<const void*>(s) << " pointing to "; in PrintTo()
342 PrintCharsAsStringTo(s, std::wcslen(s), os); in PrintTo()
349 void PrintStringTo(const ::string& s, ostream* os) { in PrintStringTo() argument
350 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintStringTo()
354 void PrintStringTo(const ::std::string& s, ostream* os) { in PrintStringTo() argument
355 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintStringTo()
360 void PrintWideStringTo(const ::wstring& s, ostream* os) { in PrintWideStringTo() argument
361 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintWideStringTo()
366 void PrintWideStringTo(const ::std::wstring& s, ostream* os) { in PrintWideStringTo() argument
367 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintWideStringTo()