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

1108 {
1109 SN_delete_env(z);
1110}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ spanish_UTF_8_create_env()

struct SN_env * spanish_UTF_8_create_env ( void  )

Definition at line 1098 of file stem_UTF_8_spanish.c.

1098 {
1099 struct SN_env * z = SN_new_env(sizeof(SN_local));
1100 if (z) {
1101 ((SN_local *)z)->i_p2 = 0;
1102 ((SN_local *)z)->i_p1 = 0;
1103 ((SN_local *)z)->i_pV = 0;
1104 }
1105 return z;
1106}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ spanish_UTF_8_stem()

int spanish_UTF_8_stem ( struct SN_env z)

Definition at line 1035 of file stem_UTF_8_spanish.c.

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