pazpar2
1.14.1
|
Pazpar2 Character set facilities. More...
#include <yaz/xmalloc.h>
#include <yaz/wrbuf.h>
#include <yaz/log.h>
#include <yaz/yaz-version.h>
#include <yaz/xml_get.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include "charsets.h"
#include "normalize7bit.h"
Go to the source code of this file.
Data Structures | |
struct | pp2_charset_s |
struct | pp2_charset_token_s |
struct | pp2_charset_fact_s |
struct | pp2_charset_entry |
Macros | |
#define | raw_char(c) (((c) >= 'a' && (c) <= 'z') ? (c) : -1) |
Typedefs | |
typedef struct pp2_charset_s * | pp2_charset_t |
Pazpar2 Character set facilities.
Definition in file charsets.c.
#define raw_char | ( | c | ) | (((c) >= 'a' && (c) <= 'z') ? (c) : -1) |
Definition at line 382 of file charsets.c.
typedef struct pp2_charset_s* pp2_charset_t |
Definition at line 40 of file charsets.c.
|
static |
Definition at line 236 of file charsets.c.
References pp2_charset_s::get_display_handler, pp2_charset_s::get_org_handler, pp2_charset_s::get_sort_handler, pp2_charset_token_null(), pp2_get_display_ascii(), pp2_get_org_ascii(), pp2_get_sort_ascii(), and pp2_charset_s::token_next_handler.
Referenced by pp2_charset_create_a_to_z(), and pp2_charset_fact_create().
|
static |
Definition at line 250 of file charsets.c.
References pp2_charset_create(), pp2_charset_token_a_to_z(), and pp2_charset_s::token_next_handler.
Referenced by pp2_charset_fact_create().
|
static |
Definition at line 212 of file charsets.c.
Referenced by pp2_charset_fact_define().
|
static |
Definition at line 274 of file charsets.c.
Referenced by pp2_charset_fact_add(), pp2_charset_fact_define(), and pp2_charset_fact_destroy().
|
static |
Definition at line 145 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_destroy().
Referenced by pp2_charset_fact_create(), and pp2_charset_fact_define().
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 * | 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().
|
static |
Definition at line 386 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::len, pp2_charset_token_s::norm_str, raw_char, and pp2_charset_token_s::start.
Referenced by pp2_charset_create_a_to_z().
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().
|
static |
Definition at line 449 of file charsets.c.
References pp2_charset_token_s::cp, pp2_charset_token_s::cp0, pp2_charset_token_s::last_cp, and pp2_charset_token_s::len.
Referenced by pp2_charset_create().
|
static |
Definition at line 292 of file charsets.c.
References pp2_charset_token_s::cp, pp2_charset_token_s::last_cp, pp2_charset_token_s::len, pp2_charset_token_s::norm_str, pp2_charset_token_s::pct, pp2_charset_entry::pct, pp2_charset_token_s::sort_str, and pp2_charset_token_s::start.
Referenced by pp2_charset_token_create().
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().
|
static |
Definition at line 432 of file charsets.c.
References pp2_charset_token_s::last_cp, and pp2_charset_token_s::norm_str.
Referenced by pp2_charset_create().
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().
|
static |
Definition at line 442 of file charsets.c.
References pp2_charset_token_s::len, and pp2_charset_token_s::start.
Referenced by pp2_charset_create().
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().
|
static |
Definition at line 415 of file charsets.c.
References pp2_charset_token_s::last_cp, normalize7bit_mergekey(), and pp2_charset_token_s::sort_str.
Referenced by pp2_charset_create().