summaryrefslogtreecommitdiff
path: root/third_party/googletest/src/include/gtest/internal/gtest-string.h
diff options
context:
space:
mode:
authorJeongmo Yang <jm80.yang@samsung.com>2021-07-28 19:19:29 +0900
committerJeongmo Yang <jm80.yang@samsung.com>2021-07-28 19:44:41 +0900
commit3089d37cddba236d897011fae81441e21742b3c2 (patch)
tree0a7a1d27e46c5f4622967445453290cd028281e4 /third_party/googletest/src/include/gtest/internal/gtest-string.h
parentf23bdd269a98e2774c603d1461e235222d94aeac (diff)
parentb41ffb53f1000ab2227c1736d8c1355aa5081c40 (diff)
downloadlibvpx-3089d37cddba236d897011fae81441e21742b3c2.tar.gz
libvpx-3089d37cddba236d897011fae81441e21742b3c2.tar.bz2
libvpx-3089d37cddba236d897011fae81441e21742b3c2.zip
- Remove .gbs.conf to fix build error with upstream branch. Change-Id: I60b6ad46daae0f1b16b7eaafe74766a29be48cb7 Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
Diffstat (limited to 'third_party/googletest/src/include/gtest/internal/gtest-string.h')
-rw-r--r--third_party/googletest/src/include/gtest/internal/gtest-string.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/third_party/googletest/src/include/gtest/internal/gtest-string.h b/third_party/googletest/src/include/gtest/internal/gtest-string.h
index 4c9b6262c..0b2a91a5d 100644
--- a/third_party/googletest/src/include/gtest/internal/gtest-string.h
+++ b/third_party/googletest/src/include/gtest/internal/gtest-string.h
@@ -47,6 +47,7 @@
#endif
#include <string.h>
+#include <cstdint>
#include <string>
#include "gtest/internal/gtest-port.h"
@@ -94,7 +95,8 @@ class GTEST_API_ String {
static const char* Utf16ToAnsi(LPCWSTR utf16_str);
#endif
- // Compares two C strings. Returns true iff they have the same content.
+ // Compares two C strings. Returns true if and only if they have the same
+ // content.
//
// Unlike strcmp(), this function can handle NULL argument(s). A
// NULL C string is considered different to any non-NULL C string,
@@ -107,16 +109,16 @@ class GTEST_API_ String {
// returned.
static std::string ShowWideCString(const wchar_t* wide_c_str);
- // Compares two wide C strings. Returns true iff they have the same
- // content.
+ // Compares two wide C strings. Returns true if and only if they have the
+ // same content.
//
// Unlike wcscmp(), this function can handle NULL argument(s). A
// NULL C string is considered different to any non-NULL C string,
// including the empty string.
static bool WideCStringEquals(const wchar_t* lhs, const wchar_t* rhs);
- // Compares two C strings, ignoring case. Returns true iff they
- // have the same content.
+ // Compares two C strings, ignoring case. Returns true if and only if
+ // they have the same content.
//
// Unlike strcasecmp(), this function can handle NULL argument(s).
// A NULL C string is considered different to any non-NULL C string,
@@ -124,8 +126,8 @@ class GTEST_API_ String {
static bool CaseInsensitiveCStringEquals(const char* lhs,
const char* rhs);
- // Compares two wide C strings, ignoring case. Returns true iff they
- // have the same content.
+ // Compares two wide C strings, ignoring case. Returns true if and only if
+ // they have the same content.
//
// Unlike wcscasecmp(), this function can handle NULL argument(s).
// A NULL C string is considered different to any non-NULL wide C string,
@@ -139,8 +141,8 @@ class GTEST_API_ String {
static bool CaseInsensitiveWideCStringEquals(const wchar_t* lhs,
const wchar_t* rhs);
- // Returns true iff the given string ends with the given suffix, ignoring
- // case. Any string is considered to end with an empty suffix.
+ // Returns true if and only if the given string ends with the given suffix,
+ // ignoring case. Any string is considered to end with an empty suffix.
static bool EndsWithCaseInsensitive(
const std::string& str, const std::string& suffix);
@@ -150,6 +152,9 @@ class GTEST_API_ String {
// Formats an int value as "%X".
static std::string FormatHexInt(int value);
+ // Formats an int value as "%X".
+ static std::string FormatHexUInt32(uint32_t value);
+
// Formats a byte as "%02X".
static std::string FormatByte(unsigned char value);