diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-07-27 09:25:14 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-07-27 09:25:14 +0000 |
commit | 22a83d667e9f8b63795c6bddad57641ff5c0bf8e (patch) | |
tree | 117e9828c9fc55d38595b516300fca295397d7b6 /llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h | |
parent | 6381c0100bd2ec50130942696cdc1662b93c6a02 (diff) | |
download | bcm5719-llvm-22a83d667e9f8b63795c6bddad57641ff5c0bf8e.tar.gz bcm5719-llvm-22a83d667e9f8b63795c6bddad57641ff5c0bf8e.zip |
Merge gtest-1.6.0.
llvm-svn: 136212
Diffstat (limited to 'llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h')
-rw-r--r-- | llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h index aff093dec8d..dc3a07be880 100644 --- a/llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h +++ b/llvm/utils/unittest/googletest/include/gtest/internal/gtest-string.h @@ -43,11 +43,11 @@ #ifdef __BORLANDC__ // string.h is not guaranteed to provide strcpy on C++ Builder. -#include <mem.h> +# include <mem.h> #endif #include <string.h> -#include <gtest/internal/gtest-port.h> +#include "gtest/internal/gtest-port.h" #include <string> @@ -296,7 +296,7 @@ class GTEST_API_ String { private: // Constructs a non-NULL String from the given content. This - // function can only be called when data_ has not been allocated. + // function can only be called when c_str_ has not been allocated. // ConstructNonNull(NULL, 0) results in an empty string (""). // ConstructNonNull(NULL, non_zero) is undefined behavior. void ConstructNonNull(const char* buffer, size_t a_length) { @@ -329,9 +329,9 @@ inline ::std::ostream& operator<<(::std::ostream& os, const String& str) { return os; } -// Gets the content of the StrStream's buffer as a String. Each '\0' +// Gets the content of the stringstream's buffer as a String. Each '\0' // character in the buffer is replaced with "\\0". -GTEST_API_ String StrStreamToString(StrStream* stream); +GTEST_API_ String StringStreamToString(::std::stringstream* stream); // Converts a streamable value to a String. A NULL pointer is // converted to "(null)". When the input value is a ::string, |