aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtest-internal-inl.h
diff options
context:
space:
mode:
authorkosak <kosak@google.com>2013-02-22 20:10:40 +0000
committerkosak <kosak@google.com>2013-02-22 20:10:40 +0000
commitcc1fdb58caf8d5ac9b858f615d3c42267fc5e258 (patch)
tree2821e8cd493ff783f47570fe991fc3ceab776ec7 /src/gtest-internal-inl.h
parent65b5c22436fab922ea791b9b39a8fe154f0849f8 (diff)
downloadgoogletest-cc1fdb58caf8d5ac9b858f615d3c42267fc5e258.tar.gz
googletest-cc1fdb58caf8d5ac9b858f615d3c42267fc5e258.tar.bz2
googletest-cc1fdb58caf8d5ac9b858f615d3c42267fc5e258.zip
Removes testing::internal::String::Format(), which causes problems as it truncates the result at 4096 chars. Also update an obsolete link in comment.
Diffstat (limited to 'src/gtest-internal-inl.h')
-rw-r--r--src/gtest-internal-inl.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gtest-internal-inl.h b/src/gtest-internal-inl.h
index 54717c95..2491eee9 100644
--- a/src/gtest-internal-inl.h
+++ b/src/gtest-internal-inl.h
@@ -222,12 +222,10 @@ class GTestFlagSaver {
// Converts a Unicode code point to a narrow string in UTF-8 encoding.
// code_point parameter is of type UInt32 because wchar_t may not be
// wide enough to contain a code point.
-// The output buffer str must containt at least 32 characters.
-// The function returns the address of the output buffer.
// If the code_point is not a valid Unicode code point
-// (i.e. outside of Unicode range U+0 to U+10FFFF) it will be output
-// as '(Invalid Unicode 0xXXXXXXXX)'.
-GTEST_API_ char* CodePointToUtf8(UInt32 code_point, char* str);
+// (i.e. outside of Unicode range U+0 to U+10FFFF) it will be converted
+// to "(Invalid Unicode 0xXXXXXXXX)".
+GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);
// Converts a wide string to a narrow string in UTF-8 encoding.
// The wide string is assumed to have the following encoding: