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 1044 of file stem_UTF_8_spanish.c.

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

struct SN_env* spanish_UTF_8_create_env ( void  )

Definition at line 1042 of file stem_UTF_8_spanish.c.

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

int spanish_UTF_8_stem ( struct SN_env z)

Definition at line 988 of file stem_UTF_8_spanish.c.

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