|
gwenhywfar
4.3.3
|
#include <gwenhywfar/gwenhywfarapi.h>#include <gwenhywfar/inherit.h>#include <stdio.h>#include <gwenhywfar/xml.h>Go to the source code of this file.
Typedefs | |
| typedef struct GWEN_XML_CONTEXT | GWEN_XML_CONTEXT |
| typedef int(* | GWEN_XMLCTX_ADDATTR_FN )(GWEN_XML_CONTEXT *ctx, const char *attrName, const char *attrData) |
| typedef int(* | GWEN_XMLCTX_ADDCOMMENT_FN )(GWEN_XML_CONTEXT *ctx, const char *data) |
| typedef int(* | GWEN_XMLCTX_ADDDATA_FN )(GWEN_XML_CONTEXT *ctx, const char *data) |
| typedef int(* | GWEN_XMLCTX_ENDTAG_FN )(GWEN_XML_CONTEXT *ctx, int closing) |
| typedef int(* | GWEN_XMLCTX_STARTTAG_FN )(GWEN_XML_CONTEXT *ctx, const char *tagName) |
| typedef struct GWEN_XML_CONTEXT GWEN_XML_CONTEXT |
| typedef int(* GWEN_XMLCTX_ADDATTR_FN)(GWEN_XML_CONTEXT *ctx, const char *attrName, const char *attrData) |
| typedef int(* GWEN_XMLCTX_ADDCOMMENT_FN)(GWEN_XML_CONTEXT *ctx, const char *data) |
| typedef int(* GWEN_XMLCTX_ADDDATA_FN)(GWEN_XML_CONTEXT *ctx, const char *data) |
| typedef int(* GWEN_XMLCTX_ENDTAG_FN)(GWEN_XML_CONTEXT *ctx, int closing) |
| typedef int(* GWEN_XMLCTX_STARTTAG_FN)(GWEN_XML_CONTEXT *ctx, const char *tagName) |
| GWENHYWFAR_API void GWEN_XmlCtx_Attach | ( | GWEN_XML_CONTEXT * | ctx | ) |
| GWENHYWFAR_API int GWEN_XmlCtx_DecDepth | ( | GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 124 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_EndTag(), GWEN_XmlCtxStore_StartTag(), and HtmlCtx_EndTag().
| GWENHYWFAR_API void GWEN_XmlCtx_free | ( | GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 66 of file xmlctx.c.
References GWEN_FREE_OBJECT, and GWEN_INHERIT_FINI.
Referenced by GWEN_XML_ReadFile(), GWEN_XMLNode_fromString(), GWEN_XMLNode_toBuffer(), GWEN_XMLNode_WriteFile(), and FOX16_HtmlCtx::~FOX16_HtmlCtx().
| GWENHYWFAR_API GWEN_XMLNODE* GWEN_XmlCtx_GetCurrentHeader | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 176 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_AddAttr(), and GWEN_XmlCtxStore_EndTag().
| GWENHYWFAR_API GWEN_XMLNODE* GWEN_XmlCtx_GetCurrentNode | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 162 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_AddAttr(), GWEN_XmlCtxStore_AddData(), GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().
| GWENHYWFAR_API int GWEN_XmlCtx_GetDepth | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 103 of file xmlctx.c.
Referenced by GWEN_XML_ReadFromFastBuffer().
| GWENHYWFAR_API uint32_t GWEN_XmlCtx_GetFinishedElement | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 134 of file xmlctx.c.
Referenced by GWEN_XML_ReadFromFastBuffer().
| GWENHYWFAR_API uint32_t GWEN_XmlCtx_GetFlags | ( | const GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 89 of file xmlctx.c.
Referenced by GWEN_XML_ReadFromFastBuffer(), GWEN_XmlCtxStore_AddData(), GWEN_XmlCtxStore_StartTag(), and GWEN_XMLNode_WriteToStream().
| GWENHYWFAR_API void GWEN_XmlCtx_IncDepth | ( | GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 117 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_StartTag(), HtmlGroup_Box_StartTag(), HtmlGroup_Table_StartTag(), HtmlGroup_TableRow_StartTag(), and HtmlGroup_UnorderedList_StartTag().
| GWENHYWFAR_API void GWEN_XmlCtx_IncFinishedElement | ( | GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 141 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().
| GWENHYWFAR_API GWEN_XML_CONTEXT* GWEN_XmlCtx_new | ( | uint32_t | flags | ) |
Definition at line 52 of file xmlctx.c.
References GWEN_INHERIT_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_XmlCtxStore_new(), and HtmlCtx_new().
| GWENHYWFAR_API void GWEN_XmlCtx_ResetFinishedElement | ( | GWEN_XML_CONTEXT * | ctx | ) |
Definition at line 148 of file xmlctx.c.
Referenced by GWEN_XML_ReadFromFastBuffer().
| GWENHYWFAR_API GWEN_XMLCTX_ADDATTR_FN GWEN_XmlCtx_SetAddAttrFn | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLCTX_ADDATTR_FN | f | ||
| ) |
Definition at line 219 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_new(), and HtmlCtx_new().
| GWENHYWFAR_API GWEN_XMLCTX_ADDCOMMENT_FN GWEN_XmlCtx_SetAddCommentFn | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLCTX_ADDCOMMENT_FN | f | ||
| ) |
Definition at line 232 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_new(), and HtmlCtx_new().
| GWENHYWFAR_API GWEN_XMLCTX_ADDDATA_FN GWEN_XmlCtx_SetAddDataFn | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLCTX_ADDDATA_FN | f | ||
| ) |
Definition at line 207 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_new(), and HtmlCtx_new().
| GWENHYWFAR_API void GWEN_XmlCtx_SetCurrentHeader | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLNODE * | n | ||
| ) |
Definition at line 169 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().
| GWENHYWFAR_API void GWEN_XmlCtx_SetCurrentNode | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLNODE * | n | ||
| ) |
Definition at line 155 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_EndTag(), GWEN_XmlCtxStore_new(), and GWEN_XmlCtxStore_StartTag().
| GWENHYWFAR_API void GWEN_XmlCtx_SetDepth | ( | GWEN_XML_CONTEXT * | ctx, |
| int | i | ||
| ) |
| GWENHYWFAR_API GWEN_XMLCTX_ENDTAG_FN GWEN_XmlCtx_SetEndTagFn | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLCTX_ENDTAG_FN | f | ||
| ) |
Definition at line 195 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_new(), and HtmlCtx_new().
| GWENHYWFAR_API void GWEN_XmlCtx_SetFlags | ( | GWEN_XML_CONTEXT * | ctx, |
| uint32_t | f | ||
| ) |
| GWENHYWFAR_API GWEN_XMLCTX_STARTTAG_FN GWEN_XmlCtx_SetStartTagFn | ( | GWEN_XML_CONTEXT * | ctx, |
| GWEN_XMLCTX_STARTTAG_FN | f | ||
| ) |
Definition at line 183 of file xmlctx.c.
Referenced by GWEN_XmlCtxStore_new(), and HtmlCtx_new().
| GWENHYWFAR_API GWEN_XML_CONTEXT* GWEN_XmlCtxStore_new | ( | GWEN_XMLNODE * | n, |
| uint32_t | flags | ||
| ) |
Definition at line 318 of file xmlctx.c.
References GWEN_XmlCtx_new(), GWEN_XmlCtx_SetAddAttrFn(), GWEN_XmlCtx_SetAddCommentFn(), GWEN_XmlCtx_SetAddDataFn(), GWEN_XmlCtx_SetCurrentNode(), GWEN_XmlCtx_SetEndTagFn(), GWEN_XmlCtx_SetStartTagFn(), GWEN_XmlCtxStore_AddAttr(), GWEN_XmlCtxStore_AddComment(), GWEN_XmlCtxStore_AddData(), GWEN_XmlCtxStore_EndTag(), and GWEN_XmlCtxStore_StartTag().
Referenced by GWEN_XML_ReadFile(), GWEN_XMLNode_fromString(), GWEN_XMLNode_toBuffer(), and GWEN_XMLNode_WriteFile().
1.8.1.2