Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
3f0cf6b6
Unverified
Commit
3f0cf6b6
authored
Feb 15, 2018
by
Gennadiy Civil
Committed by
GitHub
Feb 15, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1450 from pwnall/fix-printers
Fix std::iscntrl use in gtest-printers.cc
parents
42140509
8dd1eb59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
gtest-printers.cc
googletest/src/gtest-printers.cc
+3
-1
No files found.
googletest/src/gtest-printers.cc
View file @
3f0cf6b6
...
@@ -357,8 +357,10 @@ void PrintTo(const wchar_t* s, ostream* os) {
...
@@ -357,8 +357,10 @@ void PrintTo(const wchar_t* s, ostream* os) {
namespace
{
namespace
{
bool
ContainsUnprintableControlCodes
(
const
char
*
str
,
size_t
length
)
{
bool
ContainsUnprintableControlCodes
(
const
char
*
str
,
size_t
length
)
{
const
unsigned
char
*
s
=
reinterpret_cast
<
const
unsigned
char
*>
(
str
);
for
(
size_t
i
=
0
;
i
<
length
;
i
++
)
{
for
(
size_t
i
=
0
;
i
<
length
;
i
++
)
{
char
ch
=
*
str
++
;
unsigned
char
ch
=
*
s
++
;
if
(
std
::
iscntrl
(
ch
))
{
if
(
std
::
iscntrl
(
ch
))
{
switch
(
ch
)
{
switch
(
ch
)
{
case
'\t'
:
case
'\t'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment