Home | History | Annotate | Download | only in gtest

Lines Matching refs:Char

54 // value is also printed; when T is a (const) char pointer, both the
60 // // Prints a value to a string. For a (const or not) char
66 // // value (but not the address) is printed; for a (const or not) char
73 // // pointer and the NUL-terminated string for a (const or not) char pointer.
114 GTEST_API_ void PrintBytesInObjectTo(const unsigned char* obj_bytes,
136 PrintBytesInObjectTo(reinterpret_cast<const unsigned char*>(&value),
189 // Note that this operator<< takes a generic std::basic_ostream<Char,
193 // Foo that supports streaming to std::basic_ostream<Char,
196 // operator<<(std::basic_stream<Char, CharTraits>, const Foo&) is more
198 template <typename Char, typename CharTraits, typename T>
199 ::std::basic_ostream<Char, CharTraits>& operator<<(
200 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
296 // Used to print a pointer that is neither a char pointer nor a member
383 // Overloads for various char types.
384 GTEST_API_ void PrintTo(unsigned char c, ::std::ostream* os);
385 GTEST_API_ void PrintTo(signed char c, ::std::ostream* os);
386 inline void PrintTo(char c, ::std::ostream* os) {
387 // When printing a plain char, we always treat it as unsigned. This
389 // char is signed or not.
390 PrintTo(static_cast<unsigned char>(c), os);
401 // The L'\0' char is printed as "L'\\0'". The decimal code is printed
408 GTEST_API_ void PrintTo(const char* s, ::std::ostream* os);
409 inline void PrintTo(char* s, ::std::ostream* os) {
410 PrintTo(ImplicitCast_<const char*>(s), os);
413 // signed/unsigned char is often used for representing binary data, so
415 inline void PrintTo(const signed char* s, ::std::ostream* os) {
418 inline void PrintTo(signed char* s, ::std::ostream* os) {
421 inline void PrintTo(const unsigned char* s, ::std::ostream* os) {
424 inline void PrintTo(unsigned char* s, ::std::ostream* os) {
632 // This overload prints a (const) char array compactly.
633 GTEST_API_ void UniversalPrintArray(const char* begin,
674 // (but not the address) is printed; for a (const) char pointer, the
680 inline void UniversalTersePrint(const char* str, ::std::ostream* os) {
687 inline void UniversalTersePrint(char* str, ::std::ostream* os) {
688 UniversalTersePrint(static_cast<const char*>(str), os);
693 // (const) char pointer, this prints both the pointer and the