Lines Matching refs:os

68                                 size_t count, ostream* os) {  in PrintByteSegmentInObjectTo()  argument
76 *os << ' '; in PrintByteSegmentInObjectTo()
78 *os << '-'; in PrintByteSegmentInObjectTo()
81 *os << text; in PrintByteSegmentInObjectTo()
87 ostream* os) { in PrintBytesInObjectToImpl() argument
89 *os << count << "-byte object <"; in PrintBytesInObjectToImpl()
98 PrintByteSegmentInObjectTo(obj_bytes, 0, count, os); in PrintBytesInObjectToImpl()
100 PrintByteSegmentInObjectTo(obj_bytes, 0, kChunkSize, os); in PrintBytesInObjectToImpl()
101 *os << " ... "; in PrintBytesInObjectToImpl()
104 PrintByteSegmentInObjectTo(obj_bytes, resume_pos, count - resume_pos, os); in PrintBytesInObjectToImpl()
106 *os << ">"; in PrintBytesInObjectToImpl()
119 ostream* os) { in PrintBytesInObjectTo() argument
120 PrintBytesInObjectToImpl(obj_bytes, count, os); in PrintBytesInObjectTo()
150 static CharFormat PrintAsCharLiteralTo(Char c, ostream* os) { in PrintAsCharLiteralTo() argument
153 *os << "\\0"; in PrintAsCharLiteralTo()
156 *os << "\\'"; in PrintAsCharLiteralTo()
159 *os << "\\\\"; in PrintAsCharLiteralTo()
162 *os << "\\a"; in PrintAsCharLiteralTo()
165 *os << "\\b"; in PrintAsCharLiteralTo()
168 *os << "\\f"; in PrintAsCharLiteralTo()
171 *os << "\\n"; in PrintAsCharLiteralTo()
174 *os << "\\r"; in PrintAsCharLiteralTo()
177 *os << "\\t"; in PrintAsCharLiteralTo()
180 *os << "\\v"; in PrintAsCharLiteralTo()
184 *os << static_cast<char>(c); in PrintAsCharLiteralTo()
187 *os << String::Format("\\x%X", static_cast<UnsignedChar>(c)); in PrintAsCharLiteralTo()
196 static CharFormat PrintAsWideStringLiteralTo(wchar_t c, ostream* os) { in PrintAsWideStringLiteralTo() argument
199 *os << "'"; in PrintAsWideStringLiteralTo()
202 *os << "\\\""; in PrintAsWideStringLiteralTo()
205 return PrintAsCharLiteralTo<wchar_t>(c, os); in PrintAsWideStringLiteralTo()
211 static CharFormat PrintAsNarrowStringLiteralTo(char c, ostream* os) { in PrintAsNarrowStringLiteralTo() argument
212 return PrintAsWideStringLiteralTo(static_cast<unsigned char>(c), os); in PrintAsNarrowStringLiteralTo()
220 void PrintCharAndCodeTo(Char c, ostream* os) { in PrintCharAndCodeTo() argument
222 *os << ((sizeof(c) > 1) ? "L'" : "'"); in PrintCharAndCodeTo()
223 const CharFormat format = PrintAsCharLiteralTo<UnsignedChar>(c, os); in PrintCharAndCodeTo()
224 *os << "'"; in PrintCharAndCodeTo()
231 *os << " (" << String::Format("%d", c).c_str(); in PrintCharAndCodeTo()
239 *os << String::Format(", 0x%X", in PrintCharAndCodeTo()
242 *os << ")"; in PrintCharAndCodeTo()
245 void PrintTo(unsigned char c, ::std::ostream* os) { in PrintTo() argument
246 PrintCharAndCodeTo<unsigned char>(c, os); in PrintTo()
248 void PrintTo(signed char c, ::std::ostream* os) { in PrintTo() argument
249 PrintCharAndCodeTo<unsigned char>(c, os); in PrintTo()
254 void PrintTo(wchar_t wc, ostream* os) { in PrintTo() argument
255 PrintCharAndCodeTo<wchar_t>(wc, os); in PrintTo()
261 static void PrintCharsAsStringTo(const char* begin, size_t len, ostream* os) { in PrintCharsAsStringTo() argument
262 *os << "\""; in PrintCharsAsStringTo()
270 *os << "\" \""; in PrintCharsAsStringTo()
272 is_previous_hex = PrintAsNarrowStringLiteralTo(cur, os) == kHexEscape; in PrintCharsAsStringTo()
274 *os << "\""; in PrintCharsAsStringTo()
278 void UniversalPrintArray(const char* begin, size_t len, ostream* os) { in UniversalPrintArray() argument
279 PrintCharsAsStringTo(begin, len, os); in UniversalPrintArray()
286 ostream* os) { in PrintWideCharsAsStringTo() argument
287 *os << "L\""; in PrintWideCharsAsStringTo()
295 *os << "\" L\""; in PrintWideCharsAsStringTo()
297 is_previous_hex = PrintAsWideStringLiteralTo(cur, os) == kHexEscape; in PrintWideCharsAsStringTo()
299 *os << "\""; in PrintWideCharsAsStringTo()
303 void PrintTo(const char* s, ostream* os) { in PrintTo() argument
305 *os << "NULL"; in PrintTo()
307 *os << ImplicitCast_<const void*>(s) << " pointing to "; in PrintTo()
308 PrintCharsAsStringTo(s, strlen(s), os); in PrintTo()
320 void PrintTo(const wchar_t* s, ostream* os) { in PrintTo() argument
322 *os << "NULL"; in PrintTo()
324 *os << ImplicitCast_<const void*>(s) << " pointing to "; in PrintTo()
325 PrintWideCharsAsStringTo(s, wcslen(s), os); in PrintTo()
332 void PrintStringTo(const ::string& s, ostream* os) { in PrintStringTo() argument
333 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintStringTo()
337 void PrintStringTo(const ::std::string& s, ostream* os) { in PrintStringTo() argument
338 PrintCharsAsStringTo(s.data(), s.size(), os); in PrintStringTo()
343 void PrintWideStringTo(const ::wstring& s, ostream* os) { in PrintWideStringTo() argument
344 PrintWideCharsAsStringTo(s.data(), s.size(), os); in PrintWideStringTo()
349 void PrintWideStringTo(const ::std::wstring& s, ostream* os) { in PrintWideStringTo() argument
350 PrintWideCharsAsStringTo(s.data(), s.size(), os); in PrintWideStringTo()