Writer with indentation and spacing.
More...
#include <prettywriter.h>
|
| PrettyWriter (Stream &stream, Allocator *allocator=0, size_t levelDepth=Base::kDefaultLevelDepth) |
| Constructor. More...
|
|
PrettyWriter & | SetIndent (Ch indentChar, unsigned indentCharCount) |
| Set custom indentation. More...
|
|
PrettyWriter & | String (const Ch *str) |
| Simpler but slower overload. More...
|
|
|
PrettyWriter & | Null () |
PrettyWriter & | Bool (bool b) |
local | Bool ( local b) |
PrettyWriter & | Int (int i) |
PrettyWriter & | Uint (unsigned u) |
local | Uint ( local u) |
PrettyWriter & | Int64 (int64_t i64) |
PrettyWriter & | Uint64 (uint64_t u64) |
PrettyWriter & | Double (double d) |
PrettyWriter & | String (const Ch *str, SizeType length, bool copy=false) |
PrettyWriter & | StartObject () |
PrettyWriter & | EndObject (SizeType memberCount=0) |
local | EndObject ( local 0) |
PrettyWriter & | StartArray () |
PrettyWriter & | EndArray (SizeType memberCount=0) |
local | EndArray ( local 0) |
| Writer (Stream &stream, Allocator *allocator=0, size_t levelDepth=kDefaultLevelDepth) |
Writer & | String (const Ch *str) |
| Simpler but slower overload. More...
|
|
Writer & | Null () |
Writer & | Bool (bool b) |
local | Bool ( local b) |
Writer & | Int (int i) |
Writer & | Uint (unsigned u) |
Writer & | Int64 (int64_t i64) |
Writer & | Uint64 (uint64_t u64) |
Writer & | Double (double d) |
Writer & | String (const Ch *str, SizeType length, bool copy=false) |
var | String ( var str, var length, var false) |
local | String ( local str, local length, local false) |
Writer & | StartObject () |
Writer & | EndObject (SizeType memberCount=0) |
local | EndObject ( local 0) |
Writer & | StartArray () |
Writer & | EndArray (SizeType elementCount=0) |
local | EndArray ( local 0) |
template<typename Stream, typename Encoding = UTF8<>, typename Allocator = MemoryPoolAllocator<>>
class rapidjson::PrettyWriter< Stream, Encoding, Allocator >
Writer with indentation and spacing.
- Template Parameters
-
Constructor.
- Parameters
-
stream | Output stream. |
allocator | User supplied allocator. If it is null, it will create a private one. |
levelDepth | Initial capacity of |
Constructor.
- Parameters
-
stream | Output stream. |
allocator | User supplied allocator. If it is null, it will create a private one. |
levelDepth | Initial capacity of |
Constructor.
- Parameters
-
stream | Output stream. |
allocator | User supplied allocator. If it is null, it will create a private one. |
levelDepth | Initial capacity of |
var EndArray |
( |
var |
memberCount = 0 ) | |
|
|
inline |
local EndArray |
( |
local |
memberCount = 0 ) | |
|
|
inline |
var EndObject |
( |
var |
memberCount = 0 ) | |
|
|
inline |
local EndObject |
( |
local |
memberCount = 0 ) | |
|
|
inline |
void PrettyPrefix |
( |
Type |
type) | |
|
|
inlineprotected |
var PrettyPrefix |
( |
var |
type) | |
|
|
inlineprotected |
local PrettyPrefix |
( |
local |
type) | |
|
|
inlineprotected |
Set custom indentation.
- Parameters
-
indentChar | Character for indentation. Must be whitespace character (' ', '', '
', ''). |
indentCharCount | Number of indent characters for each indentation level. |
- Note
- The default indentation is 4 spaces.
var SetIndent |
( |
var |
indentChar, |
|
|
var |
indentCharCount |
|
) |
| |
|
inline |
Set custom indentation.
- Parameters
-
indentChar | Character for indentation. Must be whitespace character (' ', '', '
', ''). |
indentCharCount | Number of indent characters for each indentation level. |
- Note
- The default indentation is 4 spaces.
local SetIndent |
( |
local |
indentChar, |
|
|
local |
indentCharCount |
|
) |
| |
|
inline |
Set custom indentation.
- Parameters
-
indentChar | Character for indentation. Must be whitespace character (' ', '', '
', ''). |
indentCharCount | Number of indent characters for each indentation level. |
- Note
- The default indentation is 4 spaces.
var String |
( |
var |
str, |
|
|
var |
length, |
|
|
var |
copy = false |
|
) |
| |
|
inline |
local String |
( |
local |
str, |
|
|
local |
length, |
|
|
local |
copy = false |
|
) |
| |
|
inline |
Simpler but slower overload.
Simpler but slower overload.
local String |
( |
local |
str) | |
|
|
inline |
Simpler but slower overload.
local Uint64 |
( |
local |
u64) | |
|
|
inline |
unsigned indentCharCount_ |
|
protected |
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x/extensions/CocoStudio/Json/rapidjson/prettywriter.h