PostgreSQL Source Code  git master
stem_UTF_8_spanish.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_envspanish_UTF_8_create_env (void)
 
void spanish_UTF_8_close_env (struct SN_env *z)
 
int spanish_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ spanish_UTF_8_close_env()

void spanish_UTF_8_close_env ( struct SN_env z)

Definition at line 1096 of file stem_UTF_8_spanish.c.

References SN_close_env().

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

◆ spanish_UTF_8_create_env()

struct SN_env* spanish_UTF_8_create_env ( void  )

Definition at line 1094 of file stem_UTF_8_spanish.c.

References SN_create_env().

1094 { 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

◆ spanish_UTF_8_stem()

int spanish_UTF_8_stem ( struct SN_env z)

Definition at line 1030 of file stem_UTF_8_spanish.c.

References SN_env::c, SN_env::l, SN_env::lb, r_attached_pronoun(), r_mark_regions(), r_postlude(), r_residual_suffix(), r_standard_suffix(), r_verb_suffix(), and r_y_verb_suffix().

1030  {
1031  { int c1 = z->c; /* do, line 216 */
1032  { int ret = r_mark_regions(z);
1033  if (ret == 0) goto lab0; /* call mark_regions, line 216 */
1034  if (ret < 0) return ret;
1035  }
1036  lab0:
1037  z->c = c1;
1038  }
1039  z->lb = z->c; z->c = z->l; /* backwards, line 217 */
1040 
1041  { int m2 = z->l - z->c; (void)m2; /* do, line 218 */
1042  { int ret = r_attached_pronoun(z);
1043  if (ret == 0) goto lab1; /* call attached_pronoun, line 218 */
1044  if (ret < 0) return ret;
1045  }
1046  lab1:
1047  z->c = z->l - m2;
1048  }
1049  { int m3 = z->l - z->c; (void)m3; /* do, line 219 */
1050  { int m4 = z->l - z->c; (void)m4; /* or, line 219 */
1051  { int ret = r_standard_suffix(z);
1052  if (ret == 0) goto lab4; /* call standard_suffix, line 219 */
1053  if (ret < 0) return ret;
1054  }
1055  goto lab3;
1056  lab4:
1057  z->c = z->l - m4;
1058  { int ret = r_y_verb_suffix(z);
1059  if (ret == 0) goto lab5; /* call y_verb_suffix, line 220 */
1060  if (ret < 0) return ret;
1061  }
1062  goto lab3;
1063  lab5:
1064  z->c = z->l - m4;
1065  { int ret = r_verb_suffix(z);
1066  if (ret == 0) goto lab2; /* call verb_suffix, line 221 */
1067  if (ret < 0) return ret;
1068  }
1069  }
1070  lab3:
1071  lab2:
1072  z->c = z->l - m3;
1073  }
1074  { int m5 = z->l - z->c; (void)m5; /* do, line 223 */
1075  { int ret = r_residual_suffix(z);
1076  if (ret == 0) goto lab6; /* call residual_suffix, line 223 */
1077  if (ret < 0) return ret;
1078  }
1079  lab6:
1080  z->c = z->l - m5;
1081  }
1082  z->c = z->lb;
1083  { int c6 = z->c; /* do, line 225 */
1084  { int ret = r_postlude(z);
1085  if (ret == 0) goto lab7; /* call postlude, line 225 */
1086  if (ret < 0) return ret;
1087  }
1088  lab7:
1089  z->c = c6;
1090  }
1091  return 1;
1092 }
static int r_y_verb_suffix(struct SN_env *z)
int c
Definition: api.h:16
int lb
Definition: api.h:16
static int r_verb_suffix(struct SN_env *z)
static int r_attached_pronoun(struct SN_env *z)
static int r_standard_suffix(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int l
Definition: api.h:16