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

Function Documentation

◆ portuguese_UTF_8_close_env()

void portuguese_UTF_8_close_env ( struct SN_env z)

Definition at line 966 of file stem_UTF_8_portuguese.c.

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

struct SN_env* portuguese_UTF_8_create_env ( void  )

Definition at line 964 of file stem_UTF_8_portuguese.c.

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

int portuguese_UTF_8_stem ( struct SN_env z)

Definition at line 884 of file stem_UTF_8_portuguese.c.

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