Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
bb4c68f9
Commit
bb4c68f9
authored
Jan 04, 2017
by
Francis Dupont
Browse files
[5101] Added an intermediate stream (CID 1398339)
parent
3db1edb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/cc/data.cc
View file @
bb4c68f9
// Copyright (C) 2010-201
6
Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2010-201
7
Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
...
...
@@ -798,11 +798,13 @@ StringElement::toJSON(std::ostream& ss) const {
break
;
default:
if
((
c
>=
0
)
&&
(
c
<
0x20
))
{
ss
<<
"
\\
u"
<<
hex
<<
setw
(
4
)
<<
setfill
(
'0'
)
<<
(
static_cast
<
unsigned
>
(
c
)
&
0xff
);
std
::
ostringstream
esc
;
esc
<<
"
\\
u"
<<
hex
<<
setw
(
4
)
<<
setfill
(
'0'
)
<<
(
static_cast
<
unsigned
>
(
c
)
&
0xff
);
ss
<<
esc
.
str
();
}
else
{
ss
<<
c
;
}
...
...
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