PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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)

Definition at line 2098 of file stem_UTF_8_turkish.c.

2098{ SN_close_env(z, 0); }
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:34

References SN_close_env().

◆ turkish_UTF_8_create_env()

struct SN_env * turkish_UTF_8_create_env ( void  )

Definition at line 2096 of file stem_UTF_8_turkish.c.

2096{ return SN_create_env(0, 1); }
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3

References SN_create_env().

◆ turkish_UTF_8_stem()

int turkish_UTF_8_stem ( struct SN_env z)

Definition at line 2066 of file stem_UTF_8_turkish.c.

2066 {
2067
2068 { int ret = r_remove_proper_noun_suffix(z);
2069 if (ret < 0) return ret;
2070 }
2071 { int ret = r_more_than_one_syllable_word(z);
2072 if (ret <= 0) return ret;
2073 }
2074 z->lb = z->c; z->c = z->l;
2075
2076 { int m1 = z->l - z->c; (void)m1;
2077 { int ret = r_stem_nominal_verb_suffixes(z);
2078 if (ret < 0) return ret;
2079 }
2080 z->c = z->l - m1;
2081 }
2082 if (!(z->I[0])) return 0;
2083 { int m2 = z->l - z->c; (void)m2;
2084 { int ret = r_stem_noun_suffixes(z);
2085 if (ret < 0) return ret;
2086 }
2087 z->c = z->l - m2;
2088 }
2089 z->c = z->lb;
2090 { int ret = r_postlude(z);
2091 if (ret <= 0) return ret;
2092 }
2093 return 1;
2094}
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:16
int * I
Definition: api.h:18
int c
Definition: api.h:16
int l
Definition: api.h:16

References SN_env::c, SN_env::I, 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().