summaryrefslogtreecommitdiffstats
path: root/include/gtest/internal
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-12-02 23:28:38 (GMT)
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2010-12-02 23:28:38 (GMT)
commitb5eb6ed9e27b7bf80a406e4a38ffe42db43889cc (patch)
treea27bcfbc297ba0f3f3b2b6413166b587f4c8b351 /include/gtest/internal
parent42bf979ce7c107bfc214758e4a511232dd9b2e0a (diff)
downloadgoogletest-b5eb6ed9e27b7bf80a406e4a38ffe42db43889cc.zip
googletest-b5eb6ed9e27b7bf80a406e4a38ffe42db43889cc.tar.gz
googletest-b5eb6ed9e27b7bf80a406e4a38ffe42db43889cc.tar.bz2
Makes gtest print string literals correctly when it contains \x escape sequences. Contributed by Yair Chuchem.
Diffstat (limited to 'include/gtest/internal')
-rw-r--r--include/gtest/internal/gtest-port.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gtest/internal/gtest-port.h b/include/gtest/internal/gtest-port.h
index f08f6df..900a41d 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<unsigned char>(ch)) != 0;
}
+inline bool IsXDigit(char ch) {
+ return isxdigit(static_cast<unsigned char>(ch)) != 0;
+}
inline char ToLower(char ch) {
return static_cast<char>(tolower(static_cast<unsigned char>(ch)));