PostgreSQL Source Code  git master
stem_ISO_8859_2_romanian.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_envromanian_ISO_8859_2_create_env (void)
 
void romanian_ISO_8859_2_close_env (struct SN_env *z)
 
int romanian_ISO_8859_2_stem (struct SN_env *z)
 

Function Documentation

◆ romanian_ISO_8859_2_close_env()

void romanian_ISO_8859_2_close_env ( struct SN_env z)

Definition at line 964 of file stem_ISO_8859_2_romanian.c.

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

References SN_close_env().

◆ romanian_ISO_8859_2_create_env()

struct SN_env* romanian_ISO_8859_2_create_env ( void  )

Definition at line 962 of file stem_ISO_8859_2_romanian.c.

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

References SN_create_env().

◆ romanian_ISO_8859_2_stem()

int romanian_ISO_8859_2_stem ( struct SN_env z)

Definition at line 906 of file stem_ISO_8859_2_romanian.c.

906  {
907  { int c1 = z->c;
908  { int ret = r_prelude(z);
909  if (ret < 0) return ret;
910  }
911  z->c = c1;
912  }
913 
914  { int ret = r_mark_regions(z);
915  if (ret < 0) return ret;
916  }
917  z->lb = z->c; z->c = z->l;
918 
919  { int m2 = z->l - z->c; (void)m2;
920  { int ret = r_step_0(z);
921  if (ret < 0) return ret;
922  }
923  z->c = z->l - m2;
924  }
925  { int m3 = z->l - z->c; (void)m3;
926  { int ret = r_standard_suffix(z);
927  if (ret < 0) return ret;
928  }
929  z->c = z->l - m3;
930  }
931  { int m4 = z->l - z->c; (void)m4;
932  { int m5 = z->l - z->c; (void)m5;
933  if (!(z->I[3])) goto lab2;
934  goto lab1;
935  lab2:
936  z->c = z->l - m5;
937  { int ret = r_verb_suffix(z);
938  if (ret == 0) goto lab0;
939  if (ret < 0) return ret;
940  }
941  }
942  lab1:
943  lab0:
944  z->c = z->l - m4;
945  }
946  { int m6 = z->l - z->c; (void)m6;
947  { int ret = r_vowel_suffix(z);
948  if (ret < 0) return ret;
949  }
950  z->c = z->l - m6;
951  }
952  z->c = z->lb;
953  { int c7 = z->c;
954  { int ret = r_postlude(z);
955  if (ret < 0) return ret;
956  }
957  z->c = c7;
958  }
959  return 1;
960 }
static int r_standard_suffix(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_vowel_suffix(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_step_0(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_mark_regions(), r_postlude(), r_prelude(), r_standard_suffix(), r_step_0(), r_verb_suffix(), and r_vowel_suffix().