41 #ifndef GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
42 #define GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
70 static const char* CloneCString(
const char* c_str);
72 #if GTEST_OS_WINDOWS_MOBILE
85 static LPCWSTR AnsiToUtf16(
const char* c_str);
95 static const char* Utf16ToAnsi(LPCWSTR utf16_str);
104 static bool CStringEquals(
const char* lhs,
const char* rhs);
110 static std::string ShowWideCString(
const wchar_t* wide_c_str);
118 static bool WideCStringEquals(
const wchar_t* lhs,
const wchar_t* rhs);
126 static bool CaseInsensitiveCStringEquals(
const char* lhs,
141 static bool CaseInsensitiveWideCStringEquals(
const wchar_t* lhs,
146 static bool EndsWithCaseInsensitive(
147 const std::string& str,
const std::string& suffix);
150 static std::string FormatIntWidth2(
int value);
153 static std::string FormatHexInt(
int value);
156 static std::string FormatHexUInt32(uint32_t value);
159 static std::string FormatByte(
unsigned char value);
172 #endif // GTEST_INCLUDE_GTEST_INTERNAL_GTEST_STRING_H_
GTEST_API_ std::string StringStreamToString(::std::stringstream *stream)