PostgreSQL Source Code  git master
stem_UTF_8_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_UTF_8_create_env (void)
 
void romanian_UTF_8_close_env (struct SN_env *z)
 
int romanian_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ romanian_UTF_8_close_env()

void romanian_UTF_8_close_env ( struct SN_env z)

Definition at line 970 of file stem_UTF_8_romanian.c.

970 { 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_UTF_8_create_env()

struct SN_env* romanian_UTF_8_create_env ( void  )

Definition at line 968 of file stem_UTF_8_romanian.c.

968 { 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_UTF_8_stem()

int romanian_UTF_8_stem ( struct SN_env z)

Definition at line 912 of file stem_UTF_8_romanian.c.

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