/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/develop/include/rapidjson/prettywriter.h Source File#
prettywriter.h
Go to the documentation of this file.
39 };
void PrettyPrefix(Type type)
Simpler but slower overload.
Definition: prettywriter.h:276
PrettyFormatOptions formatOptions_
Simpler but slower overload.
Definition: prettywriter.h:340
PrettyWriter & SetFormatOptions(PrettyFormatOptions options)
Set pretty writer formatting options.
Definition: prettywriter.h:111
bool Key(const Ch *str, SizeType length, bool copy=false)
Definition: prettywriter.h:188
bool RawNumber(const Ch *str, SizeType length, bool copy=false)
Definition: prettywriter.h:158
bool RawValue(const Ch *json, size_t length, Type type)
Write a raw JSON value.
Definition: prettywriter.h:268
PrettyWriter(StackAllocator *allocator=0, size_t levelDepth=Base::kDefaultLevelDepth)
Definition: prettywriter.h:75
Writer< OutputStream, SourceEncoding, TargetEncoding, StackAllocator, writeFlags > Base
Definition: prettywriter.h:57
void WriteIndent()
Simpler but slower overload.
Definition: prettywriter.h:331
unsigned indentCharCount_
Simpler but slower overload.
Definition: prettywriter.h:339
bool String(const Ch *str)
Simpler but slower overload.
Definition: prettywriter.h:255
PrettyWriter(OutputStream &os, StackAllocator *allocator=0, size_t levelDepth=Base::kDefaultLevelDepth)
Constructor.
Definition: prettywriter.h:65
PrettyWriter & SetIndent(Ch indentChar, unsigned indentCharCount)
Set custom indentation.
Definition: prettywriter.h:99
bool String(const Ch *str, SizeType length, bool copy=false)
Definition: prettywriter.h:166
bool WriteRawValue(const Ch *json, size_t length)
Simpler but slower overload.
Definition: writer.h:581
static const size_t kDefaultLevelDepth
Simpler but slower overload.
Definition: writer.h:336
internal::Stack< StackAllocator > level_stack_
Simpler but slower overload.
Definition: writer.h:631
bool WriteString(const Ch *str, SizeType length)
Simpler but slower overload.
Definition: writer.h:468
bool WriteUint64(uint64_t u64)
Simpler but slower overload.
Definition: writer.h:409
void PutN(FileWriteStream &stream, char c, size_t n)
Implement specialized version of PutN() with memset() for better performance.
Definition: filewritestream.h:124
#define RAPIDJSON_NAMESPACE_BEGIN
provide custom rapidjson namespace (opening expression)
Definition: rapidjson.h:121
#define RAPIDJSON_NAMESPACE_END
provide custom rapidjson namespace (closing expression)
Definition: rapidjson.h:124
auto copy(InputRange &&range, OutputIterator iter) -> decltype(std::copy(std::begin(std::forward< InputRange >(range)), std::end(std::forward< InputRange >(range)), iter))
Definition: algorithm.hpp:14
SizeType StrLen(const Ch *s)
Custom strlen() which works on different character types.
Definition: strfunc.h:32
PrettyFormatOptions
Combination of PrettyWriter format flags.
Definition: prettywriter.h:36
@ kFormatSingleLineArray
Format arrays on a single line.
Definition: prettywriter.h:38
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
Definition: rapidjson.h:429