IDZEBRA 2.2.11
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_predicate * get_xpath_boolean (char **pr, NMEM mem, char **look, int *literal)
static struct xpath_predicate * get_xpath_relation (char **pr, NMEM mem, char **look, int *literal)
static struct xpath_predicate * get_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

◆ dump_xp_predicate()

◆ dump_xp_steps()

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().

◆ get_xp_part()

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

Definition at line 31 of file xpath.c.

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

◆ get_xpath_boolean()

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

◆ get_xpath_predicate()

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().

◆ get_xpath_relation()

struct xpath_predicate * get_xpath_relation ( char ** pr,
NMEM mem,
char ** look,
int * literal )
static

◆ zebra_parse_xpath_str()

int zebra_parse_xpath_str ( const char * xpath_string,
struct xpath_location_step * xpath,
int max,
NMEM mem )