PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | among |
Macros | |
#define | MAXINT INT_MAX |
#define | MININT INT_MIN |
#define | HEAD 2*sizeof(int) |
#define | SIZE(p) ((int *)(p))[-1] |
#define | SET_SIZE(p, n) ((int *)(p))[-1] = n |
#define | CAPACITY(p) ((int *)(p))[-2] |
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) |
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 | find_among_b (struct SN_env *z, const struct among *v, int v_size) |
int | replace_s (struct SN_env *z, int c_bra, int c_ket, int s_size, const symbol *s, int *adjptr) |
int | slice_from_s (struct SN_env *z, int s_size, const symbol *s) |
int | slice_from_v (struct SN_env *z, const symbol *p) |
int | slice_del (struct SN_env *z) |
int | insert_s (struct SN_env *z, int bra, int ket, int s_size, const symbol *s) |
int | insert_v (struct SN_env *z, int bra, int ket, const symbol *p) |
symbol * | slice_to (struct SN_env *z, symbol *p) |
symbol * | assign_to (struct SN_env *z, symbol *p) |
int | len_utf8 (const symbol *p) |
void | debug (struct SN_env *z, int number, int line_count) |
Definition at line 466 of file utilities.c.
References CAPACITY, increase_size(), SN_env::l, len, SN_env::p, and SET_SIZE.
symbol* create_s | ( | void | ) |
Definition at line 5 of file utilities.c.
References CAPACITY, CREATE_SIZE, HEAD, malloc, and SET_SIZE.
Referenced by replace_s(), and SN_create_env().
void debug | ( | struct SN_env * | z, |
int | number, | ||
int | line_count | ||
) |
Definition at line 215 of file utilities.c.
References SN_env::c, SN_env::l, and SN_env::p.
Referenced by eq_v(), r_fix_va_start(), r_KER(), r_mark_regions(), r_Prefix_Step2(), r_prelude(), r_remove_pronoun_prefixes(), r_remove_question_prefixes(), and russian_UTF_8_stem().
Definition at line 220 of file utilities.c.
References SN_env::c, SN_env::lb, and SN_env::p.
Referenced by eq_v_b(), french_UTF_8_stem(), r_adjectival(), r_append_U_to_stems_ending_with_d_or_g(), r_case_ending(), r_check_vowel_harmony(), r_en_ending(), r_fix_ending(), r_is_reserved_word(), r_mark_ki(), r_mark_yken(), r_other_endings(), r_other_suffix(), r_perfective_gerund(), r_possessive(), r_remove_category_1(), r_remove_category_2(), r_remove_common_word_endings(), r_remove_plural_suffix(), r_remove_tense_suffix(), r_remove_um(), r_remove_vetrumai_urupukal(), r_residual_suffix(), r_standard_suffix(), r_step5a(), r_step5b(), r_step5c(), r_step5d(), r_step5e(), r_step5f(), r_step5i(), r_step_0(), r_steps3(), r_steps8(), r_t_plural(), r_tidy_up(), r_un_accent(), r_verb(), and russian_UTF_8_stem().
Definition at line 225 of file utilities.c.
Definition at line 229 of file utilities.c.
References eq_s_b(), and SIZE.
Referenced by r_tidy(), and r_undouble().
Definition at line 233 of file utilities.c.
References SN_env::c, among::function, i, j, SN_env::l, SN_env::p, res, among::result, among::s, among::s_size, and among::substring_i.
Referenced by r_Checks1(), r_cleaning(), r_cyr_to_lat(), r_exception1(), r_initial_morph(), r_mark_regions(), r_Normalize_post(), r_Normalize_pre(), r_postlude(), r_Prefix_Step1(), r_Prefix_Step2(), r_Prefix_Step3_Verb(), r_Prefix_Step3a_Noun(), r_Prefix_Step3b_Noun(), r_Prefix_Step4_Verb(), r_prelude(), r_remove_first_order_prefix(), r_remove_pronoun_prefixes(), r_remove_question_prefixes(), and r_remove_second_order_prefix().
Definition at line 298 of file utilities.c.
References SN_env::c, among::function, i, j, SN_env::lb, SN_env::p, res, among::result, among::s, among::s_size, and among::substring_i.
Referenced by hindi_UTF_8_stem(), r_aditzak(), r_adjectival(), r_adjective(), r_adjetiboak(), r_attached_pronoun(), r_case(), r_case_ending(), r_case_other(), r_case_special(), r_check_category_2(), r_combo_suffix(), r_consonant_pair(), r_deriv(), r_derivational(), r_double(), r_ending(), r_exception2(), r_factive(), r_fix_chdz(), r_fix_conflicts(), r_fix_ending(), r_fix_gd(), r_i_plural(), r_i_verb_suffix(), r_instrum(), r_izenak(), r_LONG(), r_main_suffix(), r_mark_cAsInA(), r_mark_DA(), r_mark_DAn(), r_mark_DUr(), r_mark_lAr(), r_mark_lArI(), r_mark_nA(), r_mark_ncA(), r_mark_ndA(), r_mark_ndAn(), r_mark_nU(), r_mark_nUn(), r_mark_nUz(), r_mark_possessives(), r_mark_sUn(), r_mark_sUnUz(), r_mark_yA(), r_mark_yDU(), r_mark_ylA(), r_mark_ymUs_(), r_mark_ysA(), r_mark_yUm(), r_mark_yUz(), r_Normalize_post(), r_noun(), r_noun_sfx(), r_other_endings(), r_other_suffix(), r_owned(), r_particle_etc(), r_perfective_gerund(), r_plur_owner(), r_plural(), r_possessive(), r_post_process_last_consonants(), r_reflexive(), r_remove_category_1(), r_remove_category_2(), r_remove_category_3(), r_remove_command_suffixes(), r_remove_common_word_endings(), r_remove_particle(), r_remove_plural_suffix(), r_remove_possessive_pronoun(), r_remove_question_suffixes(), r_remove_suffix(), r_remove_tense_suffix(), r_remove_vetrumai_urupukal(), r_residual_form(), r_residual_suffix(), r_sing_owner(), r_standard_suffix(), r_step1(), r_step2(), r_step2a(), r_step2b(), r_step2c(), r_step2d(), r_step3(), r_step4(), r_step5a(), r_step5b(), r_step5c(), r_step5d(), r_step5e(), r_step5f(), r_step5g(), r_step5h(), r_step5i(), r_step5j(), r_step5k(), r_step5l(), r_step5m(), r_step6(), r_step7(), r_step_0(), r_Step_1(), r_Step_1a(), r_Step_1b(), r_Step_2(), r_Step_3(), r_Step_4(), r_Step_5(), r_steps1(), r_steps10(), r_steps2(), r_steps3(), r_steps4(), r_steps5(), r_steps6(), r_steps7(), r_steps8(), r_steps9(), r_Suffix_All_alef_maqsura(), r_Suffix_Noun_Step1a(), r_Suffix_Noun_Step1b(), r_Suffix_Noun_Step2a(), r_Suffix_Noun_Step2b(), r_Suffix_Noun_Step2c1(), r_Suffix_Noun_Step2c2(), r_Suffix_Noun_Step3(), r_Suffix_Verb_Step1(), r_Suffix_Verb_Step2a(), r_Suffix_Verb_Step2b(), r_Suffix_Verb_Step2c(), r_t_plural(), r_tidy_up(), r_tolower(), r_un_double(), r_undouble(), r_v_ending(), r_verb(), r_verb_sfx(), r_verb_suffix(), r_vowel_suffix(), and r_y_verb_suffix().
int in_grouping | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 167 of file utilities.c.
References SN_env::c, SN_env::l, SN_env::p, and repeat().
Referenced by porter_ISO_8859_1_stem(), r_mark_regions(), r_prelude(), r_remove_first_order_prefix(), and r_VOWEL().
int in_grouping_b | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 179 of file utilities.c.
References SN_env::c, SN_env::lb, SN_env::p, and repeat().
Referenced by r_case_ending(), r_main_suffix(), r_particle_etc(), r_shortv(), r_standard_suffix(), r_Step_2(), r_t_plural(), r_tidy(), r_undouble(), r_VI(), and r_vowel_suffix().
int in_grouping_b_U | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 129 of file utilities.c.
References SN_env::c, get_b_utf8(), SN_env::lb, SN_env::p, and repeat().
Referenced by r_case_ending(), r_CONSONANT(), r_main_suffix(), r_mark_sU(), r_mark_suffix_with_optional_n_consonant(), r_mark_suffix_with_optional_s_consonant(), r_mark_suffix_with_optional_U_vowel(), r_mark_suffix_with_optional_y_consonant(), r_mark_yU(), r_particle_etc(), r_shortv(), r_standard_suffix(), r_step3(), r_step4(), r_step5b(), r_step5c(), r_Step_2(), r_t_plural(), r_tidy(), r_undouble(), r_VI(), and r_vowel_suffix().
int in_grouping_U | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 117 of file utilities.c.
References SN_env::c, get_utf8(), SN_env::l, SN_env::p, and repeat().
Referenced by lithuanian_UTF_8_stem(), porter_UTF_8_stem(), r_mark_regions(), r_prelude(), r_remove_first_order_prefix(), and r_VOWEL().
Definition at line 435 of file utilities.c.
References SN_env::bra, SN_env::ket, replace_s(), among::s, and among::s_size.
Referenced by insert_v(), r_append_U_to_stems_ending_with_d_or_g(), r_step2a(), and r_Step_1b().
Definition at line 444 of file utilities.c.
References insert_s(), and SIZE.
int len_utf8 | ( | const symbol * | p | ) |
Definition at line 478 of file utilities.c.
References b, len, size, and SIZE.
Referenced by lithuanian_UTF_8_stem(), r_Checks1(), r_fix_ending(), r_has_min_length(), r_Prefix_Step1(), r_Prefix_Step2(), r_Prefix_Step3_Verb(), r_Prefix_Step3a_Noun(), r_Prefix_Step3b_Noun(), r_Prefix_Step4_Verb(), r_remove_vetrumai_urupukal(), r_Suffix_Noun_Step1a(), r_Suffix_Noun_Step1b(), r_Suffix_Noun_Step2a(), r_Suffix_Noun_Step2b(), r_Suffix_Noun_Step2c1(), r_Suffix_Noun_Step2c2(), r_Suffix_Noun_Step3(), r_Suffix_Verb_Step1(), r_Suffix_Verb_Step2a(), r_Suffix_Verb_Step2b(), and r_Suffix_Verb_Step2c().
void lose_s | ( | symbol * | p | ) |
Definition at line 15 of file utilities.c.
Referenced by increase_size(), slice_to(), and SN_close_env().
int out_grouping | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 191 of file utilities.c.
References SN_env::c, SN_env::l, SN_env::p, and repeat().
Referenced by indonesian_ISO_8859_1_stem(), porter_ISO_8859_1_stem(), r_KER(), and r_mark_regions().
int out_grouping_b | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 203 of file utilities.c.
References SN_env::c, SN_env::lb, SN_env::p, and repeat().
Referenced by r_e_ending(), r_en_ending(), r_i_verb_suffix(), r_main_suffix(), r_residual_suffix(), r_shortv(), r_standard_suffix(), r_Step_1a(), r_Step_1b(), r_Step_1c(), r_un_accent(), and r_verb_suffix().
int out_grouping_b_U | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 153 of file utilities.c.
References SN_env::c, get_b_utf8(), SN_env::lb, SN_env::p, and repeat().
Referenced by r_append_U_to_stems_ending_with_d_or_g(), r_check_vowel_harmony(), r_e_ending(), r_en_ending(), r_i_verb_suffix(), r_main_suffix(), r_mark_suffix_with_optional_U_vowel(), r_residual_suffix(), r_shortv(), r_standard_suffix(), r_Step_1a(), r_Step_1b(), r_Step_1c(), r_un_accent(), and r_verb_suffix().
int out_grouping_U | ( | struct SN_env * | z, |
const unsigned char * | s, | ||
int | min, | ||
int | max, | ||
int | repeat | ||
) |
Definition at line 141 of file utilities.c.
References SN_env::c, get_utf8(), SN_env::l, SN_env::p, and repeat().
Referenced by indonesian_UTF_8_stem(), lithuanian_UTF_8_stem(), porter_UTF_8_stem(), r_KER(), r_mark_regions(), and r_more_than_one_syllable_word().
int replace_s | ( | struct SN_env * | z, |
int | c_bra, | ||
int | c_ket, | ||
int | s_size, | ||
const symbol * | s, | ||
int * | adjptr | ||
) |
Definition at line 374 of file utilities.c.
References SN_env::c, CAPACITY, create_s(), increase_size(), SN_env::l, len, SN_env::p, among::s, among::s_size, SET_SIZE, and SIZE.
Referenced by insert_s(), slice_from_s(), and SN_set_current().
int skip_b_utf8 | ( | const symbol * | p, |
int | c, | ||
int | limit, | ||
int | n | ||
) |
Definition at line 52 of file utilities.c.
References b.
Referenced by arabic_UTF_8_stem(), r_case_ending(), r_consonant_pair(), r_mark_suffix_with_optional_n_consonant(), r_mark_suffix_with_optional_s_consonant(), r_mark_suffix_with_optional_U_vowel(), r_mark_suffix_with_optional_y_consonant(), r_standard_suffix(), r_Step_1a(), r_Step_1b(), r_tidy(), r_tolower(), r_un_double(), and r_undouble().
int skip_utf8 | ( | const symbol * | p, |
int | c, | ||
int | limit, | ||
int | n | ||
) |
Definition at line 27 of file utilities.c.
References b.
Referenced by english_UTF_8_stem(), hindi_UTF_8_stem(), lithuanian_UTF_8_stem(), porter_UTF_8_stem(), r_cleaning(), r_cyr_to_lat(), r_mark_regions(), r_Normalize_post(), r_Normalize_pre(), r_postlude(), r_prelude(), and russian_UTF_8_stem().
int slice_del | ( | struct SN_env * | z | ) |
Definition at line 431 of file utilities.c.
References slice_from_s().
Referenced by hindi_UTF_8_stem(), portuguese_ISO_8859_1_stem(), portuguese_UTF_8_stem(), r_aditzak(), r_adjectival(), r_adjective(), r_adjetiboak(), r_attached_pronoun(), r_case(), r_case_ending(), r_case_other(), r_consonant_pair(), r_deriv(), r_derivational(), r_e_ending(), r_en_ending(), r_ending(), r_factive(), r_fix_ending(), r_i_plural(), r_i_verb_suffix(), r_initial_morph(), r_instrum(), r_izenak(), r_main_suffix(), r_Normalize_pre(), r_noun(), r_noun_sfx(), r_other_endings(), r_other_suffix(), r_owned(), r_particle_etc(), r_perfective_gerund(), r_plur_owner(), r_plural(), r_possessive(), r_postlude(), r_Prefix_Step2(), r_Prefix_Step3a_Noun(), r_Prefix_Step3b_Noun(), r_prelude(), r_reflexive(), r_remove_category_1(), r_remove_category_2(), r_remove_category_3(), r_remove_command_suffixes(), r_remove_common_word_endings(), r_remove_first_order_prefix(), r_remove_particle(), r_remove_plural_suffix(), r_remove_possessive_pronoun(), r_remove_pronoun_prefixes(), r_remove_question_prefixes(), r_remove_second_order_prefix(), r_remove_suffix(), r_remove_tense_suffix(), r_remove_vetrumai_urupukal(), r_residual_form(), r_residual_suffix(), r_sing_owner(), r_standard_suffix(), r_stem_nominal_verb_suffixes(), r_stem_noun_suffixes(), r_stem_suffix_chain_before_ki(), r_step1(), r_step2(), r_step2a(), r_step2b(), r_step2c(), r_step2d(), r_step3(), r_step4(), r_step5a(), r_step5b(), r_step5c(), r_step5d(), r_step5e(), r_step5f(), r_step5g(), r_step5h(), r_step5i(), r_step5j(), r_step5k(), r_step5l(), r_step5m(), r_step6(), r_step7(), r_step_0(), r_Step_1a(), r_Step_1b(), r_Step_2(), r_Step_3(), r_Step_4(), r_Step_5(), r_Step_5a(), r_Step_5b(), r_steps1(), r_steps10(), r_steps2(), r_steps3(), r_steps4(), r_steps5(), r_steps6(), r_steps7(), r_steps8(), r_steps9(), r_Suffix_Noun_Step1a(), r_Suffix_Noun_Step1b(), r_Suffix_Noun_Step2a(), r_Suffix_Noun_Step2b(), r_Suffix_Noun_Step2c1(), r_Suffix_Noun_Step2c2(), r_Suffix_Noun_Step3(), r_Suffix_Verb_Step1(), r_Suffix_Verb_Step2a(), r_Suffix_Verb_Step2b(), r_Suffix_Verb_Step2c(), r_t_plural(), r_tidy(), r_tidy_up(), r_un_double(), r_undouble(), r_verb(), r_verb_sfx(), r_verb_suffix(), r_vowel_suffix(), r_y_verb_suffix(), russian_KOI8_R_stem(), and russian_UTF_8_stem().
Definition at line 422 of file utilities.c.
References SN_env::bra, SN_env::ket, replace_s(), among::s, among::s_size, and slice_check().
Referenced by french_ISO_8859_1_stem(), french_UTF_8_stem(), porter_ISO_8859_1_stem(), porter_UTF_8_stem(), r_aditzak(), r_adjetiboak(), r_attached_pronoun(), r_case_other(), r_case_special(), r_cleaning(), r_combo_suffix(), r_cyr_to_lat(), r_deriv(), r_exception1(), r_fix_chdz(), r_fix_conflicts(), r_fix_ending(), r_fix_gd(), r_fix_va_start(), r_initial_morph(), r_izenak(), r_main_suffix(), r_mark_regions(), r_Normalize_post(), r_Normalize_pre(), r_other_suffix(), r_owned(), r_plur_owner(), r_plural(), r_possessive(), r_post_process_last_consonants(), r_postlude(), r_Prefix_Step1(), r_Prefix_Step3_Verb(), r_Prefix_Step3b_Noun(), r_Prefix_Step4_Verb(), r_prelude(), r_remove_common_word_endings(), r_remove_first_order_prefix(), r_remove_plural_suffix(), r_remove_question_suffixes(), r_remove_second_order_prefix(), r_remove_tense_suffix(), r_remove_um(), r_remove_vetrumai_urupukal(), r_residual_form(), r_residual_suffix(), r_sing_owner(), r_standard_suffix(), r_step1(), r_step2b(), r_step2c(), r_step2d(), r_step3(), r_step4(), r_step5a(), r_step5b(), r_step5c(), r_step5d(), r_step5e(), r_step5f(), r_step5g(), r_step5h(), r_step5i(), r_step5j(), r_step5k(), r_step5l(), r_step5m(), r_step6(), r_step_0(), r_Step_1(), r_Step_1a(), r_Step_1b(), r_Step_1c(), r_Step_2(), r_Step_3(), r_steps1(), r_steps10(), r_steps2(), r_steps3(), r_steps4(), r_steps5(), r_steps6(), r_steps7(), r_steps8(), r_steps9(), r_Suffix_All_alef_maqsura(), r_tolower(), r_un_accent(), r_v_ending(), russian_KOI8_R_stem(), russian_UTF_8_stem(), slice_del(), and slice_from_v().
Definition at line 427 of file utilities.c.
References SIZE, and slice_from_s().
Definition at line 448 of file utilities.c.
References SN_env::bra, CAPACITY, increase_size(), SN_env::ket, len, lose_s(), SN_env::p, SET_SIZE, and slice_check().
Referenced by r_tidy(), and r_undouble().