IDZEBRA 2.2.11
d1_if.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <idzebra/data1.h>
#include <yaz/log.h>

Go to the source code of this file.

Macros

#define MAX_TAG_SIZE   50

Functions

char data1_ScanNextToken (char *pBuffer, char **pPosInBuffer, char *pBreakChars, char *pWhitespaceChars, char *pTokenBuffer)
char * data1_getNodeValue (data1_node *node, char *pTagPath)
data1_node * data1_LookupNode (data1_node *node, char *pTagPath)
int data1_CountOccurences (data1_node *node, char *pTagPath)
 Count the number of occurences of the last instance on a tagpath.

Macro Definition Documentation

◆ MAX_TAG_SIZE

#define MAX_TAG_SIZE   50

Definition at line 110 of file d1_if.c.

Referenced by data1_LookupNode().

Function Documentation

◆ data1_CountOccurences()

int data1_CountOccurences ( data1_node * node,
char * pTagPath )

Count the number of occurences of the last instance on a tagpath.

Parameters
node: The root of the tree we wish to look for occurences in
pTagPath: The tagpath we want to count the occurences of...

Definition at line 253 of file d1_if.c.

References data1_node::child, data1_LookupNode(), DATA1N_tag, data1_node::next, data1_node::parent, data1_node::tag, data1_node::u, and data1_node::which.

◆ data1_getNodeValue()

char * data1_getNodeValue ( data1_node * node,
char * pTagPath )

◆ data1_LookupNode()

◆ data1_ScanNextToken()

char data1_ScanNextToken ( char * pBuffer,
char ** pPosInBuffer,
char * pBreakChars,
char * pWhitespaceChars,
char * pTokenBuffer )

Definition at line 39 of file d1_if.c.

Referenced by data1_LookupNode().