PostgreSQL Source Code  git master
stem_ISO_8859_1_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_ISO_8859_1_create_env (void)
 
void spanish_ISO_8859_1_close_env (struct SN_env *z)
 
int spanish_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ spanish_ISO_8859_1_close_env()

void spanish_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 1040 of file stem_ISO_8859_1_spanish.c.

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

References SN_close_env().

◆ spanish_ISO_8859_1_create_env()

struct SN_env* spanish_ISO_8859_1_create_env ( void  )

Definition at line 1038 of file stem_ISO_8859_1_spanish.c.

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

◆ spanish_ISO_8859_1_stem()

int spanish_ISO_8859_1_stem ( struct SN_env z)

Definition at line 984 of file stem_ISO_8859_1_spanish.c.

984  {
985 
986  { int ret = r_mark_regions(z);
987  if (ret < 0) return ret;
988  }
989  z->lb = z->c; z->c = z->l;
990 
991  { int m1 = z->l - z->c; (void)m1;
992  { int ret = r_attached_pronoun(z);
993  if (ret < 0) return ret;
994  }
995  z->c = z->l - m1;
996  }
997  { int m2 = z->l - z->c; (void)m2;
998  { int m3 = z->l - z->c; (void)m3;
999  { int ret = r_standard_suffix(z);
1000  if (ret == 0) goto lab2;
1001  if (ret < 0) return ret;
1002  }
1003  goto lab1;
1004  lab2:
1005  z->c = z->l - m3;
1006  { int ret = r_y_verb_suffix(z);
1007  if (ret == 0) goto lab3;
1008  if (ret < 0) return ret;
1009  }
1010  goto lab1;
1011  lab3:
1012  z->c = z->l - m3;
1013  { int ret = r_verb_suffix(z);
1014  if (ret == 0) goto lab0;
1015  if (ret < 0) return ret;
1016  }
1017  }
1018  lab1:
1019  lab0:
1020  z->c = z->l - m2;
1021  }
1022  { int m4 = z->l - z->c; (void)m4;
1023  { int ret = r_residual_suffix(z);
1024  if (ret < 0) return ret;
1025  }
1026  z->c = z->l - m4;
1027  }
1028  z->c = z->lb;
1029  { int c5 = z->c;
1030  { int ret = r_postlude(z);
1031  if (ret < 0) return ret;
1032  }
1033  z->c = c5;
1034  }
1035  return 1;
1036 }
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_attached_pronoun(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_y_verb_suffix(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
int lb
Definition: api.h:16
int c
Definition: api.h:16
int l
Definition: api.h:16

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