yumapro  20.10-12
YumaPro SDK
xpath1_res.h File Reference

XPath 1.0 expression support; result support. More...

#include "xpath.h"
Include dependency graph for xpath1_res.h:

Go to the source code of this file.

Functions

void xpath1_res_malloc_failed_error (xpath_pcb_t *pcb)
 Generate a malloc failed error if OK. More...
 
xpath_result_t * xpath1_res_new_result (xpath_pcb_t *pcb, xpath_restype_t restype)
 Get a new result from the cache or malloc if none available. More...
 
void xpath1_res_free_result (xpath_pcb_t *pcb, xpath_result_t *result)
 Free a result struct: put in cache or free if cache maxed out. More...
 
xpath_resnode_t * xpath1_res_new_obj_resnode (xpath_pcb_t *pcb, boolean dblslash, obj_template_t *objptr)
 Get a new result node from the cache or malloc if none available. More...
 
xpath_resnode_t * xpath1_res_new_val_resnode (xpath_pcb_t *pcb, boolean dblslash, val_value_t *valptr)
 Get a new result node from the cache or malloc if none available. More...
 
xpath_resnode_t * xpath1_res_new_valhdr_resnode (xpath_pcb_t *pcb, boolean dblslash, val_child_hdr_t *valhdr)
 Get a new result node from the cache or malloc if none available. More...
 
xpath_resnode_t * xpath1_res_new_get2_resnode (xpath_pcb_t *pcb, boolean dblslash, val_value_t *nodeptr_val, xpath_get2_cb_t *nodeptr_cb, xpath_get2_form_t get2_form)
 Get a new result node from the cache or malloc if none available. More...
 
void xpath1_res_free_resnode (xpath_pcb_t *pcb, xpath_resnode_t *resnode)
 Free a result node struct: put in cache or free if cache maxed out. More...
 
xpath_result_t * xpath1_res_new_nodeset (xpath_pcb_t *pcb, obj_template_t *obj, val_value_t *val, boolean dblslash)
 Create a new nodeset. More...
 
xpath_result_t * xpath1_res_new_cxt_nodeset (xpath_pcb_t *pcb, boolean dblslash)
 Start a nodeset result with the current context node. More...
 
xpath_result_t * xpath1_res_new_origcxt_nodeset (xpath_pcb_t *pcb, boolean dblslash)
 Start a nodeset result with the original context node. More...
 
val_value_t * xpath1_res_find_entry (xpath_result_t *result, int64 position)
 Find the Nth entry in the node-set result for the position() function. More...
 
int64 xpath1_res_get_count (xpath_result_t *result)
 Get the number of entries in the node-set result to support the count() function. More...
 
int64 xpath1_res_get_position (xpath_result_t *result, val_value_t *valptr)
 Find the position of the specified entry. More...
 
void xpath1_res_add_resnode (xpath_resnode_t *resnode, xpath_result_t *result)
 Add the specified resnode to the result. More...
 
status_t xpath1_res_flatten_result (xpath_pcb_t *pcb, xpath_result_t *result)
 Convert any vahdr resnodes to valptr resnodes for simplified processing. More...
 
xpath_resnode_t * xpath1_res_find_resnode (xpath_pcb_t *pcb, dlq_hdr_t *resultQ, const void *ptr)
 Check if the specified resnode ptr is already in the Q. More...
 
xpath_resnode_t * xpath1_res_find_get2_resnode (xpath_pcb_t *pcb, dlq_hdr_t *resultQ, xpath_get2_node_t *get2node)
 Check if the specified resnode ptr is already in the Q (GET2) More...
 
xpath_resnode_t * xpath1_res_match_resnode (dlq_hdr_t *resultQ, xpath_resnode_t *findnode, boolean match_exact)
 Match the specified result node. More...
 
void xpath1_res_copy_resnode (xpath_resnode_t *srcnode, xpath_resnode_t *dstnode)
 Copy a resnode struct. More...
 
const xmlChar * xpath1_res_get_cxt_name (const xpath_pcb_t *pcb)
 Get the local-name of the context node. More...
 
const xmlChar * xpath1_res_get_resnode_name (const xpath_resnode_t *resnode)
 Get the local-name of the resnode node. More...
 
boolean xpath1_res_match_get2node (xpath_get2_cb_t *cb1, xpath_get2_cb_t *cb2)
 Compare two GET2 CBs. More...
 

Detailed Description

XPath 1.0 expression support; result support.