<libroxml  version="3.0.2" />
contact: tristan.lelong@libroxml.net
Functions
roxml_xpath.h File Reference

xpath execution module More...

#include "roxml_internal.h"

Go to the source code of this file.

Functions

ROXML_INT void roxml_free_xpath (xpath_node_t *xpath, int nb)
 xpath free function
 
ROXML_INT node_t ** roxml_exec_xpath (node_t *root, node_t *n, xpath_node_t *xpath, int index, int *count)
 real xpath execution
 
ROXML_INT int _func_xpath_ignore (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_new_node (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_quote (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_dquote (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_open_parenthesys (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_close_parenthesys (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_open_brackets (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_close_brackets (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_condition_or (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_condition_and (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_path_or (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_operators (roxml_parser_item_t *parser, char *chunk, void *data, int operator, int operator_bis)
 
ROXML_INT int _func_xpath_operator_equal (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_operator_sup (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_operator_inf (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_operator_diff (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_number (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_funcs (roxml_parser_item_t *parser, char *chunk, void *data, int func, char *name)
 
ROXML_INT int _func_xpath_position (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_first (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_last (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_nsuri (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_lname (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_operator_add (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_operator_subs (roxml_parser_item_t *parser, char *chunk, void *data)
 
ROXML_INT int _func_xpath_default (roxml_parser_item_t *parser, char *chunk, void *data)
 

Detailed Description

xpath execution module

(C) Copyright 2014 Tristan Lelong trist.nosp@m.an.l.nosp@m.elong.nosp@m.@lib.nosp@m.roxml.nosp@m..net

SPDX-Licence-Identifier: LGPL-2.1+ The author added a static linking exception, see License.txt.

Definition in file roxml_xpath.h.

Function Documentation

◆ _func_xpath_close_brackets()

ROXML_INT int _func_xpath_close_brackets ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1217 of file roxml_xpath.c.

◆ _func_xpath_close_parenthesys()

ROXML_INT int _func_xpath_close_parenthesys ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1181 of file roxml_xpath.c.

◆ _func_xpath_condition_and()

ROXML_INT int _func_xpath_condition_and ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1292 of file roxml_xpath.c.

◆ _func_xpath_condition_or()

ROXML_INT int _func_xpath_condition_or ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1243 of file roxml_xpath.c.

◆ _func_xpath_default()

ROXML_INT int _func_xpath_default ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1584 of file roxml_xpath.c.

◆ _func_xpath_dquote()

ROXML_INT int _func_xpath_dquote ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1152 of file roxml_xpath.c.

◆ _func_xpath_first()

ROXML_INT int _func_xpath_first ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1510 of file roxml_xpath.c.

◆ _func_xpath_funcs()

ROXML_INT int _func_xpath_funcs ( roxml_parser_item_t parser,
char *  chunk,
void *  data,
int  func,
char *  name 
)

Definition at line 1483 of file roxml_xpath.c.

◆ _func_xpath_ignore()

ROXML_INT int _func_xpath_ignore ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1094 of file roxml_xpath.c.

◆ _func_xpath_last()

ROXML_INT int _func_xpath_last ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1518 of file roxml_xpath.c.

◆ _func_xpath_lname()

ROXML_INT int _func_xpath_lname ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1534 of file roxml_xpath.c.

◆ _func_xpath_new_node()

ROXML_INT int _func_xpath_new_node ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1102 of file roxml_xpath.c.

◆ _func_xpath_nsuri()

ROXML_INT int _func_xpath_nsuri ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1526 of file roxml_xpath.c.

◆ _func_xpath_number()

ROXML_INT int _func_xpath_number ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1462 of file roxml_xpath.c.

◆ _func_xpath_open_brackets()

ROXML_INT int _func_xpath_open_brackets ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1193 of file roxml_xpath.c.

◆ _func_xpath_open_parenthesys()

ROXML_INT int _func_xpath_open_parenthesys ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1169 of file roxml_xpath.c.

◆ _func_xpath_operator_add()

ROXML_INT int _func_xpath_operator_add ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1542 of file roxml_xpath.c.

◆ _func_xpath_operator_diff()

ROXML_INT int _func_xpath_operator_diff ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1454 of file roxml_xpath.c.

◆ _func_xpath_operator_equal()

ROXML_INT int _func_xpath_operator_equal ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1430 of file roxml_xpath.c.

◆ _func_xpath_operator_inf()

ROXML_INT int _func_xpath_operator_inf ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1446 of file roxml_xpath.c.

◆ _func_xpath_operator_subs()

ROXML_INT int _func_xpath_operator_subs ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1563 of file roxml_xpath.c.

◆ _func_xpath_operator_sup()

ROXML_INT int _func_xpath_operator_sup ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1438 of file roxml_xpath.c.

◆ _func_xpath_operators()

ROXML_INT int _func_xpath_operators ( roxml_parser_item_t parser,
char *  chunk,
void *  data,
int  operator,
int  operator_bis 
)

Definition at line 1365 of file roxml_xpath.c.

◆ _func_xpath_path_or()

ROXML_INT int _func_xpath_path_or ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1340 of file roxml_xpath.c.

◆ _func_xpath_position()

ROXML_INT int _func_xpath_position ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1502 of file roxml_xpath.c.

◆ _func_xpath_quote()

ROXML_INT int _func_xpath_quote ( roxml_parser_item_t parser,
char *  chunk,
void *  data 
)

Definition at line 1135 of file roxml_xpath.c.

◆ roxml_exec_xpath()

ROXML_INT node_t ** roxml_exec_xpath ( node_t root,
node_t n,
xpath_node_t xpath,
int  index,
int *  count 
)

real xpath execution

this function exec a decoded xpath strcuture

Parameters
rootthe root of the tree
nthe context node
xpaththe xpath structure
indexthe number of xpath condition in string
countthe pointer to a variable that is filled with the resulting node number
Returns
the resulting node set that have to be freed with roxml_release

Definition at line 898 of file roxml_xpath.c.

◆ roxml_free_xpath()

ROXML_INT void roxml_free_xpath ( xpath_node_t xpath,
int  nb 
)

xpath free function

this function frees the parsed xpath structure

Parameters
xpaththe xpath to free
nbthe number of xpath structures in the table
Returns

Definition at line 64 of file roxml_xpath.c.