IDZEBRA
2.2.7
|
Go to the source code of this file.
Typedefs | |
typedef struct zebra_maps_s * | zebra_maps_t |
typedef struct zebra_map * | zebra_map_t |
Functions | |
zebra_maps_t | zebra_maps_open (Res res, const char *base_path, const char *profile_path) |
ZEBRA_RES | zebra_maps_read_file (zebra_maps_t zms, const char *fname) |
void | zebra_maps_define_default_sort (zebra_maps_t zms) |
void | zebra_maps_close (zebra_maps_t zm) |
const char ** | zebra_maps_input (zebra_map_t zm, const char **from, int len, int first) |
const char ** | zebra_maps_search (zebra_map_t zm, const char **from, int len, int *q_map_match) |
const char * | zebra_maps_output (zebra_map_t zm, const char **from) |
int | zebra_maps_attr (zebra_maps_t zms, Z_AttributesPlusTerm *zapt, const char **reg_id, char **search_type, char *rank_type, int *complete_flag, int *sort_flag) |
int | zebra_maps_sort (zebra_maps_t zms, Z_SortAttributes *sortAttributes, int *numerical) |
int | zebra_maps_is_complete (zebra_map_t zm) |
int | zebra_maps_is_sort (zebra_map_t zm) |
int | zebra_maps_is_index (zebra_map_t zm) |
int | zebra_maps_is_staticrank (zebra_map_t zm) |
int | zebra_maps_is_alwaysmatches (zebra_map_t zm) |
int | zebra_maps_is_positioned (zebra_map_t zm) |
int | zebra_maps_is_icu (zebra_map_t zm) |
int | zebra_maps_is_first_in_field (zebra_map_t zm) |
WRBUF | zebra_replace (zebra_map_t zm, const char *ex_list, const char *input_str, int input_len) |
zebra_map_t | zebra_map_get (zebra_maps_t zms, const char *id) |
zebra_map_t | zebra_map_get_or_add (zebra_maps_t zms, const char *id) |
int | zebra_map_tokenize_start (zebra_map_t zm, const char *buf, size_t len) |
int | zebra_map_tokenize_next (zebra_map_t zm, const char **result_buf, size_t *result_len, const char **display_buf, size_t *display_len) |
typedef struct zebra_map* zebra_map_t |
Definition at line 29 of file zebramap.h.
typedef struct zebra_maps_s* zebra_maps_t |
Definition at line 28 of file zebramap.h.
zebra_map_t zebra_map_get | ( | zebra_maps_t | zms, |
const char * | id | ||
) |
Definition at line 355 of file zebramap.c.
References zebra_map::id, zebra_maps_s::map_list, and zebra_map::next.
Referenced by zebra_map_get_or_add(), zebra_string_norm(), and zebra_term_untrans().
zebra_map_t zebra_map_get_or_add | ( | zebra_maps_t | zms, |
const char * | id | ||
) |
Definition at line 364 of file zebramap.c.
References zebra_map::completeness, zebra_map::maptab_name, zebra_maps_s::nmem, zebra_maps_s::no_files_read, zebra_map::positioned, zebra_add_map(), zebra_map_get(), and ZEBRA_MAP_TYPE_INDEX.
Referenced by extract_token_add(), numeric_term(), rpn_scan_norm(), search_position(), search_terms_list(), and snippet_token_add().
int zebra_map_tokenize_next | ( | zebra_map_t | zm, |
const char ** | result_buf, | ||
size_t * | result_len, | ||
const char ** | display_buf, | ||
size_t * | display_len | ||
) |
Definition at line 658 of file zebramap.c.
References zebra_map::debug, zebra_map::print_str, tokenize_simple(), and zebra_map::use_chain.
Referenced by extract_add_icu(), snippet_add_icu(), term_100_icu(), term_102_icu(), and trans_scan_term().
int zebra_map_tokenize_start | ( | zebra_map_t | zm, |
const char * | buf, | ||
size_t | len | ||
) |
Definition at line 702 of file zebramap.c.
References zebra_map::debug, zebra_map::input_str, zebra_map::print_str, zebra_map::simple_off, and zebra_map::use_chain.
Referenced by extract_add_icu(), snippet_add_icu(), term_100_icu(), term_102_icu(), and trans_scan_term().
int zebra_maps_attr | ( | zebra_maps_t | zms, |
Z_AttributesPlusTerm * | zapt, | ||
const char ** | reg_id, | ||
char ** | search_type, | ||
char * | rank_type, | ||
int * | complete_flag, | ||
int * | sort_flag | ||
) |
Definition at line 515 of file zebramap.c.
References attr_find(), attr_find_ex(), attr_init_APT(), and zebra_map::completeness.
Referenced by rpn_scan(), and rpn_search_database().
void zebra_maps_close | ( | zebra_maps_t | zm | ) |
Definition at line 84 of file zebramap.c.
References chrmaptab_destroy(), zebra_map::input_str, zebra_maps_s::map_list, zebra_map::maptab, zebra_map::next, zebra_maps_s::nmem, zebra_map::print_str, and zebra_maps_s::wrbuf_1.
Referenced by zebra_register_close().
void zebra_maps_define_default_sort | ( | zebra_maps_t | zms | ) |
Definition at line 349 of file zebramap.c.
References zebra_map::sort, zebra_map::u, zebra_add_map(), and ZEBRA_MAP_TYPE_SORT.
Referenced by zebra_register_open().
const char** zebra_maps_input | ( | zebra_map_t | zm, |
const char ** | from, | ||
int | len, | ||
int | first | ||
) |
Definition at line 399 of file zebramap.c.
References chr_map_input(), zebra_map::maptab, zebra_maps_s::temp_map_ptr, zebra_maps_s::temp_map_str, zebra_charmap_get(), and zebra_map::zebra_maps.
Referenced by extract_add_incomplete_field(), parse_complete_field(), rpn_char_map_handler(), snippet_add_incomplete_field(), term_pre(), and trans_scan_term().
int zebra_maps_is_alwaysmatches | ( | zebra_map_t | zm | ) |
Definition at line 485 of file zebramap.c.
References zebra_map::alwaysmatches.
Referenced by extract_add_string().
int zebra_maps_is_complete | ( | zebra_map_t | zm | ) |
Definition at line 450 of file zebramap.c.
References zebra_map::completeness.
Referenced by extract_token_add(), and snippet_token_add().
int zebra_maps_is_first_in_field | ( | zebra_map_t | zm | ) |
Definition at line 492 of file zebramap.c.
References zebra_map::first_in_field.
Referenced by extract_add_incomplete_field(), search_position(), and snippet_add_incomplete_field().
int zebra_maps_is_icu | ( | zebra_map_t | zm | ) |
Definition at line 741 of file zebramap.c.
References zebra_map::use_chain.
Referenced by extract_token_add(), rpn_char_map_prepare(), snippet_token_add(), string_term(), trans_scan_term(), and zebra_term_untrans().
int zebra_maps_is_index | ( | zebra_map_t | zm | ) |
Definition at line 464 of file zebramap.c.
References zebra_map::type, and ZEBRA_MAP_TYPE_INDEX.
Referenced by extract_add_string(), snippet_add_complete_field(), snippet_add_icu(), and snippet_add_incomplete_field().
int zebra_maps_is_positioned | ( | zebra_map_t | zm | ) |
Definition at line 457 of file zebramap.c.
References zebra_map::positioned.
int zebra_maps_is_sort | ( | zebra_map_t | zm | ) |
Definition at line 478 of file zebramap.c.
References zebra_map::type, and ZEBRA_MAP_TYPE_SORT.
Referenced by extract_add_string().
int zebra_maps_is_staticrank | ( | zebra_map_t | zm | ) |
Definition at line 471 of file zebramap.c.
References zebra_map::type, and ZEBRA_MAP_TYPE_STATICRANK.
Referenced by extract_add_string().
zebra_maps_t zebra_maps_open | ( | Res | res, |
const char * | base_path, | ||
const char * | profile_path | ||
) |
Definition at line 324 of file zebramap.c.
References zebra_maps_s::last_map, zebra_maps_s::map_list, zebra_maps_s::nmem, zebra_maps_s::no_files_read, zebra_maps_s::tabpath, zebra_maps_s::tabroot, zebra_maps_s::temp_map_ptr, zebra_maps_s::temp_map_str, and zebra_maps_s::wrbuf_1.
Referenced by zebra_register_open().
const char* zebra_maps_output | ( | zebra_map_t | zm, |
const char ** | from | ||
) |
Definition at line 438 of file zebramap.c.
References chr_map_output(), zebra_map::maptab, and zebra_charmap_get().
Referenced by zebra_term_untrans().
ZEBRA_RES zebra_maps_read_file | ( | zebra_maps_t | zms, |
const char * | fname | ||
) |
Definition at line 295 of file zebramap.c.
References zebra_maps_s::no_files_read, parse_command(), zebra_maps_s::tabpath, zebra_maps_s::tabroot, ZEBRA_FAIL, and ZEBRA_OK.
Referenced by zebra_register_open().
const char** zebra_maps_search | ( | zebra_map_t | zm, |
const char ** | from, | ||
int | len, | ||
int * | q_map_match | ||
) |
Definition at line 412 of file zebramap.c.
References chr_map_input(), chr_map_q_input(), zebra_map::maptab, zebra_maps_s::temp_map_ptr, zebra_maps_s::temp_map_str, zebra_charmap_get(), and zebra_map::zebra_maps.
Referenced by term_100(), term_101(), term_103(), term_104(), and term_105().
int zebra_maps_sort | ( | zebra_maps_t | zms, |
Z_SortAttributes * | sortAttributes, | ||
int * | numerical | ||
) |
Definition at line 499 of file zebramap.c.
References attr_find(), and attr_init_AttrList().
WRBUF zebra_replace | ( | zebra_map_t | zm, |
const char * | ex_list, | ||
const char * | input_str, | ||
int | input_len | ||
) |
Definition at line 619 of file zebramap.c.
References zebra_map::input_str, zebra_maps_s::wrbuf_1, and zebra_map::zebra_maps.
Referenced by zebra_string_norm().