JsonCpp project page JsonCpp home page

src/lib_json/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>
Include dependency graph for json_reader.cpp:

Go to the source code of this file.

Namespaces

namespace  Json
 

JSON (JavaScript Object Notation).


Defines

#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.
std::istream & Json::operator>> (std::istream &, Value &)
 Read from 'sin' into 'root'.

Variables

static int const stackLimit_g = 1000
static int stackDepth_g = 0

Define Documentation

#define snprintf   _snprintf

Definition at line 22 of file json_reader.cpp.

Referenced by Json::valueToString().


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.