IDZEBRA  2.2.7
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

◆ IDSGML_MARGIN

#define IDSGML_MARGIN   75

Definition at line 30 of file d1_write.c.

◆ PRETTY_FORMAT

#define PRETTY_FORMAT   0

Definition at line 32 of file d1_write.c.

Function Documentation

◆ data1_nodetoidsgml()

char* data1_nodetoidsgml ( data1_handle  dh,
data1_node n,
int  select,
int *  len 
)

◆ indent()

static void indent ( WRBUF  b,
int  col 
)
static

Definition at line 43 of file d1_write.c.

Referenced by nodetobuf(), and nodetoidsgml().

◆ nodetoidsgml()

static int nodetoidsgml ( data1_node n,
int  select,
WRBUF  b,
int  col,
int  pretty_format 
)
static

◆ wordlen()

static int wordlen ( char *  b,
int  max 
)
static

Definition at line 34 of file d1_write.c.

References d1_isspace.

Referenced by nodetoidsgml().

◆ wrbuf_put_xattr()

static void wrbuf_put_xattr ( WRBUF  b,
data1_xattr p 
)
static

◆ wrbuf_write_tag()

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