Skip to content

Commit ac7e675

Browse files
committed
Format rapidjson
1 parent b705706 commit ac7e675

23 files changed

+14222
-11681
lines changed

packages/video_player_avplay/tizen/inc/rapidjson/allocators.h

Lines changed: 516 additions & 549 deletions
Large diffs are not rendered by default.
Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
// Tencent is pleased to support the open source community by making RapidJSON available.
1+
// Tencent is pleased to support the open source community by making RapidJSON
2+
// available.
23
//
34
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip.
45
//
5-
// Licensed under the MIT License (the "License"); you may not use this file except
6-
// in compliance with the License. You may obtain a copy of the License at
6+
// Licensed under the MIT License (the "License"); you may not use this file
7+
// except in compliance with the License. You may obtain a copy of the License
8+
// at
79
//
810
// http://opensource.org/licenses/MIT
911
//
10-
// Unless required by applicable law or agreed to in writing, software distributed
11-
// under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12-
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
13-
// specific language governing permissions and limitations under the License.
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14+
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15+
// License for the specific language governing permissions and limitations under
16+
// the License.
1417

1518
#ifndef RAPIDJSON_CURSORSTREAMWRAPPER_H_
1619
#define RAPIDJSON_CURSORSTREAMWRAPPER_H_
@@ -30,39 +33,38 @@ RAPIDJSON_DIAG_OFF(4512) // assignment operator could not be generated
3033

3134
RAPIDJSON_NAMESPACE_BEGIN
3235

33-
3436
//! Cursor stream wrapper for counting line and column number if error exists.
3537
/*!
3638
\tparam InputStream Any stream that implements Stream Concept
3739
*/
3840
template <typename InputStream, typename Encoding = UTF8<> >
3941
class CursorStreamWrapper : public GenericStreamWrapper<InputStream, Encoding> {
40-
public:
41-
typedef typename Encoding::Ch Ch;
42+
public:
43+
typedef typename Encoding::Ch Ch;
4244

43-
CursorStreamWrapper(InputStream& is):
44-
GenericStreamWrapper<InputStream, Encoding>(is), line_(1), col_(0) {}
45+
CursorStreamWrapper(InputStream& is)
46+
: GenericStreamWrapper<InputStream, Encoding>(is), line_(1), col_(0) {}
4547

46-
// counting line and column number
47-
Ch Take() {
48-
Ch ch = this->is_.Take();
49-
if(ch == '\n') {
50-
line_ ++;
51-
col_ = 0;
52-
} else {
53-
col_ ++;
54-
}
55-
return ch;
48+
// counting line and column number
49+
Ch Take() {
50+
Ch ch = this->is_.Take();
51+
if (ch == '\n') {
52+
line_++;
53+
col_ = 0;
54+
} else {
55+
col_++;
5656
}
57+
return ch;
58+
}
5759

58-
//! Get the error line number, if error exists.
59-
size_t GetLine() const { return line_; }
60-
//! Get the error column number, if error exists.
61-
size_t GetColumn() const { return col_; }
60+
//! Get the error line number, if error exists.
61+
size_t GetLine() const { return line_; }
62+
//! Get the error column number, if error exists.
63+
size_t GetColumn() const { return col_; }
6264

63-
private:
64-
size_t line_; //!< Current Line
65-
size_t col_; //!< Current Column
65+
private:
66+
size_t line_; //!< Current Line
67+
size_t col_; //!< Current Column
6668
};
6769

6870
#if defined(_MSC_VER) && _MSC_VER <= 1800
@@ -75,4 +77,4 @@ RAPIDJSON_DIAG_POP
7577

7678
RAPIDJSON_NAMESPACE_END
7779

78-
#endif // RAPIDJSON_CURSORSTREAMWRAPPER_H_
80+
#endif // RAPIDJSON_CURSORSTREAMWRAPPER_H_

0 commit comments

Comments
 (0)