The C++ framework for developing highly scalable, high performance servers on Windows platforms.

jsoncpp.cpp File Reference


Namespaces

namespace  Json

Defines

#define JSON_ASSERT_UNREACHABLE   assert(false)
#define ALIGNAS(byte_alignment)

Typedefs

typedef char UIntToStringBuffer [uintToStringBufferSize]
typedef
std::auto_ptr
< CharReader > 
CharReaderPtr
typedef
std::auto_ptr
< StreamWriter > 
StreamWriterPtr

Enumerations

enum  { uintToStringBufferSize = 3 * sizeof(LargestUInt) + 1, uintToStringBufferSize = 3 * sizeof(LargestUInt) + 1 }

Functions

static std::string codePointToUTF8 (unsigned int cp)
 Converts a unicode code-point to UTF-8.
static bool isControlCharacter (char ch)
 Returns true if ch is a control character (in range [0,32[).
static void uintToString (LargestUInt value, char *&current)
 Converts an unsigned integer to string.
static void fixNumericLocale (char *begin, char *end)
 Change ',' to '.
static bool containsNewLine (Reader::Location begin, Reader::Location end)
static std::string normalizeEOL (Reader::Location begin, Reader::Location end)
static void getValidReaderKeys (std::set< std::string > *valid_keys)
bool parseFromStream (CharReader::Factory const &, std::istream &, Value *root, std::string *errs)
 Consume entire stream and use its begin/end.
JSON_API std::istream & operator>> (std::istream &, Value &)
static const
unsigned char 
ALIGNAS (8) kNull[sizeof(Value)]
template<typename T, typename U>
static bool InRange (double d, T min, U max)
static char * duplicateStringValue (const char *value, unsigned int length=unknown)
 Duplicates the specified string value.
static void releaseStringValue (char *value)
 Free the string duplicated by duplicateStringValue().
static bool IsIntegral (double d)
static bool containsControlCharacter (const char *str)
std::string JSON_API valueToString (LargestInt value)
std::string JSON_API valueToString (LargestUInt value)
std::string JSON_API valueToString (double value)
std::string JSON_API valueToString (bool value)
std::string JSON_API valueToQuotedString (const char *value)
static void getValidWriterKeys (std::set< std::string > *valid_keys)
std::string writeString (StreamWriter::Factory const &factory, Value const &root)
JSON_API std::ostream & operator<< (std::ostream &, const Value &root)

Variables

static int const stackLimit_g = 1000
static int stackDepth_g = 0
static const Value null
const unsigned char & kNullRef = kNull[0]
static const unsigned int unknown = (unsigned)-1
 Unknown size marker.


Define Documentation

#define ALIGNAS ( byte_alignment   ) 

#define JSON_ASSERT_UNREACHABLE   assert(false)


Variable Documentation

int stackDepth_g = 0 [static]

int const stackLimit_g = 1000 [static]


Generated on Sun Sep 12 19:06:43 2021 for The Server Framework - v7.4 by doxygen 1.5.3