43 #ifndef GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
44 #define GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
74 static const char* CloneCString(
const char* c_str);
76 #ifdef GTEST_OS_WINDOWS_MOBILE
89 static LPCWSTR AnsiToUtf16(
const char* c_str);
99 static const char* Utf16ToAnsi(LPCWSTR utf16_str);
108 static bool CStringEquals(
const char* lhs,
const char* rhs);
114 static std::string ShowWideCString(
const wchar_t* wide_c_str);
122 static bool WideCStringEquals(
const wchar_t* lhs,
const wchar_t* rhs);
130 static bool CaseInsensitiveCStringEquals(
const char* lhs,
const char* rhs);
144 static bool CaseInsensitiveWideCStringEquals(
const wchar_t* lhs,
149 static bool EndsWithCaseInsensitive(
const std::string& str,
150 const std::string& suffix);
153 static std::string FormatIntWidth2(
int value);
156 static std::string FormatIntWidthN(
int value,
int width);
159 static std::string FormatHexInt(
int value);
162 static std::string FormatHexUInt32(uint32_t value);
165 static std::string FormatByte(
unsigned char value);
178 #endif // GOOGLETEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
GTEST_API_ std::string StringStreamToString(::std::stringstream *stream)