|
xapian-core
2.1.0
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "snowball_runtime.h"#include <new>#include <stdexcept>
Include dependency graph for snowball_runtime.cc:Go to the source code of this file.
Macros | |
| #define | SNOWBALL_RUNTIME_THROW_EXCEPTIONS |
| #define | SNOWBALL_RETURN_OK return |
| #define | SNOWBALL_RETURN_OR_THROW(R, E) throw E |
| #define | SNOWBALL_PROPAGATE_ERR(F) F |
| #define | HEAD (2 * sizeof(int)) |
| #define | CREATE_SIZE 31 |
| #define | REPLACE_S(Z, B, K, SIZE, S) SNOWBALL_PROPAGATE_ERR(replace_s(Z, B, K, SIZE, S)) |
| #define | SLICE_CHECK(Z) SNOWBALL_PROPAGATE_ERR(slice_check(Z)) |
Typedefs | |
| typedef int | sizeof_symbol_divides_head[(HEAD % sizeof(symbol)==0) ? 1 :-1] |
Functions | |
| symbol * | create_s (void) |
| void | lose_s (symbol *p) |
| int | skip_utf8 (const symbol *p, int c, int limit, int n) |
| int | skip_b_utf8 (const symbol *p, int c, int limit, int n) |
| static int | get_utf8 (const symbol *p, int c, int l, int *slot) |
| static int | get_b_utf8 (const symbol *p, int c, int lb, int *slot) |
| int | in_grouping_U (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | in_grouping_b_U (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | out_grouping_U (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | out_grouping_b_U (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | in_grouping (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | in_grouping_b (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | out_grouping (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | out_grouping_b (struct SN_env *z, const unsigned char *s, int min, int max, int repeat) |
| int | eq_s (struct SN_env *z, int s_size, const symbol *s) |
| int | eq_s_b (struct SN_env *z, int s_size, const symbol *s) |
| int | eq_v (struct SN_env *z, const symbol *p) |
| int | eq_v_b (struct SN_env *z, const symbol *p) |
| int | find_among (struct SN_env *z, const struct among *v, int v_size, int(*call_among_func)(struct SN_env *)) |
| int | find_among_b (struct SN_env *z, const struct among *v, int v_size, int(*call_among_func)(struct SN_env *)) |
| static int | increase_size (symbol **p, int n) |
| SNOWBALL_ERR | replace_s (struct SN_env *z, int c_bra, int c_ket, int s_size, const symbol *s) |
| static SNOWBALL_ERR | slice_check (struct SN_env *z) |
| SNOWBALL_ERR | slice_from_s (struct SN_env *z, int s_size, const symbol *s) |
| SNOWBALL_ERR | slice_from_v (struct SN_env *z, const symbol *p) |
| SNOWBALL_ERR | slice_del (struct SN_env *z) |
| SNOWBALL_ERR | insert_s (struct SN_env *z, int bra, int ket, int s_size, const symbol *s) |
| SNOWBALL_ERR | insert_v (struct SN_env *z, int bra, int ket, const symbol *p) |
| SNOWBALL_ERR | slice_to (struct SN_env *z, symbol **p) |
| SNOWBALL_ERR | assign_to (struct SN_env *z, symbol **p) |
| int | len_utf8 (const symbol *p) |
| #define CREATE_SIZE 31 |
Definition at line 34 of file snowball_runtime.cc.
| #define HEAD (2 * sizeof(int)) |
Definition at line 25 of file snowball_runtime.cc.
Definition at line 603 of file snowball_runtime.cc.
| #define SLICE_CHECK | ( | Z | ) | SNOWBALL_PROPAGATE_ERR(slice_check(Z)) |
Definition at line 622 of file snowball_runtime.cc.
| #define SNOWBALL_PROPAGATE_ERR | ( | F | ) | F |
Definition at line 15 of file snowball_runtime.cc.
| #define SNOWBALL_RETURN_OK return |
Definition at line 13 of file snowball_runtime.cc.
| #define SNOWBALL_RETURN_OR_THROW | ( | R, | |
| E | |||
| ) | throw E |
Definition at line 14 of file snowball_runtime.cc.
| #define SNOWBALL_RUNTIME_THROW_EXCEPTIONS |
Definition at line 6 of file snowball_runtime.cc.
Definition at line 32 of file snowball_runtime.cc.
| SNOWBALL_ERR assign_to | ( | struct SN_env * | z, |
| symbol ** | p | ||
| ) |
Definition at line 683 of file snowball_runtime.cc.
References CAPACITY, increase_size(), SN_env::l, p, SN_env::p, SET_SIZE, SNOWBALL_PROPAGATE_ERR, and SNOWBALL_RETURN_OK.
| symbol* create_s | ( | void | ) |
Definition at line 36 of file snowball_runtime.cc.
References CAPACITY, CREATE_SIZE, HEAD, p, SET_SIZE, and SNOWBALL_RETURN_OR_THROW.
Definition at line 336 of file snowball_runtime.cc.
References SN_env::c, SN_env::l, and SN_env::p.
Referenced by eq_v(), r_measure(), r_remove_second_order_prefix(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Persian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Tamil::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
Definition at line 341 of file snowball_runtime.cc.
References SN_env::c, SN_env::lb, and SN_env::p.
Referenced by eq_v_b(), r_A_(), r_BB(), r_C(), r_check_vowel_harmony(), r_en_ending(), r_fix_ending(), r_H(), r_O_(), r_S(), r_shortv(), r_stem_suffix_chain_before_ki(), r_Step_1c(), r_Suffix_Noun_Step2b(), r_Suffix_Noun_Step2c1(), r_V(), r_Y(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), Xapian::Internal::Snowball::Nepali::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Tamil::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
Definition at line 346 of file snowball_runtime.cc.
Definition at line 350 of file snowball_runtime.cc.
References eq_s_b(), p, and SIZE.
Referenced by Xapian::Internal::Snowball::Danish::stem(), and Xapian::Internal::Snowball::Finnish::stem().
| int find_among | ( | struct SN_env * | z, |
| const struct among * | v, | ||
| int | v_size, | ||
| int(*)(struct SN_env *) | call_among_func | ||
| ) |
Definition at line 359 of file snowball_runtime.cc.
References SN_env::af, SN_env::c, among::function, SN_env::l, SN_env::p, among::result, among::s, among::s_size, among::substring_i, and among::v.
Referenced by r_fix_va_start(), r_remove_second_order_prefix(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Indonesian::stem(), Xapian::Internal::Snowball::Irish::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Persian::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Sesotho::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Tamil::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
| int find_among_b | ( | struct SN_env * | z, |
| const struct among * | v, | ||
| int | v_size, | ||
| int(*)(struct SN_env *) | call_among_func | ||
| ) |
Definition at line 466 of file snowball_runtime.cc.
References SN_env::af, SN_env::c, among::function, SN_env::lb, SN_env::p, among::result, among::s, among::s_size, among::substring_i, and among::v.
Referenced by r_AA(), r_consonant_pair(), r_double(), r_et_condition(), r_fix_chdz(), r_fix_ending(), r_lengthen_V(), r_LONGV(), r_LV(), r_mark_DA(), r_mark_DUr(), r_mark_lAr(), r_mark_lArI(), r_mark_ndA(), r_mark_nUn(), r_mark_possessives(), r_mark_sUn(), r_mark_sUnUz(), r_mark_yDU(), r_mark_ymUs_(), r_mark_ysA(), r_mark_yUm(), r_mark_yUz(), r_palatalise_e(), r_palatalise_i(), r_remove_suffix(), r_Step_1c(), r_Suffix_Noun_Step2a(), r_Suffix_Verb_Step2a(), r_undouble(), r_VI(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Armenian::stem(), Xapian::Internal::Snowball::Basque::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Hindi::stem(), Xapian::Internal::Snowball::Hungarian::stem(), Xapian::Internal::Snowball::Indonesian::stem(), Xapian::Internal::Snowball::Irish::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), Xapian::Internal::Snowball::Lovins::stem(), Xapian::Internal::Snowball::Nepali::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Persian::stem(), Xapian::Internal::Snowball::Polish::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Sesotho::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Tamil::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
|
static |
Definition at line 127 of file snowball_runtime.cc.
References p.
Referenced by in_grouping_b_U(), and out_grouping_b_U().
|
static |
Definition at line 105 of file snowball_runtime.cc.
References p.
Referenced by in_grouping_U(), and out_grouping_U().
| int in_grouping | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 288 of file snowball_runtime.cc.
| int in_grouping_b | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 300 of file snowball_runtime.cc.
References SN_env::c, SN_env::lb, and SN_env::p.
| int in_grouping_b_U | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 229 of file snowball_runtime.cc.
References SN_env::c, get_b_utf8(), SN_env::lb, and SN_env::p.
Referenced by r_CONSONANT(), r_et_condition(), r_lengthen_V(), r_mark_possessives(), r_mark_sU(), r_mark_suffix_with_optional_n_consonant(), r_mark_suffix_with_optional_y_consonant(), r_shortv(), r_V(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
| int in_grouping_U | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 210 of file snowball_runtime.cc.
References SN_env::c, get_utf8(), SN_env::l, and SN_env::p.
Referenced by r_measure(), Xapian::Internal::Snowball::Armenian::stem(), Xapian::Internal::Snowball::Basque::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Hungarian::stem(), Xapian::Internal::Snowball::Indonesian::stem(), Xapian::Internal::Snowball::Irish::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Polish::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
|
static |
Definition at line 565 of file snowball_runtime.cc.
References CAPACITY, HEAD, and p.
Referenced by assign_to(), replace_s(), and slice_to().
| SNOWBALL_ERR insert_s | ( | struct SN_env * | z, |
| int | bra, | ||
| int | ket, | ||
| int | s_size, | ||
| const symbol * | s | ||
| ) |
Definition at line 656 of file snowball_runtime.cc.
References SN_env::bra, SN_env::ket, REPLACE_S, among::s, among::s_size, and SNOWBALL_RETURN_OK.
Referenced by insert_v(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::Greek::stem(), and Xapian::Internal::Snowball::Porter::stem().
| SNOWBALL_ERR insert_v | ( | struct SN_env * | z, |
| int | bra, | ||
| int | ket, | ||
| const symbol * | p | ||
| ) |
Definition at line 666 of file snowball_runtime.cc.
References insert_s(), p, and SIZE.
Referenced by r_lengthen_V().
| int len_utf8 | ( | const symbol * | p | ) |
Definition at line 693 of file snowball_runtime.cc.
Referenced by r_fix_ending(), r_Suffix_Noun_Step2a(), r_Suffix_Noun_Step2b(), r_Suffix_Noun_Step2c1(), r_Suffix_Verb_Step2a(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), and Xapian::Internal::Snowball::Tamil::stem().
| void lose_s | ( | symbol * | p | ) |
Definition at line 47 of file snowball_runtime.cc.
Referenced by Xapian::Internal::Snowball::Arabic::close_env(), Xapian::Internal::Snowball::Armenian::close_env(), Xapian::Internal::Snowball::Basque::close_env(), Xapian::Internal::Snowball::Catalan::close_env(), Xapian::Internal::Snowball::Czech::close_env(), Xapian::Internal::Snowball::Danish::close_env(), Xapian::Internal::Snowball::Dutch::close_env(), Xapian::Internal::Snowball::DutchPorter::close_env(), Xapian::Internal::Snowball::Earlymodernenglish::close_env(), Xapian::Internal::Snowball::English::close_env(), Xapian::Internal::Snowball::Esperanto::close_env(), Xapian::Internal::Snowball::Estonian::close_env(), Xapian::Internal::Snowball::Finnish::close_env(), Xapian::Internal::Snowball::French::close_env(), Xapian::Internal::Snowball::German::close_env(), Xapian::Internal::Snowball::Greek::close_env(), Xapian::Internal::Snowball::Hindi::close_env(), Xapian::Internal::Snowball::Hungarian::close_env(), Xapian::Internal::Snowball::Indonesian::close_env(), Xapian::Internal::Snowball::Irish::close_env(), Xapian::Internal::Snowball::Italian::close_env(), Xapian::Internal::Snowball::Lithuanian::close_env(), Xapian::Internal::Snowball::Lovins::close_env(), Xapian::Internal::Snowball::Nepali::close_env(), Xapian::Internal::Snowball::Norwegian::close_env(), Xapian::Internal::Snowball::Persian::close_env(), Xapian::Internal::Snowball::Polish::close_env(), Xapian::Internal::Snowball::Porter::close_env(), Xapian::Internal::Snowball::Portuguese::close_env(), Xapian::Internal::Snowball::Romanian::close_env(), Xapian::Internal::Snowball::Russian::close_env(), Xapian::Internal::Snowball::Serbian::close_env(), Xapian::Internal::Snowball::Sesotho::close_env(), Xapian::Internal::Snowball::Spanish::close_env(), Xapian::Internal::Snowball::Swedish::close_env(), Xapian::Internal::Snowball::Tamil::close_env(), Xapian::Internal::Snowball::Turkish::close_env(), and Xapian::Internal::Snowball::Yiddish::close_env().
| int out_grouping | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 312 of file snowball_runtime.cc.
| int out_grouping_b | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 324 of file snowball_runtime.cc.
References SN_env::c, SN_env::lb, and SN_env::p.
| int out_grouping_b_U | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 267 of file snowball_runtime.cc.
References SN_env::c, get_b_utf8(), SN_env::lb, and SN_env::p.
Referenced by r_C(), r_check_vowel_harmony(), r_e_ending(), r_en_ending(), r_et_condition(), r_lengthen_V(), r_mark_possessives(), r_shortv(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Romanian::stem(), and Xapian::Internal::Snowball::Turkish::stem().
| int out_grouping_U | ( | struct SN_env * | z, |
| const unsigned char * | s, | ||
| int | min, | ||
| int | max, | ||
| int | repeat | ||
| ) |
Definition at line 248 of file snowball_runtime.cc.
References SN_env::c, get_utf8(), SN_env::l, and SN_env::p.
Referenced by r_measure(), r_remove_second_order_prefix(), Xapian::Internal::Snowball::Armenian::stem(), Xapian::Internal::Snowball::Basque::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Hungarian::stem(), Xapian::Internal::Snowball::Indonesian::stem(), Xapian::Internal::Snowball::Irish::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Polish::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Sesotho::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
| SNOWBALL_ERR replace_s | ( | struct SN_env * | z, |
| int | c_bra, | ||
| int | c_ket, | ||
| int | s_size, | ||
| const symbol * | s | ||
| ) |
Definition at line 581 of file snowball_runtime.cc.
References SN_env::c, c_bra, c_ket, CAPACITY, increase_size(), SN_env::l, SN_env::p, among::s, among::s_size, SET_SIZE, SIZE, SNOWBALL_PROPAGATE_ERR, and SNOWBALL_RETURN_OK.
Referenced by Xapian::Internal::Snowball::Arabic::operator()(), Xapian::Internal::Snowball::Armenian::operator()(), Xapian::Internal::Snowball::Basque::operator()(), Xapian::Internal::Snowball::Catalan::operator()(), Xapian::Internal::Snowball::Czech::operator()(), Xapian::Internal::Snowball::Danish::operator()(), Xapian::Internal::Snowball::Dutch::operator()(), Xapian::Internal::Snowball::DutchPorter::operator()(), Xapian::Internal::Snowball::Earlymodernenglish::operator()(), Xapian::Internal::Snowball::English::operator()(), Xapian::Internal::Snowball::Esperanto::operator()(), Xapian::Internal::Snowball::Estonian::operator()(), Xapian::Internal::Snowball::Finnish::operator()(), Xapian::Internal::Snowball::French::operator()(), Xapian::Internal::Snowball::German::operator()(), Xapian::Internal::Snowball::Greek::operator()(), Xapian::Internal::Snowball::Hindi::operator()(), Xapian::Internal::Snowball::Hungarian::operator()(), Xapian::Internal::Snowball::Indonesian::operator()(), Xapian::Internal::Snowball::Irish::operator()(), Xapian::Internal::Snowball::Italian::operator()(), Xapian::Internal::Snowball::Lithuanian::operator()(), Xapian::Internal::Snowball::Lovins::operator()(), Xapian::Internal::Snowball::Nepali::operator()(), Xapian::Internal::Snowball::Norwegian::operator()(), Xapian::Internal::Snowball::Persian::operator()(), Xapian::Internal::Snowball::Polish::operator()(), Xapian::Internal::Snowball::Porter::operator()(), Xapian::Internal::Snowball::Portuguese::operator()(), Xapian::Internal::Snowball::Romanian::operator()(), Xapian::Internal::Snowball::Russian::operator()(), Xapian::Internal::Snowball::Serbian::operator()(), Xapian::Internal::Snowball::Sesotho::operator()(), Xapian::Internal::Snowball::Spanish::operator()(), Xapian::Internal::Snowball::Swedish::operator()(), Xapian::Internal::Snowball::Tamil::operator()(), Xapian::Internal::Snowball::Turkish::operator()(), and Xapian::Internal::Snowball::Yiddish::operator()().
| int skip_b_utf8 | ( | const symbol * | p, |
| int | c, | ||
| int | limit, | ||
| int | n | ||
| ) |
Definition at line 87 of file snowball_runtime.cc.
References p.
Referenced by r_A(), r_AA(), r_B(), r_BB(), r_C(), r_CC(), r_consonant_pair(), r_D(), r_E(), r_F(), r_G(), r_H(), r_I(), r_J(), r_K(), r_L(), r_lengthen_V(), r_M(), r_mark_possessives(), r_mark_sU(), r_mark_suffix_with_optional_n_consonant(), r_mark_suffix_with_optional_y_consonant(), r_N(), r_O(), r_P(), r_Q(), r_R(), r_S(), r_T(), r_U(), r_undouble(), r_V(), r_W(), r_X(), r_Y(), r_Z(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Lovins::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Swedish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
| int skip_utf8 | ( | const symbol * | p, |
| int | c, | ||
| int | limit, | ||
| int | n | ||
| ) |
Definition at line 61 of file snowball_runtime.cc.
References p.
Referenced by Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Basque::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Hindi::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Persian::stem(), Xapian::Internal::Snowball::Polish::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Sesotho::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
|
static |
Definition at line 606 of file snowball_runtime.cc.
References SN_env::bra, SN_env::ket, SN_env::l, SN_env::p, SIZE, SNOWBALL_RETURN_OK, and SNOWBALL_RETURN_OR_THROW.
| SNOWBALL_ERR slice_del | ( | struct SN_env * | z | ) |
Definition at line 635 of file snowball_runtime.cc.
References SN_env::bra, SN_env::c, SN_env::ket, SN_env::l, SN_env::p, SET_SIZE, SIZE, SLICE_CHECK, and SNOWBALL_RETURN_OK.
Referenced by r_consonant_pair(), r_e_ending(), r_en_ending(), r_fix_ending(), r_remove_second_order_prefix(), r_remove_suffix(), r_stem_suffix_chain_before_ki(), r_Step_1c(), r_Suffix_Noun_Step2a(), r_Suffix_Noun_Step2b(), r_Suffix_Noun_Step2c1(), r_Suffix_Verb_Step2a(), r_undouble(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Armenian::stem(), Xapian::Internal::Snowball::Basque::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Hindi::stem(), Xapian::Internal::Snowball::Hungarian::stem(), Xapian::Internal::Snowball::Indonesian::stem(), Xapian::Internal::Snowball::Irish::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), Xapian::Internal::Snowball::Lovins::stem(), Xapian::Internal::Snowball::Nepali::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Persian::stem(), Xapian::Internal::Snowball::Polish::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Sesotho::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Tamil::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
| SNOWBALL_ERR slice_from_s | ( | struct SN_env * | z, |
| int | s_size, | ||
| const symbol * | s | ||
| ) |
Definition at line 624 of file snowball_runtime.cc.
References SN_env::bra, SN_env::ket, REPLACE_S, among::s, among::s_size, SLICE_CHECK, and SNOWBALL_RETURN_OK.
Referenced by r_fix_chdz(), r_fix_ending(), r_fix_va_start(), r_lengthen_V(), r_palatalise_e(), r_palatalise_i(), r_Step_1c(), slice_from_v(), Xapian::Internal::Snowball::Arabic::stem(), Xapian::Internal::Snowball::Basque::stem(), Xapian::Internal::Snowball::Catalan::stem(), Xapian::Internal::Snowball::Czech::stem(), Xapian::Internal::Snowball::Danish::stem(), Xapian::Internal::Snowball::Dutch::stem(), Xapian::Internal::Snowball::DutchPorter::stem(), Xapian::Internal::Snowball::Earlymodernenglish::stem(), Xapian::Internal::Snowball::English::stem(), Xapian::Internal::Snowball::Esperanto::stem(), Xapian::Internal::Snowball::Estonian::stem(), Xapian::Internal::Snowball::Finnish::stem(), Xapian::Internal::Snowball::French::stem(), Xapian::Internal::Snowball::German::stem(), Xapian::Internal::Snowball::Greek::stem(), Xapian::Internal::Snowball::Hungarian::stem(), Xapian::Internal::Snowball::Indonesian::stem(), Xapian::Internal::Snowball::Irish::stem(), Xapian::Internal::Snowball::Italian::stem(), Xapian::Internal::Snowball::Lithuanian::stem(), Xapian::Internal::Snowball::Lovins::stem(), Xapian::Internal::Snowball::Norwegian::stem(), Xapian::Internal::Snowball::Persian::stem(), Xapian::Internal::Snowball::Polish::stem(), Xapian::Internal::Snowball::Porter::stem(), Xapian::Internal::Snowball::Portuguese::stem(), Xapian::Internal::Snowball::Romanian::stem(), Xapian::Internal::Snowball::Russian::stem(), Xapian::Internal::Snowball::Serbian::stem(), Xapian::Internal::Snowball::Spanish::stem(), Xapian::Internal::Snowball::Swedish::stem(), Xapian::Internal::Snowball::Tamil::stem(), Xapian::Internal::Snowball::Turkish::stem(), and Xapian::Internal::Snowball::Yiddish::stem().
| SNOWBALL_ERR slice_from_v | ( | struct SN_env * | z, |
| const symbol * | p | ||
| ) |
Definition at line 631 of file snowball_runtime.cc.
References p, SIZE, and slice_from_s().
| SNOWBALL_ERR slice_to | ( | struct SN_env * | z, |
| symbol ** | p | ||
| ) |
Definition at line 670 of file snowball_runtime.cc.
References SN_env::bra, CAPACITY, increase_size(), SN_env::ket, p, SN_env::p, SET_SIZE, SLICE_CHECK, SNOWBALL_PROPAGATE_ERR, and SNOWBALL_RETURN_OK.
Referenced by r_lengthen_V(), Xapian::Internal::Snowball::Danish::stem(), and Xapian::Internal::Snowball::Finnish::stem().