PostgreSQL Source Code  git master
stem_UTF_8_italian.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_envitalian_UTF_8_create_env (void)
 
void italian_UTF_8_close_env (struct SN_env *z)
 
int italian_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ italian_UTF_8_close_env()

void italian_UTF_8_close_env ( struct SN_env z)

Definition at line 1029 of file stem_UTF_8_italian.c.

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

References SN_close_env().

◆ italian_UTF_8_create_env()

struct SN_env* italian_UTF_8_create_env ( void  )

Definition at line 1027 of file stem_UTF_8_italian.c.

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

◆ italian_UTF_8_stem()

int italian_UTF_8_stem ( struct SN_env z)

Definition at line 974 of file stem_UTF_8_italian.c.

974  {
975  { int c1 = z->c;
976  { int ret = r_prelude(z);
977  if (ret < 0) return ret;
978  }
979  z->c = c1;
980  }
981 
982  { int ret = r_mark_regions(z);
983  if (ret < 0) return ret;
984  }
985  z->lb = z->c; z->c = z->l;
986 
987  { int m2 = z->l - z->c; (void)m2;
988  { int ret = r_attached_pronoun(z);
989  if (ret < 0) return ret;
990  }
991  z->c = z->l - m2;
992  }
993  { int m3 = z->l - z->c; (void)m3;
994  { int m4 = z->l - z->c; (void)m4;
995  { int ret = r_standard_suffix(z);
996  if (ret == 0) goto lab2;
997  if (ret < 0) return ret;
998  }
999  goto lab1;
1000  lab2:
1001  z->c = z->l - m4;
1002  { int ret = r_verb_suffix(z);
1003  if (ret == 0) goto lab0;
1004  if (ret < 0) return ret;
1005  }
1006  }
1007  lab1:
1008  lab0:
1009  z->c = z->l - m3;
1010  }
1011  { int m5 = z->l - z->c; (void)m5;
1012  { int ret = r_vowel_suffix(z);
1013  if (ret < 0) return ret;
1014  }
1015  z->c = z->l - m5;
1016  }
1017  z->c = z->lb;
1018  { int c6 = z->c;
1019  { int ret = r_postlude(z);
1020  if (ret < 0) return ret;
1021  }
1022  z->c = c6;
1023  }
1024  return 1;
1025 }
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_prelude(struct SN_env *z)
static int r_vowel_suffix(struct SN_env *z)
static int r_mark_regions(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_prelude(), r_standard_suffix(), r_verb_suffix(), and r_vowel_suffix().