From b5eb6ed9e27b7bf80a406e4a38ffe42db43889cc Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Thu, 2 Dec 2010 23:28:38 +0000 Subject: Makes gtest print string literals correctly when it contains \x escape sequences. Contributed by Yair Chuchem. --- include/gtest/internal/gtest-port.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/gtest') diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h index f08f6df4..900a41dc 100644 --- a/include/gtest/internal/gtest-port.h +++ b/include/gtest/internal/gtest-port.h @@ -1462,6 +1462,9 @@ inline bool IsSpace(char ch) { inline bool IsUpper(char ch) { return isupper(static_cast(ch)) != 0; } +inline bool IsXDigit(char ch) { + return isxdigit(static_cast(ch)) != 0; +} inline char ToLower(char ch) { return static_cast(tolower(static_cast(ch))); -- cgit v1.2.3