pazpar2  1.13.1
Typedefs | Functions
charsets.h File Reference

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_spp2_charset_token_t
 
typedef struct pp2_charset_fact_spp2_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)
 

Detailed Description

Pazpar2 Character set facilities.

Definition in file charsets.h.

Typedef Documentation

◆ pp2_charset_fact_t

Definition at line 31 of file charsets.h.

◆ pp2_charset_token_t

Definition at line 30 of file charsets.h.

Function Documentation

◆ pp2_charset_fact_create()

pp2_charset_fact_t pp2_charset_fact_create ( void  )

◆ pp2_charset_fact_define()

int pp2_charset_fact_define ( pp2_charset_fact_t  pft,
xmlNode *  xml_node,
const char *  default_id 
)

◆ pp2_charset_fact_destroy()

void pp2_charset_fact_destroy ( pp2_charset_fact_t  pft)

◆ pp2_charset_fact_incref()

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

pp2_charset_token_t pp2_charset_token_create ( pp2_charset_fact_t  pft,
const char *  id 
)

◆ pp2_charset_token_destroy()

void pp2_charset_token_destroy ( pp2_charset_token_t  prt)

◆ pp2_charset_token_first()

void pp2_charset_token_first ( pp2_charset_token_t  prt,
const char *  buf,
int  skip_article 
)

◆ pp2_charset_token_next()

const char* pp2_charset_token_next ( pp2_charset_token_t  prt)

◆ pp2_get_display()

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

◆ pp2_get_org()

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

◆ pp2_get_sort()

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