Lines Matching refs:os

60                                 size_t count, ostream* os) {  in PrintByteSegmentInObjectTo()  argument
68 *os << ' '; in PrintByteSegmentInObjectTo()
70 *os << '-'; in PrintByteSegmentInObjectTo()
73 *os << text; in PrintByteSegmentInObjectTo()
79 ostream* os) { in PrintBytesInObjectToImpl() argument
81 *os << count << "-byte object <"; in PrintBytesInObjectToImpl()
90 PrintByteSegmentInObjectTo(obj_bytes, 0, count, os); in PrintBytesInObjectToImpl()
92 PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os); in PrintBytesInObjectToImpl()
93 *os << " ... "; in PrintBytesInObjectToImpl()
96 PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os); in PrintBytesInObjectToImpl()
98 *os << ">"; in PrintBytesInObjectToImpl()
111 ostream* os) { in PrintBytesInObjectTo() argument
112 PrintBytesInObjectToImpl(obj_bytes, count, os); in PrintBytesInObjectTo()
142 static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) { in PrintAsCharLiteralTo() argument
145 *os << "\\0"; in PrintAsCharLiteralTo()
148 *os << "\\'"; in PrintAsCharLiteralTo()
151 *os << "\\\\"; in PrintAsCharLiteralTo()
154 *os << "\\a"; in PrintAsCharLiteralTo()
157 *os << "\\b"; in PrintAsCharLiteralTo()
160 *os << "\\f"; in PrintAsCharLiteralTo()
163 *os << "\\n"; in PrintAsCharLiteralTo()
166 *os << "\\r"; in PrintAsCharLiteralTo()
169 *os << "\\t"; in PrintAsCharLiteralTo()
172 *os << "\\v"; in PrintAsCharLiteralTo()
176 *os << static_cast<char>(c); in PrintAsCharLiteralTo()
179 *os << "\\x" + String::FormatHexInt(static_cast<UnsignedChar>(c)); in PrintAsCharLiteralTo()
188 static CharFormat PrintAsStringLiteralTo(wchar_t c, ostream* os) { in PrintAsStringLiteralTo() argument
191 *os << "'"; in PrintAsStringLiteralTo()
194 *os << "\\\""; in PrintAsStringLiteralTo()
197 return PrintAsCharLiteralTo<wchar_t>(c, os); in PrintAsStringLiteralTo()
203 static CharFormat PrintAsStringLiteralTo(char c, ostream* os) { in PrintAsStringLiteralTo() argument
205 static_cast<wchar_t>(static_cast<unsigned char>(c)), os); in PrintAsStringLiteralTo()
213 void PrintCharAndCodeTo(Char c, ostream* os) { in PrintCharAndCodeTo() argument
215 *os << ((sizeof(c) > 1) ? "L'" : "'"); in PrintCharAndCodeTo()
216 const CharFormat format = PrintAsCharLiteralTo<UnsignedChar>(c, os); in PrintCharAndCodeTo()
217 *os << "'"; in PrintCharAndCodeTo()
224 *os << " (" << static_cast<int>(c); in PrintCharAndCodeTo()
232 *os << ", 0x" << String::FormatHexInt(static_cast<UnsignedChar>(c)); in PrintCharAndCodeTo()
234 *os << ")"; in PrintCharAndCodeTo()
237 void PrintTo(unsigned char c, ::std::ostream* os) { in PrintTo() argument
238 PrintCharAndCodeTo<unsigned char>(c, os); in PrintTo()
240 void PrintTo(signed char c, ::std::ostream* os) { in PrintTo() argument
241 PrintCharAndCodeTo<unsigned char>(c, os); in PrintTo()
246 void PrintTo(wchar_t wc, ostream* os) { in PrintTo() argument
247 PrintCharAndCodeTo<wchar_t>(wc, os); in PrintTo()
256 const CharType* begin, size_t len, ostream* os) { in PrintCharsAsStringTo() argument
258 *os << kQuoteBegin; in PrintCharsAsStringTo()
266 *os << "\" " << kQuoteBegin; in PrintCharsAsStringTo()
268 is_previous_hex = PrintAsStringLiteralTo(cur, os) == kHexEscape; in PrintCharsAsStringTo()
270 *os << "\""; in PrintCharsAsStringTo()
277 const CharType* begin, size_t len, ostream* os) { in UniversalPrintCharArray() argument
286 PrintCharsAsStringTo(begin, len - 1, os); in UniversalPrintCharArray()
294 PrintCharsAsStringTo(begin, len, os); in UniversalPrintCharArray()
295 *os << " (no terminating NUL)"; in UniversalPrintCharArray()
299 void UniversalPrintArray(const char* begin, size_t len, ostream* os) { in UniversalPrintArray() argument
300 UniversalPrintCharArray(begin, len, os); in UniversalPrintArray()
305 void UniversalPrintArray(const wchar_t* begin, size_t len, ostream* os) { in UniversalPrintArray() argument
306 UniversalPrintCharArray(begin, len, os); in UniversalPrintArray()
310 void PrintTo(const char* s, ostream* os) { in PrintTo() argument
312 *os << "NULL"; in PrintTo()
314 *os << ImplicitCast_<const void*>(s) << " pointing to "; in PrintTo()
315 PrintCharsAsStringTo(s, strlen(s), os); in PrintTo()
327 void PrintTo(const wchar_t* s, ostream* os) { in PrintTo() argument
329 *os << "NULL"; in PrintTo()
331 *os << ImplicitCast_<const void*>(s) << " pointing to "; in PrintTo()
332 PrintCharsAsStringTo(s, wcslen(s), os); in PrintTo()
339 void PrintStringTo(const ::string& s, ostream* os) { in PrintStringTo() argument
340 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintStringTo()
344 void PrintStringTo(const ::std::string& s, ostream* os) { in PrintStringTo() argument
345 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintStringTo()
350 void PrintWideStringTo(const ::wstring& s, ostream* os) { in PrintWideStringTo() argument
351 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintWideStringTo()
356 void PrintWideStringTo(const ::std::wstring& s, ostream* os) { in PrintWideStringTo() argument
357 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintWideStringTo()