PostgreSQL Source Code git master
Loading...
Searching...
No Matches
stem_UTF_8_turkish.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct SN_envturkish_UTF_8_create_env (void)
 
void turkish_UTF_8_close_env (struct SN_env *z)
 
int turkish_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ turkish_UTF_8_close_env()

void turkish_UTF_8_close_env ( struct SN_env z)
extern

Definition at line 2231 of file stem_UTF_8_turkish.c.

2231 {
2232 SN_delete_env(z);
2233}
void SN_delete_env(struct SN_env *z)
Definition api.c:18

References SN_delete_env().

◆ turkish_UTF_8_create_env()

struct SN_env * turkish_UTF_8_create_env ( void  )
extern

Definition at line 2223 of file stem_UTF_8_turkish.c.

2223 {
2224 struct SN_env * z = SN_new_env(sizeof(SN_local));
2225 if (z) {
2226 ((SN_local *)z)->b_continue_stemming_noun_suffixes = 0;
2227 }
2228 return z;
2229}
struct SN_env * SN_new_env(int alloc_size)
Definition api.c:5
Definition api.h:15

References SN_new_env().

◆ turkish_UTF_8_stem()

int turkish_UTF_8_stem ( struct SN_env z)
extern

Definition at line 2192 of file stem_UTF_8_turkish.c.

2192 {
2193 {
2194 int ret = r_remove_proper_noun_suffix(z);
2195 if (ret < 0) return ret;
2196 }
2197 {
2198 int ret = r_more_than_one_syllable_word(z);
2199 if (ret <= 0) return ret;
2200 }
2201 z->lb = z->c; z->c = z->l;
2202 {
2203 int v_1 = z->l - z->c;
2204 {
2205 int ret = r_stem_nominal_verb_suffixes(z);
2206 if (ret < 0) return ret;
2207 }
2208 z->c = z->l - v_1;
2209 }
2210 if (!((SN_local *)z)->b_continue_stemming_noun_suffixes) return 0;
2211 {
2212 int v_2 = z->l - z->c;
2213 {
2214 int ret = r_stem_noun_suffixes(z);
2215 if (ret < 0) return ret;
2216 }
2217 z->c = z->l - v_2;
2218 }
2219 z->c = z->lb;
2220 return r_postlude(z);
2221}
static int fb(int x)
static int r_remove_proper_noun_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_stem_nominal_verb_suffixes(struct SN_env *z)
static int r_more_than_one_syllable_word(struct SN_env *z)
static int r_stem_noun_suffixes(struct SN_env *z)
int lb
Definition api.h:17
int c
Definition api.h:17
int l
Definition api.h:17

References SN_env::c, fb(), SN_env::l, SN_env::lb, r_more_than_one_syllable_word(), r_postlude(), r_remove_proper_noun_suffix(), r_stem_nominal_verb_suffixes(), and r_stem_noun_suffixes().