PostgreSQL Source Code  git master
stem_ISO_8859_1_danish.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_envdanish_ISO_8859_1_create_env (void)
 
void danish_ISO_8859_1_close_env (struct SN_env *z)
 
int danish_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ danish_ISO_8859_1_close_env()

void danish_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 313 of file stem_ISO_8859_1_danish.c.

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

References SN_close_env().

◆ danish_ISO_8859_1_create_env()

struct SN_env* danish_ISO_8859_1_create_env ( void  )

Definition at line 311 of file stem_ISO_8859_1_danish.c.

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

References SN_create_env().

◆ danish_ISO_8859_1_stem()

int danish_ISO_8859_1_stem ( struct SN_env z)

Definition at line 274 of file stem_ISO_8859_1_danish.c.

274  {
275  { int c1 = z->c;
276  { int ret = r_mark_regions(z);
277  if (ret < 0) return ret;
278  }
279  z->c = c1;
280  }
281  z->lb = z->c; z->c = z->l;
282 
283  { int m2 = z->l - z->c; (void)m2;
284  { int ret = r_main_suffix(z);
285  if (ret < 0) return ret;
286  }
287  z->c = z->l - m2;
288  }
289  { int m3 = z->l - z->c; (void)m3;
290  { int ret = r_consonant_pair(z);
291  if (ret < 0) return ret;
292  }
293  z->c = z->l - m3;
294  }
295  { int m4 = z->l - z->c; (void)m4;
296  { int ret = r_other_suffix(z);
297  if (ret < 0) return ret;
298  }
299  z->c = z->l - m4;
300  }
301  { int m5 = z->l - z->c; (void)m5;
302  { int ret = r_undouble(z);
303  if (ret < 0) return ret;
304  }
305  z->c = z->l - m5;
306  }
307  z->c = z->lb;
308  return 1;
309 }
static int r_other_suffix(struct SN_env *z)
static int r_consonant_pair(struct SN_env *z)
static int r_main_suffix(struct SN_env *z)
static int r_undouble(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int lb
Definition: api.h:16
int c
Definition: api.h:16
int l
Definition: api.h:16

References SN_env::c, SN_env::l, SN_env::lb, r_consonant_pair(), r_main_suffix(), r_mark_regions(), r_other_suffix(), and r_undouble().