pazpar2
1.14.1
|
Go to the source code of this file.
Data Structures | |
struct | marchash |
struct | marcfield |
struct | marcsubfield |
Macros | |
#define | MARCHASH_MASK 127 |
Functions | |
struct marchash * | marchash_create (NMEM nmem) |
void | marchash_ingest_marcxml (struct marchash *marchash, xmlNodePtr rec_node) |
struct marcfield * | marchash_add_field (struct marchash *marchash, const char *key, const char *value) |
struct marcsubfield * | marchash_add_subfield (struct marchash *marchash, struct marcfield *field, const char key, const char *value) |
struct marcfield * | marchash_get_field (struct marchash *marchash, const char *key, struct marcfield *last) |
struct marcsubfield * | marchash_get_subfield (char key, struct marcfield *field, struct marcsubfield *last) |
char * | marchash_catenate_subfields (struct marcfield *field, const char *delim, NMEM nmem) |
#define MARCHASH_MASK 127 |
Definition at line 23 of file marchash.h.
struct marcfield* marchash_add_field | ( | struct marchash * | marchash, |
const char * | key, | ||
const char * | value | ||
) |
Definition at line 141 of file marchash.c.
References jenkins_hash(), marcfield::key, MARCHASH_MASK, marcfield::next, marchash::nmem, strtrimcpy(), marcfield::subfields, marchash::table, and marcfield::val.
Referenced by marchash_ingest_marcxml().
struct marcsubfield* marchash_add_subfield | ( | struct marchash * | marchash, |
struct marcfield * | field, | ||
const char | key, | ||
const char * | value | ||
) |
Definition at line 179 of file marchash.c.
References marcsubfield::key, marcsubfield::next, marchash::nmem, marcfield::subfields, and marcsubfield::val.
Referenced by marchash_ingest_marcxml().
char* marchash_catenate_subfields | ( | struct marcfield * | field, |
const char * | delim, | ||
NMEM | nmem | ||
) |
Definition at line 243 of file marchash.c.
References marcsubfield::next, strtrimcat(), and marcsubfield::val.
Referenced by marcmap_apply().
struct marchash* marchash_create | ( | NMEM | nmem | ) |
struct marcfield* marchash_get_field | ( | struct marchash * | marchash, |
const char * | key, | ||
struct marcfield * | last | ||
) |
Definition at line 208 of file marchash.c.
References jenkins_hash(), marcfield::key, MARCHASH_MASK, marcfield::next, and marchash::table.
Referenced by marcmap_apply().
struct marcsubfield* marchash_get_subfield | ( | char | key, |
struct marcfield * | field, | ||
struct marcsubfield * | last | ||
) |
Definition at line 225 of file marchash.c.
References marcsubfield::key, marcsubfield::next, and marcfield::subfields.
Referenced by marcmap_apply().
void marchash_ingest_marcxml | ( | struct marchash * | marchash, |
xmlNodePtr | rec_node | ||
) |
Definition at line 84 of file marchash.c.
References marchash_add_field(), and marchash_add_subfield().
Referenced by marcmap_apply().