gwenhywfar  5.10.1
Functions
xmlrw.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int GWEN_XML__ReadAllFromIo (GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *sio)
 
int GWEN_XML__ReadData (GWEN_XML_CONTEXT *ctx, GWEN_FAST_BUFFER *fb, GWEN_UNUSED uint32_t flags)
 
int GWEN_XML__ReadTag (GWEN_XML_CONTEXT *ctx, GWEN_FAST_BUFFER *fb, GWEN_UNUSED uint32_t flags, GWEN_BUFFER *dbuf)
 
int GWEN_XML_ReadFile (GWEN_XMLNODE *n, const char *filepath, uint32_t flags)
 
int GWEN_XML_ReadFromFastBuffer (GWEN_XML_CONTEXT *ctx, GWEN_FAST_BUFFER *fb)
 
int GWEN_XMLContext_ReadFromFile (GWEN_XML_CONTEXT *ctx, const char *fname)
 
int GWEN_XMLContext_ReadFromIo (GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *sio)
 
int GWEN_XMLContext_ReadFromString (GWEN_XML_CONTEXT *ctx, const char *text)
 
static int GWEN_XMLNode__WriteCommentToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb, uint32_t flags, const char *encoding, unsigned int ind)
 
static int GWEN_XMLNode__WriteDataToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb, uint32_t flags, const char *encoding, unsigned int ind)
 
static int GWEN_XMLNode__WriteIndents (GWEN_FAST_BUFFER *fb, int ind)
 
static int GWEN_XMLNode__WriteNamespacesToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb)
 
static int GWEN_XMLNode__WritePropertiesToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb, const char *encoding)
 
static int GWEN_XMLNode__WriteTagToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb, uint32_t flags, const char *encoding, unsigned int ind)
 
static int GWEN_XMLNode__WriteToStream (const GWEN_XMLNODE *n, GWEN_FAST_BUFFER *fb, uint32_t flags, const char *encoding, unsigned int ind)
 
GWEN_XMLNODEGWEN_XMLNode_fromString (const char *s, int len, uint32_t flags)
 
int GWEN_XMLNode_toBuffer (const GWEN_XMLNODE *n, GWEN_BUFFER *buf, uint32_t flags)
 
int GWEN_XMLNode_WriteFile (const GWEN_XMLNODE *n, const char *fname, uint32_t flags)
 
int GWEN_XMLNode_WriteToStream (const GWEN_XMLNODE *n, GWEN_XML_CONTEXT *ctx, GWEN_SYNCIO *sio)
 

Function Documentation

◆ GWEN_XML__ReadAllFromIo()

int GWEN_XML__ReadAllFromIo ( GWEN_XML_CONTEXT ctx,
GWEN_SYNCIO sio 
)

◆ GWEN_XML__ReadData()

int GWEN_XML__ReadData ( GWEN_XML_CONTEXT ctx,
GWEN_FAST_BUFFER fb,
GWEN_UNUSED uint32_t  flags 
)

◆ GWEN_XML__ReadTag()

int GWEN_XML__ReadTag ( GWEN_XML_CONTEXT ctx,
GWEN_FAST_BUFFER fb,
GWEN_UNUSED uint32_t  flags,
GWEN_BUFFER dbuf 
)

◆ GWEN_XMLNode__WriteCommentToStream()

static int GWEN_XMLNode__WriteCommentToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
uint32_t  flags,
const char *  encoding,
unsigned int  ind 
)
static

◆ GWEN_XMLNode__WriteDataToStream()

static int GWEN_XMLNode__WriteDataToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
uint32_t  flags,
const char *  encoding,
unsigned int  ind 
)
static

◆ GWEN_XMLNode__WriteIndents()

static int GWEN_XMLNode__WriteIndents ( GWEN_FAST_BUFFER fb,
int  ind 
)
static

Definition at line 29 of file xmlrw.c.

References DBG_INFO, GWEN_FASTBUFFER_WRITEBYTE, and GWEN_LOGDOMAIN.

Referenced by GWEN_XMLNode__WriteCommentToStream(), GWEN_XMLNode__WriteDataToStream(), and GWEN_XMLNode__WriteTagToStream().

Here is the caller graph for this function:

◆ GWEN_XMLNode__WriteNamespacesToStream()

static int GWEN_XMLNode__WriteNamespacesToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb 
)
static

◆ GWEN_XMLNode__WritePropertiesToStream()

static int GWEN_XMLNode__WritePropertiesToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
const char *  encoding 
)
static

Definition at line 106 of file xmlrw.c.

References DBG_INFO, GWEN_Buffer_free(), GWEN_Buffer_GetStart(), GWEN_Buffer_new(), GWEN_Buffer_Reset(), GWEN_FASTBUFFER_WRITEBYTE, GWEN_FASTBUFFER_WRITEFORCED, GWEN_LOGDOMAIN, and GWEN_Text_ConvertCharset().

Referenced by GWEN_XMLNode__WriteTagToStream().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_XMLNode__WriteTagToStream()

static int GWEN_XMLNode__WriteTagToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
uint32_t  flags,
const char *  encoding,
unsigned int  ind 
)
static

◆ GWEN_XMLNode__WriteToStream()

static int GWEN_XMLNode__WriteToStream ( const GWEN_XMLNODE n,
GWEN_FAST_BUFFER fb,
uint32_t  flags,
const char *  encoding,
unsigned int  ind 
)
static