PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 1043 of file stem_ISO_8859_1_spanish.c.

1043{ 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 1041 of file stem_ISO_8859_1_spanish.c.

1041{ 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 987 of file stem_ISO_8859_1_spanish.c.

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