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

1047{ 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 1045 of file stem_UTF_8_spanish.c.

1045{ 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 991 of file stem_UTF_8_spanish.c.

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