#include <gtest-string.h>
|
static const char * | CloneCString (const char *c_str) |
|
static bool | CStringEquals (const char *lhs, const char *rhs) |
|
static std::string | ShowWideCString (const wchar_t *wide_c_str) |
|
static bool | WideCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
|
static bool | CaseInsensitiveCStringEquals (const char *lhs, const char *rhs) |
|
static bool | CaseInsensitiveWideCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
|
static bool | EndsWithCaseInsensitive (const std::string &str, const std::string &suffix) |
|
static std::string | FormatIntWidth2 (int value) |
|
static std::string | FormatHexInt (int value) |
|
static std::string | FormatByte (unsigned char value) |
|
static const char * | CloneCString (const char *c_str) |
|
static bool | CStringEquals (const char *lhs, const char *rhs) |
|
static std::string | ShowWideCString (const wchar_t *wide_c_str) |
|
static bool | WideCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
|
static bool | CaseInsensitiveCStringEquals (const char *lhs, const char *rhs) |
|
static bool | CaseInsensitiveWideCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
|
static bool | EndsWithCaseInsensitive (const std::string &str, const std::string &suffix) |
|
static std::string | FormatIntWidth2 (int value) |
|
static std::string | FormatHexInt (int value) |
|
static std::string | FormatByte (unsigned char value) |
|
static const char * | CloneCString (const char *c_str) |
|
static bool | CStringEquals (const char *lhs, const char *rhs) |
|
static std::string | ShowWideCString (const wchar_t *wide_c_str) |
|
static bool | WideCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
|
static bool | CaseInsensitiveCStringEquals (const char *lhs, const char *rhs) |
|
static bool | CaseInsensitiveWideCStringEquals (const wchar_t *lhs, const wchar_t *rhs) |
|
static bool | EndsWithCaseInsensitive (const std::string &str, const std::string &suffix) |
|
static std::string | FormatIntWidth2 (int value) |
|
static std::string | FormatHexInt (int value) |
|
static std::string | FormatByte (unsigned char value) |
|
Definition at line 58 of file gtest-string.h.
testing::internal::String::String |
( |
| ) |
|
|
private |
testing::internal::String::String |
( |
| ) |
|
|
private |
testing::internal::String::String |
( |
| ) |
|
|
private |
bool testing::internal::String::CaseInsensitiveCStringEquals |
( |
const char * |
lhs, |
|
|
const char * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::CaseInsensitiveCStringEquals |
( |
const char * |
lhs, |
|
|
const char * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::CaseInsensitiveCStringEquals |
( |
const char * |
lhs, |
|
|
const char * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::CaseInsensitiveWideCStringEquals |
( |
const wchar_t * |
lhs, |
|
|
const wchar_t * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::CaseInsensitiveWideCStringEquals |
( |
const wchar_t * |
lhs, |
|
|
const wchar_t * |
rhs |
|
) |
| |
|
static |
bool testing::internal::String::CaseInsensitiveWideCStringEquals |
( |
const wchar_t * |
lhs, |
|
|
const wchar_t * |
rhs |
|
) |
| |
|
static |
Definition at line 1925 of file gtest.cc.
Referenced by operator<<().
1927 if (lhs == NULL)
return rhs == NULL;
1929 if (
rhs == NULL)
return false;
1931 #if GTEST_OS_WINDOWS 1932 return _wcsicmp(lhs,
rhs) == 0;
1933 #elif GTEST_OS_LINUX && !GTEST_OS_LINUX_ANDROID 1934 return wcscasecmp(lhs,
rhs) == 0;
1940 left = towlower(*lhs++);
1941 right = towlower(*
rhs++);
1942 }
while (left && left == right);
1943 return left == right;
1944 #endif // OS selector FOLLY_PUSH_WARNING RHS rhs
static const char* testing::internal::String::CloneCString |
( |
const char * |
c_str | ) |
|
|
static |
static const char* testing::internal::String::CloneCString |
( |
const char * |
c_str | ) |
|
|
static |
static const char* testing::internal::String::CloneCString |
( |
const char * |
c_str | ) |
|
|
static |
bool testing::internal::String::CStringEquals |
( |
const char * |
lhs, |
|
|
const char * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::CStringEquals |
( |
const char * |
lhs, |
|
|
const char * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::CStringEquals |
( |
const char * |
lhs, |
|
|
const char * |
rhs |
|
) |
| |
|
static |
static bool testing::internal::String::EndsWithCaseInsensitive |
( |
const std::string & |
str, |
|
|
const std::string & |
suffix |
|
) |
| |
|
static |
static bool testing::internal::String::EndsWithCaseInsensitive |
( |
const std::string & |
str, |
|
|
const std::string & |
suffix |
|
) |
| |
|
static |
bool testing::internal::String::EndsWithCaseInsensitive |
( |
const std::string & |
str, |
|
|
const std::string & |
suffix |
|
) |
| |
|
static |
static std::string testing::internal::String::FormatByte |
( |
unsigned char |
value | ) |
|
|
static |
std::string testing::internal::String::FormatByte |
( |
unsigned char |
value | ) |
|
|
static |
static std::string testing::internal::String::FormatByte |
( |
unsigned char |
value | ) |
|
|
static |
std::string testing::internal::String::FormatHexInt |
( |
int |
value | ) |
|
|
static |
Definition at line 1966 of file gtest.cc.
References value.
1967 std::stringstream ss;
1968 ss << std::hex << std::uppercase <<
value;
static const char *const value
static std::string testing::internal::String::FormatHexInt |
( |
int |
value | ) |
|
|
static |
static std::string testing::internal::String::FormatHexInt |
( |
int |
value | ) |
|
|
static |
static std::string testing::internal::String::FormatIntWidth2 |
( |
int |
value | ) |
|
|
static |
std::string testing::internal::String::FormatIntWidth2 |
( |
int |
value | ) |
|
|
static |
static std::string testing::internal::String::FormatIntWidth2 |
( |
int |
value | ) |
|
|
static |
static std::string testing::internal::String::ShowWideCString |
( |
const wchar_t * |
wide_c_str | ) |
|
|
static |
std::string testing::internal::String::ShowWideCString |
( |
const wchar_t * |
wide_c_str | ) |
|
|
static |
static std::string testing::internal::String::ShowWideCString |
( |
const wchar_t * |
wide_c_str | ) |
|
|
static |
static bool testing::internal::String::WideCStringEquals |
( |
const wchar_t * |
lhs, |
|
|
const wchar_t * |
rhs |
|
) |
| |
|
static |
bool testing::internal::String::WideCStringEquals |
( |
const wchar_t * |
lhs, |
|
|
const wchar_t * |
rhs |
|
) |
| |
|
static |
Definition at line 1860 of file gtest.cc.
1861 if (lhs == NULL)
return rhs == NULL;
1863 if (
rhs == NULL)
return false;
1865 return wcscmp(lhs,
rhs) == 0;
FOLLY_PUSH_WARNING RHS rhs
static bool testing::internal::String::WideCStringEquals |
( |
const wchar_t * |
lhs, |
|
|
const wchar_t * |
rhs |
|
) |
| |
|
static |
The documentation for this class was generated from the following files:
- proxygen/fizz/build_/gtest/src/gtest/googletest/include/gtest/internal/gtest-string.h
- proxygen/fizz/build_/gtest/src/gtest/googletest/src/gtest.cc