ITS
|
Go to the source code of this file.
Macros | |
#define | WHITESPACE(c) (_charclass[(unsigned char)(c)] == 1) |
#define | ALNUM(c) (_charclass[(unsigned char)(c)] >= 2) |
#define | ALPHA(c) (_charclass[(unsigned char)(c)] == 3) |
#define | EXCLAM 0x21 /* '!' */ |
#define | CQUOTE 0x22 /* '"' */ |
#define | CDASH 0x2d /* '-' */ |
#define | CSLASH 0x2f /* '/' */ |
#define | LANGLE 0x3c /* '<' */ |
#define | CEQUAL 0x3d /* '=' */ |
#define | RANGLE 0x3e /* '>' */ |
#define | CQUEST 0x3f /* '?' */ |
#define | TOKEN_CB_CALL(type, _ns, _current_too, _final) |
#define | TOKEN_CB(_type, _ns, _current_too) TOKEN_CB_CALL(_type, _ns, _current_too, 0) |
#define | TOKEN_CB_FINAL(_type, _ns, _current_too) TOKEN_CB_CALL(final_chunk_type[_type], _ns, _current_too, 1) |
Functions | |
ssize_t | pxml_parse (int *stateContext, const void *xmlbuf, size_t size, pxml_callback_f *cb, void *key) |
Variables | |
static pxml_chunk_type_e | final_chunk_type [] |
static int | _charclass [256] |
#define ALNUM | ( | c | ) | (_charclass[(unsigned char)(c)] >= 2) |
Definition at line 46 of file xer_support.c.
#define ALPHA | ( | c | ) | (_charclass[(unsigned char)(c)] == 3) |
Definition at line 47 of file xer_support.c.
Referenced by pxml_parse().
#define CDASH 0x2d /* '-' */ |
Definition at line 52 of file xer_support.c.
Referenced by pxml_parse().
#define CEQUAL 0x3d /* '=' */ |
Definition at line 55 of file xer_support.c.
Referenced by pxml_parse().
#define CQUEST 0x3f /* '?' */ |
Definition at line 57 of file xer_support.c.
#define CQUOTE 0x22 /* '"' */ |
Definition at line 51 of file xer_support.c.
Referenced by pxml_parse().
#define CSLASH 0x2f /* '/' */ |
Definition at line 53 of file xer_support.c.
Referenced by pxml_parse().
#define EXCLAM 0x21 /* '!' */ |
Definition at line 50 of file xer_support.c.
Referenced by pxml_parse().
#define LANGLE 0x3c /* '<' */ |
Definition at line 54 of file xer_support.c.
Referenced by pxml_parse().
#define RANGLE 0x3e /* '>' */ |
Definition at line 56 of file xer_support.c.
Referenced by pxml_parse().
#define TOKEN_CB | ( | _type, | |
_ns, | |||
_current_too | |||
) | TOKEN_CB_CALL(_type, _ns, _current_too, 0) |
Definition at line 79 of file xer_support.c.
Referenced by pxml_parse().
#define TOKEN_CB_CALL | ( | type, | |
_ns, | |||
_current_too, | |||
_final | |||
) |
Definition at line 60 of file xer_support.c.
#define TOKEN_CB_FINAL | ( | _type, | |
_ns, | |||
_current_too | |||
) | TOKEN_CB_CALL(final_chunk_type[_type], _ns, _current_too, 1) |
Definition at line 82 of file xer_support.c.
Referenced by pxml_parse().
#define WHITESPACE | ( | c | ) | (_charclass[(unsigned char)(c)] == 1) |
Definition at line 45 of file xer_support.c.
Referenced by pxml_parse().
enum pstate_e |
Enumerator | |
---|---|
ST_TEXT | |
ST_TAG_START | |
ST_TAG_BODY | |
ST_TAG_QUOTE_WAIT | |
ST_TAG_QUOTED_STRING | |
ST_TAG_UNQUOTED_STRING | |
ST_COMMENT_WAIT_DASH1 | |
ST_COMMENT_WAIT_DASH2 | |
ST_COMMENT | |
ST_COMMENT_CLO_DASH2 | |
ST_COMMENT_CLO_RT |
Definition at line 11 of file xer_support.c.
ssize_t pxml_parse | ( | int * | stateContext, |
const void * | xmlbuf, | ||
size_t | size, | ||
pxml_callback_f * | cb, | ||
void * | key | ||
) |
Definition at line 88 of file xer_support.c.
References ALPHA, CDASH, CEQUAL, CQUOTE, CSLASH, EXCLAM, LANGLE, PXML_COMMENT, PXML_TAG, PXML_TEXT, RANGLE, ST_COMMENT, ST_COMMENT_CLO_DASH2, ST_COMMENT_CLO_RT, ST_COMMENT_WAIT_DASH1, ST_COMMENT_WAIT_DASH2, ST_TAG_BODY, ST_TAG_QUOTE_WAIT, ST_TAG_QUOTED_STRING, ST_TAG_START, ST_TAG_UNQUOTED_STRING, ST_TEXT, TOKEN_CB, TOKEN_CB_FINAL, and WHITESPACE.
Referenced by xer_next_token().
|
static |
Definition at line 35 of file xer_support.c.
|
static |
Definition at line 25 of file xer_support.c.