Version 7.0
Copyright © 2021 Lowell D. Thomas
APG
… an ABNF Parser Generator
Data Structures
jsonp.h File Reference

Private JSON component header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  string_r
 This is the "relative" string developed during parsing. More...
 
struct  value_r
 This is the "relative" value developed during parsing. More...
 
struct  frame
 Each value is a node in the parse tree. More...
 
struct  json
 The object context. For intenrnal use only. More...
 
struct  json_iterator
 A JSON interator object context. More...
 

Macros

Private Macros.

For internal object use only.

#define TAB   9
 
#define LF   10
 
#define CR   13
 
#define LINE_LEN   16
 
#define LINE_LEN4   4
 
#define LINE_LEN8   8
 
#define LINE_LEN12   12
 

Private Functions

Private but required across source files.

#define JSON_UTF16_MATCH   0
 
#define JSON_UTF16_NOMATCH   1
 
#define JSON_UTF16_BAD_HIGH   2
 
#define JSON_UTF16_BAD_LOW   3
 
void vJsonGrammarRuleCallbacks (void *vpParserCtx)
 
json_iteratorspJsonIteratorCtor (json *spJson)
 Private function for internal object use only. Never called by the application. More...
 
aint uiUtf16_1 (char *cpHex, uint32_t *uipChar)
 
aint uiUtf16_2 (char *cpHex, uint32_t *uipChar)
 
uint32_t uiUtf8_2byte (char *cpBytes)
 
uint32_t uiUtf8_3byte (char *cpBytes)
 
uint32_t uiUtf8_4byte (char *cpBytes)
 

Detailed Description

Private JSON component header file.

Definition in file jsonp.h.

Macro Definition Documentation

◆ CR

#define CR   13

Definition at line 41 of file jsonp.h.

◆ JSON_UTF16_BAD_HIGH

#define JSON_UTF16_BAD_HIGH   2

Definition at line 174 of file jsonp.h.

◆ JSON_UTF16_BAD_LOW

#define JSON_UTF16_BAD_LOW   3

Definition at line 175 of file jsonp.h.

◆ JSON_UTF16_MATCH

#define JSON_UTF16_MATCH   0

Definition at line 172 of file jsonp.h.

◆ JSON_UTF16_NOMATCH

#define JSON_UTF16_NOMATCH   1

Definition at line 173 of file jsonp.h.

◆ LF

#define LF   10

Definition at line 40 of file jsonp.h.

◆ LINE_LEN

#define LINE_LEN   16

Definition at line 42 of file jsonp.h.

◆ LINE_LEN12

#define LINE_LEN12   12

Definition at line 45 of file jsonp.h.

◆ LINE_LEN4

#define LINE_LEN4   4

Definition at line 43 of file jsonp.h.

◆ LINE_LEN8

#define LINE_LEN8   8

Definition at line 44 of file jsonp.h.

◆ TAB

#define TAB   9

Definition at line 39 of file jsonp.h.

Function Documentation

◆ spJsonIteratorCtor()

json_iterator* spJsonIteratorCtor ( json spJson)

Private function for internal object use only. Never called by the application.

JSON iterators are constructed internally by the JSON object. These functions will return iterators.

Definition at line 561 of file json.c.

◆ uiUtf16_1()

aint uiUtf16_1 ( char *  cpHex,
uint32_t *  uipChar 
)

Definition at line 74 of file parser-callbacks.c.

◆ uiUtf16_2()

aint uiUtf16_2 ( char *  cpHex,
uint32_t *  uipChar 
)

Definition at line 82 of file parser-callbacks.c.

◆ uiUtf8_2byte()

uint32_t uiUtf8_2byte ( char *  cpBytes)

Definition at line 53 of file parser-callbacks.c.

◆ uiUtf8_3byte()

uint32_t uiUtf8_3byte ( char *  cpBytes)

Definition at line 59 of file parser-callbacks.c.

◆ uiUtf8_4byte()

uint32_t uiUtf8_4byte ( char *  cpBytes)

Definition at line 66 of file parser-callbacks.c.

◆ vJsonGrammarRuleCallbacks()

void vJsonGrammarRuleCallbacks ( void *  vpParserCtx)

Definition at line 718 of file parser-callbacks.c.

APG Version 7.0 is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.