PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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

void portuguese_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 1016 of file stem_ISO_8859_1_portuguese.c.

References SN_close_env().

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

Definition at line 1014 of file stem_ISO_8859_1_portuguese.c.

References SN_create_env().

1014 { return SN_create_env(0, 3, 0); }
struct SN_env * SN_create_env(int S_size, int I_size, int B_size)
Definition: api.c:3
int portuguese_ISO_8859_1_stem ( struct SN_env z)

Definition at line 926 of file stem_ISO_8859_1_portuguese.c.

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

926  {
927  { int c1 = z->c; /* do, line 202 */
928  { int ret = r_prelude(z);
929  if (ret == 0) goto lab0; /* call prelude, line 202 */
930  if (ret < 0) return ret;
931  }
932  lab0:
933  z->c = c1;
934  }
935  { int c2 = z->c; /* do, line 203 */
936  { int ret = r_mark_regions(z);
937  if (ret == 0) goto lab1; /* call mark_regions, line 203 */
938  if (ret < 0) return ret;
939  }
940  lab1:
941  z->c = c2;
942  }
943  z->lb = z->c; z->c = z->l; /* backwards, line 204 */
944 
945  { int m3 = z->l - z->c; (void)m3; /* do, line 205 */
946  { int m4 = z->l - z->c; (void)m4; /* or, line 209 */
947  { int m5 = z->l - z->c; (void)m5; /* and, line 207 */
948  { int m6 = z->l - z->c; (void)m6; /* or, line 206 */
949  { int ret = r_standard_suffix(z);
950  if (ret == 0) goto lab6; /* call standard_suffix, line 206 */
951  if (ret < 0) return ret;
952  }
953  goto lab5;
954  lab6:
955  z->c = z->l - m6;
956  { int ret = r_verb_suffix(z);
957  if (ret == 0) goto lab4; /* call verb_suffix, line 206 */
958  if (ret < 0) return ret;
959  }
960  }
961  lab5:
962  z->c = z->l - m5;
963  { int m7 = z->l - z->c; (void)m7; /* do, line 207 */
964  z->ket = z->c; /* [, line 207 */
965  if (!(eq_s_b(z, 1, s_16))) goto lab7;
966  z->bra = z->c; /* ], line 207 */
967  { int m_test = z->l - z->c; /* test, line 207 */
968  if (!(eq_s_b(z, 1, s_17))) goto lab7;
969  z->c = z->l - m_test;
970  }
971  { int ret = r_RV(z);
972  if (ret == 0) goto lab7; /* call RV, line 207 */
973  if (ret < 0) return ret;
974  }
975  { int ret = slice_del(z); /* delete, line 207 */
976  if (ret < 0) return ret;
977  }
978  lab7:
979  z->c = z->l - m7;
980  }
981  }
982  goto lab3;
983  lab4:
984  z->c = z->l - m4;
985  { int ret = r_residual_suffix(z);
986  if (ret == 0) goto lab2; /* call residual_suffix, line 209 */
987  if (ret < 0) return ret;
988  }
989  }
990  lab3:
991  lab2:
992  z->c = z->l - m3;
993  }
994  { int m8 = z->l - z->c; (void)m8; /* do, line 211 */
995  { int ret = r_residual_form(z);
996  if (ret == 0) goto lab8; /* call residual_form, line 211 */
997  if (ret < 0) return ret;
998  }
999  lab8:
1000  z->c = z->l - m8;
1001  }
1002  z->c = z->lb;
1003  { int c9 = z->c; /* do, line 213 */
1004  { int ret = r_postlude(z);
1005  if (ret == 0) goto lab9; /* call postlude, line 213 */
1006  if (ret < 0) return ret;
1007  }
1008  lab9:
1009  z->c = c9;
1010  }
1011  return 1;
1012 }
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:194
static int r_prelude(struct SN_env *z)
int ket
Definition: api.h:16
int slice_del(struct SN_env *z)
Definition: utilities.c:401
int bra
Definition: api.h:16
static int r_RV(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
int c
Definition: api.h:16
int lb
Definition: api.h:16
static int r_postlude(struct SN_env *z)
static const symbol s_17[]
static int r_standard_suffix(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
static int r_residual_form(struct SN_env *z)
static const symbol s_16[]
int l
Definition: api.h:16