PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
stem_ISO_8859_2_romanian.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_envromanian_ISO_8859_2_create_env (void)
 
void romanian_ISO_8859_2_close_env (struct SN_env *z)
 
int romanian_ISO_8859_2_stem (struct SN_env *z)
 

Function Documentation

void romanian_ISO_8859_2_close_env ( struct SN_env z)

Definition at line 997 of file stem_ISO_8859_2_romanian.c.

References SN_close_env().

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

Definition at line 995 of file stem_ISO_8859_2_romanian.c.

References SN_create_env().

995 { return SN_create_env(0, 3, 1); }
struct SN_env * SN_create_env(int S_size, int I_size, int B_size)
Definition: api.c:3
int romanian_ISO_8859_2_stem ( struct SN_env z)

Definition at line 925 of file stem_ISO_8859_2_romanian.c.

References SN_env::B, SN_env::c, SN_env::l, SN_env::lb, r_mark_regions(), r_postlude(), r_prelude(), r_standard_suffix(), r_step_0(), r_verb_suffix(), and r_vowel_suffix().

925  {
926  { int c1 = z->c; /* do, line 226 */
927  { int ret = r_prelude(z);
928  if (ret == 0) goto lab0; /* call prelude, line 226 */
929  if (ret < 0) return ret;
930  }
931  lab0:
932  z->c = c1;
933  }
934  { int c2 = z->c; /* do, line 227 */
935  { int ret = r_mark_regions(z);
936  if (ret == 0) goto lab1; /* call mark_regions, line 227 */
937  if (ret < 0) return ret;
938  }
939  lab1:
940  z->c = c2;
941  }
942  z->lb = z->c; z->c = z->l; /* backwards, line 228 */
943 
944  { int m3 = z->l - z->c; (void)m3; /* do, line 229 */
945  { int ret = r_step_0(z);
946  if (ret == 0) goto lab2; /* call step_0, line 229 */
947  if (ret < 0) return ret;
948  }
949  lab2:
950  z->c = z->l - m3;
951  }
952  { int m4 = z->l - z->c; (void)m4; /* do, line 230 */
953  { int ret = r_standard_suffix(z);
954  if (ret == 0) goto lab3; /* call standard_suffix, line 230 */
955  if (ret < 0) return ret;
956  }
957  lab3:
958  z->c = z->l - m4;
959  }
960  { int m5 = z->l - z->c; (void)m5; /* do, line 231 */
961  { int m6 = z->l - z->c; (void)m6; /* or, line 231 */
962  if (!(z->B[0])) goto lab6; /* Boolean test standard_suffix_removed, line 231 */
963  goto lab5;
964  lab6:
965  z->c = z->l - m6;
966  { int ret = r_verb_suffix(z);
967  if (ret == 0) goto lab4; /* call verb_suffix, line 231 */
968  if (ret < 0) return ret;
969  }
970  }
971  lab5:
972  lab4:
973  z->c = z->l - m5;
974  }
975  { int m7 = z->l - z->c; (void)m7; /* do, line 232 */
976  { int ret = r_vowel_suffix(z);
977  if (ret == 0) goto lab7; /* call vowel_suffix, line 232 */
978  if (ret < 0) return ret;
979  }
980  lab7:
981  z->c = z->l - m7;
982  }
983  z->c = z->lb;
984  { int c8 = z->c; /* do, line 234 */
985  { int ret = r_postlude(z);
986  if (ret == 0) goto lab8; /* call postlude, line 234 */
987  if (ret < 0) return ret;
988  }
989  lab8:
990  z->c = c8;
991  }
992  return 1;
993 }
static int r_prelude(struct SN_env *z)
int c
Definition: api.h:16
int lb
Definition: api.h:16
static int r_standard_suffix(struct SN_env *z)
static int r_vowel_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
unsigned char * B
Definition: api.h:19
static int r_mark_regions(struct SN_env *z)
static int r_step_0(struct SN_env *z)
int l
Definition: api.h:16