pazpar2
1.14.1
|
Pazpar2 Character set facilities. More...
#include <yaz/wrbuf.h>
#include <yaz/xmltypes.h>
Go to the source code of this file.
Typedefs | |
typedef struct pp2_charset_token_s * | pp2_charset_token_t |
typedef struct pp2_charset_fact_s * | pp2_charset_fact_t |
Functions | |
pp2_charset_fact_t | pp2_charset_fact_create (void) |
void | pp2_charset_fact_destroy (pp2_charset_fact_t pft) |
int | pp2_charset_fact_define (pp2_charset_fact_t pft, xmlNode *xml_node, const char *default_id) |
void | pp2_charset_fact_incref (pp2_charset_fact_t pft) |
pp2_charset_token_t | pp2_charset_token_create (pp2_charset_fact_t pft, const char *id) |
void | pp2_charset_token_first (pp2_charset_token_t prt, const char *buf, int skip_article) |
void | pp2_charset_token_destroy (pp2_charset_token_t prt) |
const char * | pp2_charset_token_next (pp2_charset_token_t prt) |
const char * | pp2_get_sort (pp2_charset_token_t prt) |
const char * | pp2_get_display (pp2_charset_token_t prt) |
void | pp2_get_org (pp2_charset_token_t prt, size_t *start, size_t *len) |
Pazpar2 Character set facilities.
Definition in file charsets.h.
typedef struct pp2_charset_fact_s* pp2_charset_fact_t |
Definition at line 31 of file charsets.h.
typedef struct pp2_charset_token_s* pp2_charset_token_t |
Definition at line 30 of file charsets.h.
pp2_charset_fact_t pp2_charset_fact_create | ( | void | ) |
Definition at line 110 of file charsets.c.
References pp2_charset_fact_s::list, pp2_charset_create(), pp2_charset_create_a_to_z(), pp2_charset_fact_add(), and pp2_charset_fact_s::ref_count.
Referenced by inherit_server_settings(), server_create(), and service_create_static().
int pp2_charset_fact_define | ( | pp2_charset_fact_t | pft, |
xmlNode * | xml_node, | ||
const char * | default_id | ||
) |
Definition at line 169 of file charsets.c.
References pp2_charset_entry::pct, pp2_charset_create_xml(), pp2_charset_destroy(), and pp2_charset_fact_add().
Referenced by server_create(), and service_create_static().
void pp2_charset_fact_destroy | ( | pp2_charset_fact_t | pft | ) |
Definition at line 123 of file charsets.c.
References pp2_charset_fact_s::list, pp2_charset_entry::name, pp2_charset_entry::next, pp2_charset_entry::pct, pp2_charset_destroy(), and pp2_charset_fact_s::ref_count.
Referenced by server_destroy(), and service_destroy().
void pp2_charset_fact_incref | ( | pp2_charset_fact_t | pft | ) |
Definition at line 207 of file charsets.c.
References pp2_charset_fact_s::ref_count.
Referenced by inherit_server_settings().
pp2_charset_token_t pp2_charset_token_create | ( | pp2_charset_fact_t | pft, |
const char * | id | ||
) |
Definition at line 282 of file charsets.c.
References pp2_charset_fact_s::list, pp2_charset_entry::name, pp2_charset_entry::next, pp2_charset_entry::pct, and pp2_charset_tokenize().
Referenced by ingest_to_cluster(), mergekey_norm_wr(), relevance_create_ccl(), and run_icu().
void pp2_charset_token_destroy | ( | pp2_charset_token_t | prt | ) |
Definition at line 346 of file charsets.c.
References pp2_charset_token_s::norm_str, and pp2_charset_token_s::sort_str.
Referenced by ingest_to_cluster(), mergekey_norm_wr(), relevance_destroy(), and run_icu().
void pp2_charset_token_first | ( | pp2_charset_token_t | prt, |
const char * | buf, | ||
int | skip_article | ||
) |
Definition at line 314 of file charsets.c.
References pp2_charset_token_s::cp, pp2_charset_token_s::cp0, pp2_charset_token_s::last_cp, pp2_charset_token_s::norm_str, and pp2_charset_token_s::sort_str.
Referenced by ingest_to_cluster(), mergekey_norm_wr(), pull_terms(), relevance_countwords(), relevance_snippet(), and run_icu().
const char* pp2_charset_token_next | ( | pp2_charset_token_t | prt | ) |
Definition at line 360 of file charsets.c.
References pp2_charset_token_s::pct, and pp2_charset_s::token_next_handler.
Referenced by ingest_to_cluster(), mergekey_norm_wr(), pull_terms(), relevance_countwords(), relevance_snippet(), and run_icu().
const char* pp2_get_display | ( | pp2_charset_token_t | prt | ) |
Definition at line 371 of file charsets.c.
References pp2_charset_s::get_display_handler, and pp2_charset_token_s::pct.
Referenced by run_icu().
void pp2_get_org | ( | pp2_charset_token_t | prt, |
size_t * | start, | ||
size_t * | len | ||
) |
Definition at line 376 of file charsets.c.
References pp2_charset_s::get_org_handler, and pp2_charset_token_s::pct.
Referenced by relevance_snippet().
const char* pp2_get_sort | ( | pp2_charset_token_t | prt | ) |
Definition at line 366 of file charsets.c.
References pp2_charset_s::get_sort_handler, and pp2_charset_token_s::pct.
Referenced by ingest_to_cluster().