PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
stem_UTF_8_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_UTF_8_create_env (void)
 
void romanian_UTF_8_close_env (struct SN_env *z)
 
int romanian_UTF_8_stem (struct SN_env *z)
 

Function Documentation

void romanian_UTF_8_close_env ( struct SN_env z)

Definition at line 1003 of file stem_UTF_8_romanian.c.

References SN_close_env().

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

Definition at line 1001 of file stem_UTF_8_romanian.c.

References SN_create_env().

1001 { 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_UTF_8_stem ( struct SN_env z)

Definition at line 931 of file stem_UTF_8_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().

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