PostgreSQL Source Code git master
stem_ISO_8859_1_portuguese.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_envportuguese_ISO_8859_1_create_env (void)
 
void portuguese_ISO_8859_1_close_env (struct SN_env *z)
 
int portuguese_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ portuguese_ISO_8859_1_close_env()

void portuguese_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 962 of file stem_ISO_8859_1_portuguese.c.

962{ SN_close_env(z, 0); }
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:34

References SN_close_env().

◆ portuguese_ISO_8859_1_create_env()

struct SN_env * portuguese_ISO_8859_1_create_env ( void  )

Definition at line 960 of file stem_ISO_8859_1_portuguese.c.

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

◆ portuguese_ISO_8859_1_stem()

int portuguese_ISO_8859_1_stem ( struct SN_env z)

Definition at line 880 of file stem_ISO_8859_1_portuguese.c.

880 {
881 { int c1 = z->c;
882 { int ret = r_prelude(z);
883 if (ret < 0) return ret;
884 }
885 z->c = c1;
886 }
887
888 { int ret = r_mark_regions(z);
889 if (ret < 0) return ret;
890 }
891 z->lb = z->c; z->c = z->l;
892
893 { int m2 = z->l - z->c; (void)m2;
894 { int m3 = z->l - z->c; (void)m3;
895 { int m4 = z->l - z->c; (void)m4;
896 { int m5 = z->l - z->c; (void)m5;
897 { int ret = r_standard_suffix(z);
898 if (ret == 0) goto lab4;
899 if (ret < 0) return ret;
900 }
901 goto lab3;
902 lab4:
903 z->c = z->l - m5;
904 { int ret = r_verb_suffix(z);
905 if (ret == 0) goto lab2;
906 if (ret < 0) return ret;
907 }
908 }
909 lab3:
910 z->c = z->l - m4;
911 { int m6 = z->l - z->c; (void)m6;
912 z->ket = z->c;
913 if (z->c <= z->lb || z->p[z->c - 1] != 'i') goto lab5;
914 z->c--;
915 z->bra = z->c;
916 { int m_test7 = z->l - z->c;
917 if (z->c <= z->lb || z->p[z->c - 1] != 'c') goto lab5;
918 z->c--;
919 z->c = z->l - m_test7;
920 }
921 { int ret = r_RV(z);
922 if (ret == 0) goto lab5;
923 if (ret < 0) return ret;
924 }
925 { int ret = slice_del(z);
926 if (ret < 0) return ret;
927 }
928 lab5:
929 z->c = z->l - m6;
930 }
931 }
932 goto lab1;
933 lab2:
934 z->c = z->l - m3;
935 { int ret = r_residual_suffix(z);
936 if (ret == 0) goto lab0;
937 if (ret < 0) return ret;
938 }
939 }
940 lab1:
941 lab0:
942 z->c = z->l - m2;
943 }
944 { int m8 = z->l - z->c; (void)m8;
945 { int ret = r_residual_form(z);
946 if (ret < 0) return ret;
947 }
948 z->c = z->l - m8;
949 }
950 z->c = z->lb;
951 { int c9 = z->c;
952 { int ret = r_postlude(z);
953 if (ret < 0) return ret;
954 }
955 z->c = c9;
956 }
957 return 1;
958}
static int r_standard_suffix(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
static int r_RV(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_residual_form(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
int lb
Definition: api.h:16
symbol * p
Definition: api.h:15
int ket
Definition: api.h:16
int c
Definition: api.h:16
int bra
Definition: api.h:16
int l
Definition: api.h:16
int slice_del(struct SN_env *z)
Definition: utilities.c:431

References SN_env::bra, SN_env::c, SN_env::ket, SN_env::l, SN_env::lb, SN_env::p, r_mark_regions(), r_postlude(), r_prelude(), r_residual_form(), r_residual_suffix(), r_RV(), r_standard_suffix(), r_verb_suffix(), and slice_del().