PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_UTF_8_finnish.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_envfinnish_UTF_8_create_env (void)
 
void finnish_UTF_8_close_env (struct SN_env *z)
 
int finnish_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ finnish_UTF_8_close_env()

void finnish_UTF_8_close_env ( struct SN_env z)

Definition at line 721 of file stem_UTF_8_finnish.c.

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

References SN_close_env().

◆ finnish_UTF_8_create_env()

struct SN_env* finnish_UTF_8_create_env ( void  )

Definition at line 719 of file stem_UTF_8_finnish.c.

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

References SN_create_env().

◆ finnish_UTF_8_stem()

int finnish_UTF_8_stem ( struct SN_env z)

Definition at line 658 of file stem_UTF_8_finnish.c.

658  {
659  { int c1 = z->c;
660  { int ret = r_mark_regions(z);
661  if (ret < 0) return ret;
662  }
663  z->c = c1;
664  }
665  z->I[2] = 0;
666  z->lb = z->c; z->c = z->l;
667 
668  { int m2 = z->l - z->c; (void)m2;
669  { int ret = r_particle_etc(z);
670  if (ret < 0) return ret;
671  }
672  z->c = z->l - m2;
673  }
674  { int m3 = z->l - z->c; (void)m3;
675  { int ret = r_possessive(z);
676  if (ret < 0) return ret;
677  }
678  z->c = z->l - m3;
679  }
680  { int m4 = z->l - z->c; (void)m4;
681  { int ret = r_case_ending(z);
682  if (ret < 0) return ret;
683  }
684  z->c = z->l - m4;
685  }
686  { int m5 = z->l - z->c; (void)m5;
687  { int ret = r_other_endings(z);
688  if (ret < 0) return ret;
689  }
690  z->c = z->l - m5;
691  }
692 
693  if (!(z->I[2])) goto lab1;
694  { int m6 = z->l - z->c; (void)m6;
695  { int ret = r_i_plural(z);
696  if (ret < 0) return ret;
697  }
698  z->c = z->l - m6;
699  }
700  goto lab0;
701 lab1:
702  { int m7 = z->l - z->c; (void)m7;
703  { int ret = r_t_plural(z);
704  if (ret < 0) return ret;
705  }
706  z->c = z->l - m7;
707  }
708 lab0:
709  { int m8 = z->l - z->c; (void)m8;
710  { int ret = r_tidy(z);
711  if (ret < 0) return ret;
712  }
713  z->c = z->l - m8;
714  }
715  z->c = z->lb;
716  return 1;
717 }
static int r_case_ending(struct SN_env *z)
static int r_tidy(struct SN_env *z)
static int r_other_endings(struct SN_env *z)
static int r_t_plural(struct SN_env *z)
static int r_i_plural(struct SN_env *z)
static int r_possessive(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_particle_etc(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_case_ending(), r_i_plural(), r_mark_regions(), r_other_endings(), r_particle_etc(), r_possessive(), r_t_plural(), and r_tidy().