JsonCpp project page JsonCpp home page

Namespaces | Macros | Typedefs | Functions | Variables
json_reader.cpp File Reference
#include <json/assertions.h>
#include <json/reader.h>
#include <json/value.h>
#include "json_tool.h"
#include <utility>
#include <cstdio>
#include <cassert>
#include <cstring>
#include <istream>
#include <sstream>
#include <memory>
#include <set>

Go to the source code of this file.

Namespaces

 Json
 JSON (JavaScript Object Notation).
 

Macros

#define snprintf   _snprintf
 

Typedefs

typedef std::auto_ptr< CharReader > Json::CharReaderPtr
 

Functions

static bool Json::containsNewLine (Reader::Location begin, Reader::Location end)
 
static std::string Json::normalizeEOL (Reader::Location begin, Reader::Location end)
 
static void Json::getValidReaderKeys (std::set< std::string > *valid_keys)
 
bool Json::parseFromStream (CharReader::Factory const &, std::istream &, Value *root, std::string *errs)
 Consume entire stream and use its begin/end. More...
 
std::istream & Json::operator>> (std::istream &, Value &)
 Read from 'sin' into 'root'. More...
 

Variables

static int const stackLimit_g = 1000
 
static int stackDepth_g = 0
 

Macro Definition Documentation

#define snprintf   _snprintf

Definition at line 22 of file json_reader.cpp.

Referenced by Json::Reader::good(), and Json::normalizeEOL().

Variable Documentation

int stackDepth_g = 0
static

Definition at line 31 of file json_reader.cpp.

Referenced by Json::Reader::parse().

int const stackLimit_g = 1000
static

Definition at line 30 of file json_reader.cpp.

Referenced by Json::Reader::parse().