IDZEBRA  2.1.2
Macros | Functions
d1_write.c File Reference
#include <string.h>
#include <idzebra/data1.h>
#include <yaz/wrbuf.h>

Go to the source code of this file.

Macros

#define IDSGML_MARGIN   75
 
#define PRETTY_FORMAT   0
 

Functions

static int wordlen (char *b, int max)
 
static void indent (WRBUF b, int col)
 
static void wrbuf_put_xattr (WRBUF b, data1_xattr *p)
 
static void wrbuf_write_tag (WRBUF b, const char *tag, int opening)
 
static int nodetoidsgml (data1_node *n, int select, WRBUF b, int col, int pretty_format)
 
char * data1_nodetoidsgml (data1_handle dh, data1_node *n, int select, int *len)
 

Macro Definition Documentation

#define IDSGML_MARGIN   75

Definition at line 30 of file d1_write.c.

Referenced by nodetoidsgml().

#define PRETTY_FORMAT   0

Definition at line 32 of file d1_write.c.

Function Documentation

char* data1_nodetoidsgml ( data1_handle  dh,
data1_node n,
int  select,
int *  len 
)
static void indent ( WRBUF  b,
int  col 
)
static

Definition at line 43 of file d1_write.c.

Referenced by nodetoidsgml().

static int nodetoidsgml ( data1_node n,
int  select,
WRBUF  b,
int  col,
int  pretty_format 
)
static
static int wordlen ( char *  b,
int  max 
)
static

Definition at line 34 of file d1_write.c.

References d1_isspace.

Referenced by nodetoidsgml().

static void wrbuf_put_xattr ( WRBUF  b,
data1_xattr p 
)
static
static void wrbuf_write_tag ( WRBUF  b,
const char *  tag,
int  opening 
)
static

Definition at line 72 of file d1_write.c.

Referenced by data1_nodetoidsgml(), and nodetoidsgml().