PostgreSQL Source Code  git master
stem_UTF_8_irish.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_envirish_UTF_8_create_env (void)
 
void irish_UTF_8_close_env (struct SN_env *z)
 
int irish_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ irish_UTF_8_close_env()

void irish_UTF_8_close_env ( struct SN_env z)

Definition at line 469 of file stem_UTF_8_irish.c.

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

References SN_close_env().

◆ irish_UTF_8_create_env()

struct SN_env* irish_UTF_8_create_env ( void  )

Definition at line 467 of file stem_UTF_8_irish.c.

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

References SN_create_env().

◆ irish_UTF_8_stem()

int irish_UTF_8_stem ( struct SN_env z)

Definition at line 432 of file stem_UTF_8_irish.c.

432  {
433  { int c1 = z->c;
434  { int ret = r_initial_morph(z);
435  if (ret < 0) return ret;
436  }
437  z->c = c1;
438  }
439 
440  { int ret = r_mark_regions(z);
441  if (ret < 0) return ret;
442  }
443  z->lb = z->c; z->c = z->l;
444 
445  { int m2 = z->l - z->c; (void)m2;
446  { int ret = r_noun_sfx(z);
447  if (ret < 0) return ret;
448  }
449  z->c = z->l - m2;
450  }
451  { int m3 = z->l - z->c; (void)m3;
452  { int ret = r_deriv(z);
453  if (ret < 0) return ret;
454  }
455  z->c = z->l - m3;
456  }
457  { int m4 = z->l - z->c; (void)m4;
458  { int ret = r_verb_sfx(z);
459  if (ret < 0) return ret;
460  }
461  z->c = z->l - m4;
462  }
463  z->c = z->lb;
464  return 1;
465 }
static int r_noun_sfx(struct SN_env *z)
static int r_deriv(struct SN_env *z)
static int r_initial_morph(struct SN_env *z)
static int r_verb_sfx(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_deriv(), r_initial_morph(), r_mark_regions(), r_noun_sfx(), and r_verb_sfx().