reader.h File Reference
#include "rapidjson.h"
#include "internal/pow10.h"
#include "internal/stack.h"
#include <csetjmp>
#include <limits>
#include <cmath>
#include <sstream>

Go to the source code of this file.

Classes

struct  rapidjson::BaseReaderHandler< Encoding >
 Default implementation of Handler. More...
 
class  rapidjson::GenericReader< Encoding, Allocator >
 SAX-style JSON parser. Use Reader for UTF8 encoding and default allocator. More...
 

Namespaces

 rapidjson
 

Macros

#define RAPIDJSON_PARSE_ERROR(msg, offset)
 
#define Z16   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
 
#define RAPIDJSON_PUT(x)
 

Typedefs

typedef GenericReader< UTF8<> > rapidjson::Reader
 Reader with UTF8 encoding and default allocator. More...
 

Enumerations

enum  rapidjson::ParseFlag { rapidjson::kParseDefaultFlags = 0 , rapidjson::kParseInsituFlag = 1 }
 Combination of parseFlags. More...
 

Functions

template<typename Stream >
void rapidjson::SkipWhitespace (Stream &stream)
 Skip the JSON white spaces in a stream. More...
 

Macro Definition Documentation

◆ RAPIDJSON_PARSE_ERROR

#define RAPIDJSON_PARSE_ERROR (   msg,
  offset 
)
Value:
RAPIDJSON_MULTILINEMACRO_BEGIN \
parseError_ = msg; \
errorOffset_ = offset; \
longjmp(jmpbuf_, 1); \
RAPIDJSON_MULTILINEMACRO_END

◆ RAPIDJSON_PUT

#define RAPIDJSON_PUT (   x)
Value:
do { \
if (parseFlags & kParseInsituFlag) \
s.Put(x); \
else { \
*stack_.template Push<Ch>() = x; \
++len; \
} \
} while(false)
@ kParseInsituFlag
In-situ(destructive) parsing.
Definition: reader.h:69

◆ Z16

#define Z16   0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0