PostgreSQL Source Code  git master
stem_ISO_8859_1_portuguese.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_envportuguese_ISO_8859_1_create_env (void)
 
void portuguese_ISO_8859_1_close_env (struct SN_env *z)
 
int portuguese_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ portuguese_ISO_8859_1_close_env()

void portuguese_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 960 of file stem_ISO_8859_1_portuguese.c.

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

References SN_close_env().

◆ portuguese_ISO_8859_1_create_env()

struct SN_env* portuguese_ISO_8859_1_create_env ( void  )

Definition at line 958 of file stem_ISO_8859_1_portuguese.c.

958 { 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().

◆ portuguese_ISO_8859_1_stem()

int portuguese_ISO_8859_1_stem ( struct SN_env z)

Definition at line 878 of file stem_ISO_8859_1_portuguese.c.

878  {
879  { int c1 = z->c;
880  { int ret = r_prelude(z);
881  if (ret < 0) return ret;
882  }
883  z->c = c1;
884  }
885 
886  { int ret = r_mark_regions(z);
887  if (ret < 0) return ret;
888  }
889  z->lb = z->c; z->c = z->l;
890 
891  { int m2 = z->l - z->c; (void)m2;
892  { int m3 = z->l - z->c; (void)m3;
893  { int m4 = z->l - z->c; (void)m4;
894  { int m5 = z->l - z->c; (void)m5;
895  { int ret = r_standard_suffix(z);
896  if (ret == 0) goto lab4;
897  if (ret < 0) return ret;
898  }
899  goto lab3;
900  lab4:
901  z->c = z->l - m5;
902  { int ret = r_verb_suffix(z);
903  if (ret == 0) goto lab2;
904  if (ret < 0) return ret;
905  }
906  }
907  lab3:
908  z->c = z->l - m4;
909  { int m6 = z->l - z->c; (void)m6;
910  z->ket = z->c;
911  if (z->c <= z->lb || z->p[z->c - 1] != 'i') goto lab5;
912  z->c--;
913  z->bra = z->c;
914  { int m_test7 = z->l - z->c;
915  if (z->c <= z->lb || z->p[z->c - 1] != 'c') goto lab5;
916  z->c--;
917  z->c = z->l - m_test7;
918  }
919  { int ret = r_RV(z);
920  if (ret == 0) goto lab5;
921  if (ret < 0) return ret;
922  }
923  { int ret = slice_del(z);
924  if (ret < 0) return ret;
925  }
926  lab5:
927  z->c = z->l - m6;
928  }
929  }
930  goto lab1;
931  lab2:
932  z->c = z->l - m3;
933  { int ret = r_residual_suffix(z);
934  if (ret == 0) goto lab0;
935  if (ret < 0) return ret;
936  }
937  }
938  lab1:
939  lab0:
940  z->c = z->l - m2;
941  }
942  { int m8 = z->l - z->c; (void)m8;
943  { int ret = r_residual_form(z);
944  if (ret < 0) return ret;
945  }
946  z->c = z->l - m8;
947  }
948  z->c = z->lb;
949  { int c9 = z->c;
950  { int ret = r_postlude(z);
951  if (ret < 0) return ret;
952  }
953  z->c = c9;
954  }
955  return 1;
956 }
static int r_standard_suffix(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
static int r_RV(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_residual_form(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
int lb
Definition: api.h:16
symbol * p
Definition: api.h:15
int ket
Definition: api.h:16
int c
Definition: api.h:16
int bra
Definition: api.h:16
int l
Definition: api.h:16
int slice_del(struct SN_env *z)
Definition: utilities.c:431

References SN_env::bra, SN_env::c, SN_env::ket, SN_env::l, SN_env::lb, SN_env::p, r_mark_regions(), r_postlude(), r_prelude(), r_residual_form(), r_residual_suffix(), r_RV(), r_standard_suffix(), r_verb_suffix(), and slice_del().