Classes | Defines | Typedefs | Enumerations | Functions | Variables
ultrajsondec.c File Reference
#include "ultrajson.h"
#include <math.h>
#include <assert.h>
#include <string.h>
#include <limits.h>
#include <wchar.h>
Include dependency graph for ultrajsondec.c:

Go to the source code of this file.

Classes

struct  DecoderState

Defines

#define RETURN_JSOBJ_NULLCHECK(_expr)   return(_expr);

Typedefs

typedef JSOBJ(* PFN_DECODER )(struct DecoderState *ds)

Enumerations

enum  DECODESTRINGSTATE { DS_ISNULL = 0x32, DS_ISQUOTE, DS_ISESCAPE, DS_UTFLENERROR }

Functions

static void ClearError (struct DecoderState *ds)
double createDouble (double intNeg, double intValue, double frcValue, int frcDecimalCount)
JSOBJ FASTCALL_MSVC decode_any (struct DecoderState *ds) FASTCALL_ATTR
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_array (struct DecoderState *ds)
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_false (struct DecoderState *ds)
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_null (struct DecoderState *ds)
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_numeric (struct DecoderState *ds)
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_object (struct DecoderState *ds)
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_string (struct DecoderState *ds)
FASTCALL_ATTR JSOBJ FASTCALL_MSVC decode_true (struct DecoderState *ds)
JSOBJ JSON_DecodeObject (JSONObjectDecoder *dec, const char *buffer, size_t cbBuffer)
static JSOBJ SetError (struct DecoderState *ds, int offset, const char *message)
FASTCALL_ATTR void FASTCALL_MSVC SkipWhitespace (struct DecoderState *ds)

Variables

static const JSUINT8 g_decoderLookup [256]

Define Documentation

#define RETURN_JSOBJ_NULLCHECK (   _expr)    return(_expr);

Definition at line 54 of file ultrajsondec.c.


Typedef Documentation

typedef JSOBJ(* PFN_DECODER)(struct DecoderState *ds)

Definition at line 53 of file ultrajsondec.c.


Enumeration Type Documentation

Enumerator:
DS_ISNULL 
DS_ISQUOTE 
DS_ISESCAPE 
DS_UTFLENERROR 

Definition at line 375 of file ultrajsondec.c.


Function Documentation

static void ClearError ( struct DecoderState ds) [static]

Definition at line 70 of file ultrajsondec.c.

double createDouble ( double  intNeg,
double  intValue,
double  frcValue,
int  frcDecimalCount 
)

Definition at line 56 of file ultrajsondec.c.

Definition at line 783 of file ultrajsondec.c.

Definition at line 641 of file ultrajsondec.c.

Definition at line 308 of file ultrajsondec.c.

Definition at line 332 of file ultrajsondec.c.

Definition at line 76 of file ultrajsondec.c.

Definition at line 707 of file ultrajsondec.c.

Definition at line 405 of file ultrajsondec.c.

Definition at line 288 of file ultrajsondec.c.

JSOBJ JSON_DecodeObject ( JSONObjectDecoder dec,
const char *  buffer,
size_t  cbBuffer 
)

Definition at line 825 of file ultrajsondec.c.

static JSOBJ SetError ( struct DecoderState ds,
int  offset,
const char *  message 
) [static]

Definition at line 63 of file ultrajsondec.c.

Definition at line 352 of file ultrajsondec.c.


Variable Documentation

const JSUINT8 g_decoderLookup[256] [static]
Initial value:
 
{
 DS_ISNULL, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, DS_ISQUOTE, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, DS_ISESCAPE, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 
 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 
 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 
 4, 4, 4, 4, 4, 4, 4, 4, DS_UTFLENERROR, DS_UTFLENERROR, DS_UTFLENERROR, DS_UTFLENERROR, DS_UTFLENERROR, DS_UTFLENERROR, DS_UTFLENERROR, DS_UTFLENERROR, 
}

Definition at line 384 of file ultrajsondec.c.



rosbridge_library
Author(s): Jonathan Mace
autogenerated on Thu Jan 2 2014 11:53:35