|
xapian-core
1.4.30
|
#include <steminternal.h>
Inheritance diagram for Xapian::SnowballStemImplementation:
Collaboration diagram for Xapian::SnowballStemImplementation:Public Member Functions | |
| SnowballStemImplementation () | |
| Perform initialisation common to all Snowball stemmers. More... | |
| virtual | ~SnowballStemImplementation () |
| Perform cleanup common to all Snowball stemmers. More... | |
| virtual std::string | operator() (const std::string &word) |
| Stem the specified word. More... | |
| virtual int | stem ()=0 |
| Virtual method implemented by the subclass to actually do the work. More... | |
Public Member Functions inherited from Xapian::StemImplementation | |
| StemImplementation () | |
| Default constructor. More... | |
| virtual | ~StemImplementation () |
| Virtual destructor. More... | |
| virtual std::string | get_description () const =0 |
| Return a string describing this object. More... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references. More... | |
Protected Member Functions | |
| int | get_utf8 (int *slot) |
| int | get_b_utf8 (int *slot) |
| int | in_grouping_U (const unsigned char *s, int min, int max, int repeat) |
| int | in_grouping_b_U (const unsigned char *s, int min, int max, int repeat) |
| int | out_grouping_U (const unsigned char *s, int min, int max, int repeat) |
| int | out_grouping_b_U (const unsigned char *s, int min, int max, int repeat) |
| int | eq_s (int s_size, const symbol *s) |
| int | eq_s_b (int s_size, const symbol *s) |
| int | eq_v (const symbol *v) |
| int | eq_v_b (const symbol *v) |
| int | find_among (const symbol *pool, const struct among *v, int v_size, const unsigned char *fnum, const among_function *f) |
| int | find_among_b (const symbol *pool, const struct among *v, int v_size, const unsigned char *fnum, const among_function *f) |
| int | replace_s (int c_bra, int c_ket, int s_size, const symbol *s) |
| int | slice_from_s (int s_size, const symbol *s) |
| int | slice_from_v (const symbol *v) |
| int | slice_del () |
| void | insert_s (int c_bra, int c_ket, int s_size, const symbol *s) |
| void | insert_v (int c_bra, int c_ket, const symbol *v) |
| symbol * | slice_to (symbol *v) |
| symbol * | assign_to (symbol *v) |
| int | len_utf8 (const symbol *v) |
Static Protected Member Functions | |
| static int | SIZE (const symbol *p) |
| static void | SET_SIZE (symbol *p, int n) |
| static int | CAPACITY (const symbol *p) |
| static void | SET_CAPACITY (symbol *p, int n) |
| static int | skip_utf8 (const symbol *p, int c, int lb, int l, int n) |
| static symbol * | increase_size (symbol *p, int n) |
| static symbol * | create_s () |
Protected Attributes | |
| symbol * | p |
| int | c |
| int | l |
| int | lb |
| int | bra |
| int | ket |
Private Member Functions | |
| int | slice_check () |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
| unsigned | _refs |
| Reference count. More... | |
Definition at line 51 of file steminternal.h.
|
inline |
Perform initialisation common to all Snowball stemmers.
Definition at line 128 of file steminternal.h.
|
virtual |
Perform cleanup common to all Snowball stemmers.
Definition at line 142 of file steminternal.cc.
References lose_s().
Definition at line 468 of file steminternal.cc.
References CAPACITY.
|
inlinestaticprotected |
Definition at line 71 of file steminternal.h.
References p.
|
staticprotected |
Definition at line 75 of file steminternal.cc.
References CREATE_SIZE, and HEAD.
Referenced by Xapian::InternalStemDanish::InternalStemDanish(), Xapian::InternalStemFinnish::InternalStemFinnish(), and Xapian::InternalStemKraaij_pohlmann::InternalStemKraaij_pohlmann().
|
protected |
Definition at line 270 of file steminternal.cc.
Referenced by eq_v(), and Xapian::InternalStemGerman::r_prelude().
|
protected |
Definition at line 277 of file steminternal.cc.
Referenced by eq_v_b(), Xapian::InternalStemTurkish::r_check_vowel_harmony(), and Xapian::InternalStemNepali::r_remove_category_1().
|
inlineprotected |
Definition at line 98 of file steminternal.h.
|
inlineprotected |
Definition at line 99 of file steminternal.h.
|
protected |
Definition at line 285 of file steminternal.cc.
References among::result, among::s, among::s_size, and among::substring_i.
Referenced by Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), and Xapian::InternalStemPortuguese::r_prelude().
|
protected |
Definition at line 349 of file steminternal.cc.
References among::result, among::s, among::s_size, and among::substring_i.
Referenced by Xapian::InternalStemNepali::r_remove_category_1(), Xapian::InternalStemIndonesian::r_remove_particle(), and Xapian::InternalStemLithuanian::r_step1().
|
protected |
Definition at line 185 of file steminternal.cc.
|
protected |
Definition at line 162 of file steminternal.cc.
|
protected |
Definition at line 226 of file steminternal.cc.
Referenced by Xapian::InternalStemEarlyenglish::r_shortv(), and Xapian::InternalStemPorter::r_shortv().
|
protected |
Definition at line 211 of file steminternal.cc.
References get_utf8().
Referenced by Xapian::InternalStemArmenian::r_mark_regions(), Xapian::InternalStemBasque::r_mark_regions(), Xapian::InternalStemCatalan::r_mark_regions(), Xapian::InternalStemDanish::r_mark_regions(), Xapian::InternalStemFinnish::r_mark_regions(), Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemIrish::r_mark_regions(), Xapian::InternalStemNorwegian::r_mark_regions(), Xapian::InternalStemRussian::r_mark_regions(), Xapian::InternalStemSpanish::r_mark_regions(), Xapian::InternalStemSwedish::r_mark_regions(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), and Xapian::InternalStemRomanian::r_prelude().
Definition at line 126 of file steminternal.cc.
References HEAD.
|
protected |
Definition at line 447 of file steminternal.cc.
References c_bra, c_ket, among::s, and among::s_size.
Referenced by insert_v().
|
inlineprotected |
Definition at line 113 of file steminternal.h.
References c_bra, c_ket, insert_s(), and SIZE().
|
protected |
Definition at line 478 of file steminternal.cc.
References among::b, and SIZE.
Referenced by Xapian::InternalStemTamil::r_has_min_length().
|
virtual |
Stem the specified word.
Implements Xapian::StemImplementation.
Definition at line 148 of file steminternal.cc.
|
protected |
Definition at line 256 of file steminternal.cc.
Referenced by Xapian::InternalStemTurkish::r_check_vowel_harmony(), Xapian::InternalStemEarlyenglish::r_shortv(), and Xapian::InternalStemPorter::r_shortv().
|
protected |
Definition at line 241 of file steminternal.cc.
References get_utf8().
Referenced by Xapian::InternalStemArmenian::r_mark_regions(), Xapian::InternalStemBasque::r_mark_regions(), Xapian::InternalStemCatalan::r_mark_regions(), Xapian::InternalStemDanish::r_mark_regions(), Xapian::InternalStemFinnish::r_mark_regions(), Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemIrish::r_mark_regions(), Xapian::InternalStemNorwegian::r_mark_regions(), Xapian::InternalStemRussian::r_mark_regions(), Xapian::InternalStemSpanish::r_mark_regions(), Xapian::InternalStemSwedish::r_mark_regions(), and Xapian::InternalStemDutch::r_prelude().
|
protected |
Definition at line 402 of file steminternal.cc.
References Assert, c_bra, c_ket, CAPACITY, among::s, among::s_size, and SIZE.
|
inlinestaticprotected |
Definition at line 77 of file steminternal.h.
References p.
|
inlinestaticprotected |
Definition at line 65 of file steminternal.h.
References p.
|
inlinestaticprotected |
Definition at line 59 of file steminternal.h.
References p.
Referenced by eq_v(), eq_v_b(), insert_v(), and slice_from_v().
|
staticprotected |
Definition at line 94 of file steminternal.cc.
Referenced by Xapian::InternalStemLovins::r_A(), Xapian::InternalStemBasque::r_mark_regions(), Xapian::InternalStemDanish::r_mark_regions(), Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemNorwegian::r_mark_regions(), Xapian::InternalStemSpanish::r_mark_regions(), Xapian::InternalStemSwedish::r_mark_regions(), Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), and Xapian::InternalStemRomanian::r_prelude().
|
private |
Definition at line 428 of file steminternal.cc.
References Assert.
|
inlineprotected |
Definition at line 110 of file steminternal.h.
References slice_from_s().
Referenced by Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemNepali::r_remove_category_1(), Xapian::InternalStemIndonesian::r_remove_particle(), and Xapian::InternalStemLithuanian::r_step1().
|
protected |
Definition at line 440 of file steminternal.cc.
References among::s, and among::s_size.
Referenced by Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), Xapian::InternalStemRomanian::r_prelude(), slice_del(), and slice_from_v().
|
inlineprotected |
Definition at line 108 of file steminternal.h.
References SIZE(), and slice_from_s().
Definition at line 455 of file steminternal.cc.
References CAPACITY.
|
pure virtual |
Virtual method implemented by the subclass to actually do the work.
Implemented in Xapian::InternalStemTurkish, Xapian::InternalStemTamil, Xapian::InternalStemSwedish, Xapian::InternalStemSpanish, Xapian::InternalStemRussian, Xapian::InternalStemRomanian, Xapian::InternalStemPortuguese, Xapian::InternalStemPorter, Xapian::InternalStemNorwegian, Xapian::InternalStemNepali, Xapian::InternalStemLovins, Xapian::InternalStemLithuanian, Xapian::InternalStemKraaij_pohlmann, Xapian::InternalStemItalian, Xapian::InternalStemIrish, Xapian::InternalStemIndonesian, Xapian::InternalStemHungarian, Xapian::InternalStemGerman2, Xapian::InternalStemGerman, Xapian::InternalStemFrench, Xapian::InternalStemFinnish, Xapian::InternalStemEnglish, Xapian::InternalStemEarlyenglish, Xapian::InternalStemDutch, Xapian::InternalStemDanish, Xapian::InternalStemCatalan, Xapian::InternalStemBasque, Xapian::InternalStemArmenian, and Xapian::InternalStemArabic.
|
protected |
Definition at line 56 of file steminternal.h.
Referenced by Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), Xapian::InternalStemRomanian::r_prelude(), Xapian::InternalStemNepali::r_remove_category_1(), Xapian::InternalStemIndonesian::r_remove_particle(), and Xapian::InternalStemLithuanian::r_step1().
|
protected |
Definition at line 56 of file steminternal.h.
Referenced by Xapian::InternalStemLovins::r_A(), Xapian::InternalStemTurkish::r_check_vowel_harmony(), Xapian::InternalStemArmenian::r_mark_regions(), Xapian::InternalStemBasque::r_mark_regions(), Xapian::InternalStemCatalan::r_mark_regions(), Xapian::InternalStemDanish::r_mark_regions(), Xapian::InternalStemFinnish::r_mark_regions(), Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemIrish::r_mark_regions(), Xapian::InternalStemNorwegian::r_mark_regions(), Xapian::InternalStemRussian::r_mark_regions(), Xapian::InternalStemSpanish::r_mark_regions(), Xapian::InternalStemSwedish::r_mark_regions(), Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), Xapian::InternalStemRomanian::r_prelude(), Xapian::InternalStemKraaij_pohlmann::r_R1(), Xapian::InternalStemNepali::r_remove_category_1(), Xapian::InternalStemIndonesian::r_remove_particle(), and Xapian::InternalStemLithuanian::r_step1().
|
protected |
Definition at line 56 of file steminternal.h.
Referenced by Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), Xapian::InternalStemRomanian::r_prelude(), Xapian::InternalStemNepali::r_remove_category_1(), Xapian::InternalStemIndonesian::r_remove_particle(), and Xapian::InternalStemLithuanian::r_step1().
|
protected |
Definition at line 56 of file steminternal.h.
Referenced by Xapian::InternalStemLovins::r_A(), Xapian::InternalStemTurkish::r_check_vowel_harmony(), Xapian::InternalStemArmenian::r_mark_regions(), Xapian::InternalStemBasque::r_mark_regions(), Xapian::InternalStemCatalan::r_mark_regions(), Xapian::InternalStemDanish::r_mark_regions(), Xapian::InternalStemFinnish::r_mark_regions(), Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemIrish::r_mark_regions(), Xapian::InternalStemNorwegian::r_mark_regions(), Xapian::InternalStemRussian::r_mark_regions(), Xapian::InternalStemSpanish::r_mark_regions(), Xapian::InternalStemSwedish::r_mark_regions(), Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), Xapian::InternalStemRomanian::r_prelude(), and Xapian::InternalStemNepali::r_remove_category_1().
|
protected |
Definition at line 56 of file steminternal.h.
Referenced by Xapian::InternalStemLovins::r_A(), Xapian::InternalStemTurkish::r_check_vowel_harmony(), Xapian::InternalStemIndonesian::r_remove_particle(), and Xapian::InternalStemLithuanian::r_step1().
|
protected |
Definition at line 55 of file steminternal.h.
Referenced by CAPACITY(), Xapian::InternalStemLovins::r_A(), Xapian::InternalStemTurkish::r_check_vowel_harmony(), Xapian::InternalStemTamil::r_has_min_length(), Xapian::InternalStemBasque::r_mark_regions(), Xapian::InternalStemDanish::r_mark_regions(), Xapian::InternalStemHungarian::r_mark_regions(), Xapian::InternalStemNorwegian::r_mark_regions(), Xapian::InternalStemSpanish::r_mark_regions(), Xapian::InternalStemSwedish::r_mark_regions(), Xapian::InternalStemArabic::r_Normalize_pre(), Xapian::InternalStemDutch::r_prelude(), Xapian::InternalStemEnglish::r_prelude(), Xapian::InternalStemFrench::r_prelude(), Xapian::InternalStemGerman::r_prelude(), Xapian::InternalStemGerman2::r_prelude(), Xapian::InternalStemItalian::r_prelude(), Xapian::InternalStemPortuguese::r_prelude(), Xapian::InternalStemRomanian::r_prelude(), Xapian::InternalStemIndonesian::r_remove_particle(), SET_CAPACITY(), SET_SIZE(), and SIZE().