Live2D  Version 2.0
Live2D rendering engine API reference
 All Classes Namespaces Functions
Json Class Reference

#include <Json.h>

Inheritance diagram for Json:
LDObject

Public Member Functions

 Json ()
 Constructor. More...
 
 Json (const char *buf, int length, int encoding=UTF8)
 
virtual ~Json ()
 Destructor. More...
 
void release ()
 release More...
 
bool parseFile (const char *filepath, int encoding=UTF8)
 
bool parseBytes (const char *buf, int length, int encoding=UTF8)
 
ValuegetRoot ()
 
const char * getError ()
 
bool checkEOF ()
 

Static Public Member Functions

static JsonparseFromBytes (const char *buf, int length, int encoding=UTF8)
 
static JsonparseFromFile (const char *filepath, int encoding=UTF8)
 
- Static Public Member Functions inherited from LDObject
static void * operator new (l2d_size_t size)
 
static void operator delete (void *ptr)
 
static void * operator new[] (l2d_size_t size)
 
static void operator delete[] (void *ptr)
 
static void * operator new (l2d_size_t size, void *ptr)
 
static void operator delete (void *ptr, void *ptr2)
 
static void * operator new (l2d_size_t size, MemoryParam *memParam)
 
static void operator delete (void *ptr, MemoryParam *memParam)
 
static void * operator new (l2d_size_t size, MemoryParam *memParam, const char *filename, int line)
 
static void operator delete (void *ptr, MemoryParam *memParam, const char *filename, int line)
 

Static Public Attributes

static const int UTF8 = 0
 
static const int SJIS = 1
 
- Static Public Attributes inherited from LDObject
static int object_instanceCount = 0
 
static int object_totalCount = 0
 

Protected Member Functions

bool parse_exe (const char *str, int len)
 
live2d::LDString parseString (const char *str, int len, int _pos, int *ret_endpos)
 
ValueparseObject (const char *buf, int len, int _pos, int *ret_endpos)
 
ValueparseArray (const char *buf, int len, int _pos, int *ret_endpos)
 
ValueparseValue (const char *buf, int len, int _pos, int *ret_endpos2)
 

Detailed Description


Constructor & Destructor Documentation

Json ( )

Constructor.


Parameters
buf->
length->
_encoding->
Date
2013/05/21
~Json ( )
virtual

Destructor.


Date
2013/05/21

Member Function Documentation

Value & getRoot ( )

Returns
root ->
Date
2013/05/21
bool parse_exe ( const char *  str,
int  len 
)
protected

Parameters
str->
len->
Returns
Date
2013/05/21
Value * parseArray ( const char *  buf,
int  len,
int  _pos,
int *  ret_endpos 
)
protected

bool parseBytes ( const char *  buf,
int  length,
int  encoding = UTF8 
)

Parameters
buf->
length->
encoding->
Returns
Date
2013/05/21
bool parseFile ( const char *  filepath,
int  encoding = UTF8 
)

Json * parseFromBytes ( const char *  buf,
int  length,
int  encoding = UTF8 
)
static

Json * parseFromFile ( const char *  filepath,
int  encoding = UTF8 
)
static

Value * parseObject ( const char *  buf,
int  len,
int  _pos,
int *  ret_endpos 
)
protected

live2d::LDString parseString ( const char *  str,
int  len,
int  _pos,
int *  ret_endpos 
)
protected

Value * parseValue ( const char *  buf,
int  len,
int  _pos,
int *  ret_endpos2 
)
protected

void release ( )

release


Date
2013/05/21

The documentation for this class was generated from the following files: