IDZEBRA  2.1.2
Functions
xpath.c File Reference
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include <yaz/nmem.h>
#include <zebra_xpath.h>

Go to the source code of this file.

Functions

static char * get_xp_part (char **strs, NMEM mem, int *literal)
 
static struct xpath_predicateget_xpath_boolean (char **pr, NMEM mem, char **look, int *literal)
 
static struct xpath_predicateget_xpath_relation (char **pr, NMEM mem, char **look, int *literal)
 
static struct xpath_predicateget_xpath_predicate (char *predicate, NMEM mem)
 
int zebra_parse_xpath_str (const char *xpath_string, struct xpath_location_step *xpath, int max, NMEM mem)
 
void dump_xp_predicate (struct xpath_predicate *p)
 
void dump_xp_steps (struct xpath_location_step *xpath, int no)
 

Function Documentation

void dump_xp_predicate ( struct xpath_predicate p)
void dump_xp_steps ( struct xpath_location_step xpath,
int  no 
)

Definition at line 235 of file xpath.c.

References dump_xp_predicate().

Referenced by zebra_parse_xpath_str().

static char* get_xp_part ( char **  strs,
NMEM  mem,
int *  literal 
)
static

Definition at line 31 of file xpath.c.

References get_xpath_boolean().

Referenced by get_xpath_boolean(), get_xpath_predicate(), and get_xpath_relation().

static struct xpath_predicate * get_xpath_boolean ( char **  pr,
NMEM  mem,
char **  look,
int *  literal 
)
static
static struct xpath_predicate* get_xpath_predicate ( char *  predicate,
NMEM  mem 
)
static

Definition at line 151 of file xpath.c.

References get_xp_part(), and get_xpath_boolean().

Referenced by zebra_parse_xpath_str().

static struct xpath_predicate* get_xpath_relation ( char **  pr,
NMEM  mem,
char **  look,
int *  literal 
)
static
int zebra_parse_xpath_str ( const char *  xpath_string,
struct xpath_location_step xpath,
int  max,
NMEM  mem 
)