Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
rapidjson
Commits
9394b844
Commit
9394b844
authored
Sep 29, 2017
by
KaitoHH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unnecessary code
parent
66541b89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
stream.h
include/rapidjson/stream.h
+8
-10
No files found.
include/rapidjson/stream.h
View file @
9394b844
// Tencent is pleased to support the open source community by making RapidJSON available.
//
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except
...
...
@@ -7,9 +7,9 @@
//
// http://opensource.org/licenses/MIT
//
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// Unless required by applicable law or agreed to in writing, software distributed
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
#include "rapidjson.h"
...
...
@@ -104,7 +104,7 @@ inline void PutN(Stream& stream, Ch c, size_t n) {
// GenericStreamWrapper
//! A Stream Wrapper
/*! \tThis string stream is a wrapper for any stream by just forwarding any
/*! \tThis string stream is a wrapper for any stream by just forwarding any
\treceived message to the origin stream.
\note implements Stream concept
*/
...
...
@@ -119,10 +119,8 @@ template <typename InputStream, typename Encoding = UTF8<> >
class
GenericStreamWrapper
{
public
:
typedef
typename
Encoding
::
Ch
Ch
;
size_t
line_
;
size_t
col_
;
GenericStreamWrapper
(
InputStream
&
is
)
:
is_
(
is
)
{}
Ch
Peek
()
const
{
return
is_
.
Peek
();
}
Ch
Take
()
{
return
is_
.
Take
();
}
size_t
Tell
()
{
return
is_
.
Tell
();
}
...
...
@@ -130,10 +128,10 @@ public:
void
Put
(
Ch
ch
)
{
is_
.
Put
(
ch
);
}
void
Flush
()
{
is_
.
Flush
();
}
size_t
PutEnd
(
Ch
*
ch
)
{
return
is_
.
PutEnd
(
ch
);
}
// wrapper for MemoryStream
const
Ch
*
Peek4
()
const
{
return
is_
.
Peek4
();
}
// wrapper for AutoUTFInputStream
UTFType
GetType
()
const
{
return
is_
.
GetType
();
}
bool
HasBOM
()
const
{
return
is_
.
HasBOM
();
}
...
...
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