/home/dko/projects/mobilec/trunk/src/mxml-2.2.2/mxml-index.c File Reference

#include "config.h"
#include "mxml.h"

Go to the source code of this file.


Functions

static int index_compare (mxml_index_t *ind, mxml_node_t *first, mxml_node_t *second)
static int index_find (mxml_index_t *ind, const char *element, const char *value, mxml_node_t *node)
static void index_sort (mxml_index_t *ind, int left, int right)
mxml_node_t * mxmlIndexFind (mxml_index_t *ind, const char *element, const char *value)
mxml_index_t * mxmlIndexNew (mxml_node_t *node, const char *element, const char *attr)

Function Documentation

static int index_compare ( mxml_index_t * ind,
mxml_node_t * first,
mxml_node_t * second
) [static]

Definition at line 494 of file mxml-index.c.

References mxml_index_s::attr, mxml_value_u::element, mxmlElementGetAttr(), mxml_value_s::name, and mxml_node_s::value.

Referenced by index_sort().

static int index_find ( mxml_index_t * ind,
const char * element,
const char * value,
mxml_node_t * node
) [static]

Definition at line 533 of file mxml-index.c.

References mxml_index_s::attr, mxml_value_u::element, mxmlElementGetAttr(), mxml_value_s::name, and mxml_node_s::value.

Referenced by mxmlIndexFind().

static void index_sort ( mxml_index_t * ind,
int left,
int right
) [static]

Definition at line 576 of file mxml-index.c.

References index_compare(), and mxml_index_s::nodes.

Referenced by mxmlIndexNew().

void mxmlIndexDelete ( mxml_index_t * ind )

Definition at line 58 of file mxml-index.c.

References mxml_index_s::alloc_nodes, mxml_index_s::attr, and mxml_index_s::nodes.

Referenced by main(), and mxmlIndexNew().

mxml_node_t* mxmlIndexEnum ( mxml_index_t * ind )

Definition at line 88 of file mxml-index.c.

References mxml_index_s::cur_node, mxml_index_s::nodes, and mxml_index_s::num_nodes.

Referenced by main(), and mxmlIndexFind().

mxml_node_t* mxmlIndexFind ( mxml_index_t * ind,
const char * element,
const char * value
)

Definition at line 118 of file mxml-index.c.

References mxml_index_s::attr, mxml_index_s::cur_node, index_find(), mxmlIndexEnum(), mxml_index_s::nodes, and mxml_index_s::num_nodes.

Referenced by main().

mxml_index_t* mxmlIndexNew ( mxml_node_t * node,
const char * element,
const char * attr
)

Definition at line 301 of file mxml-index.c.

References mxml_index_s::alloc_nodes, mxml_index_s::attr, mxml_value_u::element, index_sort(), MXML_DESCEND, mxml_error(), mxmlElementGetAttr(), mxmlFindElement(), mxmlIndexDelete(), mxml_value_s::name, mxml_index_s::nodes, mxml_index_s::num_nodes, and mxml_node_s::value.

Referenced by main().

mxml_node_t* mxmlIndexReset ( mxml_index_t * ind )

Definition at line 459 of file mxml-index.c.

References mxml_index_s::cur_node, mxml_index_s::nodes, and mxml_index_s::num_nodes.

Referenced by main().


Generated on Tue Oct 28 17:03:24 2008 for Mobile-C by doxygen 1.5.5

AltStyle によって変換されたページ (->オリジナル) /