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 1102 of file stem_ISO_8859_1_spanish.c.

1102 {
1103 SN_delete_env(z);
1104}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ spanish_ISO_8859_1_create_env()

struct SN_env * spanish_ISO_8859_1_create_env ( void  )

Definition at line 1092 of file stem_ISO_8859_1_spanish.c.

1092 {
1093 struct SN_env * z = SN_new_env(sizeof(SN_local));
1094 if (z) {
1095 ((SN_local *)z)->i_p2 = 0;
1096 ((SN_local *)z)->i_p1 = 0;
1097 ((SN_local *)z)->i_pV = 0;
1098 }
1099 return z;
1100}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ spanish_ISO_8859_1_stem()

int spanish_ISO_8859_1_stem ( struct SN_env z)

Definition at line 1029 of file stem_ISO_8859_1_spanish.c.

1029 {
1030 {
1031 int ret = r_mark_regions(z);
1032 if (ret < 0) return ret;
1033 }
1034 z->lb = z->c; z->c = z->l;
1035 {
1036 int v_1 = z->l - z->c;
1037 {
1038 int ret = r_attached_pronoun(z);
1039 if (ret < 0) return ret;
1040 }
1041 z->c = z->l - v_1;
1042 }
1043 {
1044 int v_2 = z->l - z->c;
1045 do {
1046 int v_3 = z->l - z->c;
1047 {
1048 int ret = r_standard_suffix(z);
1049 if (ret == 0) goto lab1;
1050 if (ret < 0) return ret;
1051 }
1052 break;
1053 lab1:
1054 z->c = z->l - v_3;
1055 {
1056 int ret = r_y_verb_suffix(z);
1057 if (ret == 0) goto lab2;
1058 if (ret < 0) return ret;
1059 }
1060 break;
1061 lab2:
1062 z->c = z->l - v_3;
1063 {
1064 int ret = r_verb_suffix(z);
1065 if (ret == 0) goto lab0;
1066 if (ret < 0) return ret;
1067 }
1068 } while (0);
1069 lab0:
1070 z->c = z->l - v_2;
1071 }
1072 {
1073 int v_4 = z->l - z->c;
1074 {
1075 int ret = r_residual_suffix(z);
1076 if (ret < 0) return ret;
1077 }
1078 z->c = z->l - v_4;
1079 }
1080 z->c = z->lb;
1081 {
1082 int v_5 = z->c;
1083 {
1084 int ret = r_postlude(z);
1085 if (ret < 0) return ret;
1086 }
1087 z->c = v_5;
1088 }
1089 return 1;
1090}
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:17
int c
Definition: api.h:17
int l
Definition: api.h:17

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