26 #include <yaz/proto.h>
27 #include <yaz/yaz-util.h>
31 #define d1_isspace(c) strchr(" \r\n\t\f", c)
32 #define d1_isdigit(c) ((c) <= '9' && (c) >= '0')
36 #define data1_matchstr(s1, s2) yaz_matchstr(s1, s2)
38 #define DATA1_MAX_SYMBOL 31
89 #define D1_MAPTAG_numeric 1
90 #define D1_MAPTAG_string 2
204 #define DATA1T_numeric 1
205 #define DATA1T_string 2
274 #define DATA1N_root 1
278 #define DATA1N_data 3
280 #define DATA1N_variant 4
282 #define DATA1N_comment 5
284 #define DATA1N_preprocess 6
310 #define DATA1I_inctxt 1
312 #define DATA1I_incbin 2
314 #define DATA1I_text 3
320 #define DATA1I_xmltext 6
338 #define DATA1_LOCALDATA 12
360 int (*get_byte)(
void *fh),
void *fh,
363 int (*rf)(
void *,
char *,
size_t),
378 const char *tagname);
385 int select,
int *
len);
388 const char *tagname, NMEM m);
390 const char *tagname, NMEM m);
399 char *zclass,
char *
type);
412 const char *
tag,
const char **attr,
415 const char *
tag,
size_t len,
422 const char *buf,
size_t len,
425 const char *buf,
size_t len,
431 const char *buf,
size_t len,
461 NMEM nmem,
const char *name);
467 const char *
tag,
int num,
470 const char *
tag, Odr_oid *oid,
502 int select,
int *
len);
524 NMEM m,
const char *str);
526 NMEM m,
const char *str,
size_t len);
530 int (*rf)(
void *,
char *,
size_t),
533 void (*fh)(data1_handle dh,
552 const char *tagname, NMEM m);
563 const char *fromcode);
570 const char *default_value);