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 2095 of file stem_UTF_8_turkish.c.

2095{ 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 2093 of file stem_UTF_8_turkish.c.

2093{ 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 2067 of file stem_UTF_8_turkish.c.

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