Lines Matching defs:os

120                                      ::std::ostream* os);
131 // TypeWithoutFormatter<T, kTypeKind>::PrintValue(value, os) is called
139 static void PrintValue(const T& value, ::std::ostream* os) {
141 sizeof(value), os);
153 static void PrintValue(const T& value, ::std::ostream* os) {
158 *os << ("<" + pretty_str + ">");
172 static void PrintValue(const T& value, ::std::ostream* os) {
174 *os << kBigInt;
204 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
208 kConvertibleToInteger : kOtherType)>::PrintValue(x, &os);
209 return os;
222 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
249 *os << value;
365 void UniversalPrint(const T& value, ::std::ostream* os);
372 const C& container, ::std::ostream* os) {
374 *os << '{';
379 *os << ',';
381 *os << " ...";
385 *os << ' ';
386 // We cannot call PrintTo(*it, os) here as PrintTo() doesn't
388 internal::UniversalPrint(*it, os);
392 *os << ' ';
394 *os << '}';
406 T* p, ::std::ostream* os) {
408 *os << "NULL";
419 *os << p;
421 // T is a function type, so '*os << p' doesn't do what we want
427 *os << reinterpret_cast<const void*>(
438 const T& value, ::std::ostream* os) {
439 ::testing_internal::DefaultPrintNonContainerTo(value, os);
454 void PrintTo(const T& value, ::std::ostream* os) {
477 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
485 GTEST_API_ void PrintTo(unsigned char c, ::std::ostream* os);
486 GTEST_API_ void PrintTo(signed char c, ::std::ostream* os);
487 inline void PrintTo(char c, ::std::ostream* os) {
491 PrintTo(static_cast<unsigned char>(c), os);
495 inline void PrintTo(bool x, ::std::ostream* os) {
496 *os << (x ? "true" : "false");
506 GTEST_API_ void PrintTo(wchar_t wc, ::std::ostream* os);
509 GTEST_API_ void PrintTo(const char* s, ::std::ostream* os);
510 inline void PrintTo(char* s, ::std::ostream* os) {
511 PrintTo(ImplicitCast_<const char*>(s), os);
516 inline void PrintTo(const signed char* s, ::std::ostream* os) {
517 PrintTo(ImplicitCast_<const void*>(s), os);
519 inline void PrintTo(signed char* s, ::std::ostream* os) {
520 PrintTo(ImplicitCast_<const void*>(s), os);
522 inline void PrintTo(const unsigned char* s, ::std::ostream* os) {
523 PrintTo(ImplicitCast_<const void*>(s), os);
525 inline void PrintTo(unsigned char* s, ::std::ostream* os) {
526 PrintTo(ImplicitCast_<const void*>(s), os);
536 GTEST_API_ void PrintTo(const wchar_t* s, ::std::ostream* os);
537 inline void PrintTo(wchar_t* s, ::std::ostream* os) {
538 PrintTo(ImplicitCast_<const wchar_t*>(s), os);
548 void PrintRawArrayTo(const T a[], size_t count, ::std::ostream* os) {
549 UniversalPrint(a[0], os);
551 *os << ", ";
552 UniversalPrint(a[i], os);
558 GTEST_API_ void PrintStringTo(const ::string&s, ::std::ostream* os);
559 inline void PrintTo(const ::string& s, ::std::ostream* os) {
560 PrintStringTo(s, os);
564 GTEST_API_ void PrintStringTo(const ::std::string&s, ::std::ostream* os);
565 inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
566 PrintStringTo(s, os);
571 GTEST_API_ void PrintWideStringTo(const ::wstring&s, ::std::ostream* os);
572 inline void PrintTo(const ::wstring& s, ::std::ostream* os) {
573 PrintWideStringTo(s, os);
578 GTEST_API_ void PrintWideStringTo(const ::std::wstring&s, ::std::ostream* os);
579 inline void PrintTo(const ::std::wstring& s, ::std::ostream* os) {
580 PrintWideStringTo(s, os);
588 void PrintTupleTo(const T& t, ::std::ostream* os);
600 inline void PrintTo(const ::std::tr1::tuple<>& t, ::std::ostream* os) {
601 PrintTupleTo(t, os);
605 void PrintTo(const ::std::tr1::tuple<T1>& t, ::std::ostream* os) {
606 PrintTupleTo(t, os);
610 void PrintTo(const ::std::tr1::tuple<T1, T2>& t, ::std::ostream* os) {
611 PrintTupleTo(t, os);
615 void PrintTo(const ::std::tr1::tuple<T1, T2, T3>& t, ::std::ostream* os) {
616 PrintTupleTo(t, os);
620 void PrintTo(const ::std::tr1::tuple<T1, T2, T3, T4>& t, ::std::ostream* os) {
621 PrintTupleTo(t, os);
626 ::std::ostream* os) {
627 PrintTupleTo(t, os);
633 ::std::ostream* os) {
634 PrintTupleTo(t, os);
640 ::std::ostream* os) {
641 PrintTupleTo(t, os);
647 ::std::ostream* os) {
648 PrintTupleTo(t, os);
654 ::std::ostream* os) {
655 PrintTupleTo(t, os);
662 ::std::ostream* os) {
663 PrintTupleTo(t, os);
669 void PrintTo(const ::std::tuple<Types...>& t, ::std::ostream* os) {
670 PrintTupleTo(t, os);
676 void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
677 *os << '(';
678 // We cannot use UniversalPrint(value.first, os) here, as T1 may be
680 UniversalPrinter<T1>::Print(value.first, os);
681 *os << ", ";
682 UniversalPrinter<T2>::Print(value.second, os);
683 *os << ')';
698 static void Print(const T& value, ::std::ostream* os) {
707 PrintTo(value, os);
713 // UniversalPrintArray(begin, len, os) prints an array of 'len'
716 void UniversalPrintArray(const T* begin, size_t len, ::std::ostream* os) {
718 *os << "{}";
720 *os << "{ ";
728 PrintRawArrayTo(begin, len, os);
730 PrintRawArrayTo(begin, kChunkSize, os);
731 *os << ", ..., ";
732 PrintRawArrayTo(begin + len - kChunkSize, kChunkSize, os);
734 *os << " }";
739 const char* begin, size_t len, ::std::ostream* os);
743 const wchar_t* begin, size_t len, ::std::ostream* os);
751 static void Print(const T (&a)[N], ::std::ostream* os) {
752 UniversalPrintArray(a, N, os);
764 static void Print(const T& value, ::std::ostream* os) {
767 *os << "@" << reinterpret_cast<const void*>(&value) << " ";
770 UniversalPrint(value, os);
783 static void Print(const T& value, ::std::ostream* os) {
784 UniversalPrint(value, os);
790 static void Print(const T& value, ::std::ostream* os) {
791 UniversalPrint(value, os);
797 static void Print(const T (&value)[N], ::std::ostream* os) {
798 UniversalPrinter<T[N]>::Print(value, os);
804 static void Print(const char* str, ::std::ostream* os) {
806 *os << "NULL";
808 UniversalPrint(string(str), os);
815 static void Print(char* str, ::std::ostream* os) {
816 UniversalTersePrinter<const char*>::Print(str, os);
824 static void Print(const wchar_t* str, ::std::ostream* os) {
826 *os << "NULL";
828 UniversalPrint(::std::wstring(str), os);
837 static void Print(wchar_t* str, ::std::ostream* os) {
838 UniversalTersePrinter<const wchar_t*>::Print(str, os);
843 void UniversalTersePrint(const T& value, ::std::ostream* os) {
844 UniversalTersePrinter<T>::Print(value, os);
852 void UniversalPrint(const T& value, ::std::ostream* os) {
856 UniversalPrinter<T1>::Print(value, os);
914 // TuplePrefixPrinter<N>::PrintPrefixTo(t, os) prints the first N
923 static void PrintPrefixTo(const Tuple& t, ::std::ostream* os) {
924 TuplePrefixPrinter<N - 1>::PrintPrefixTo(t, os);
928 *os << ", ";
932 ::Print(TuplePolicy<Tuple>::template get<N - 1>(t), os);
959 void PrintTupleTo(const Tuple& t, ::std::ostream* os) {
960 *os << "(";
961 TuplePrefixPrinter<TuplePolicy<Tuple>::tuple_size>::PrintPrefixTo(t, os);
962 *os << ")";