PostgreSQL Source Code  git master
stem_UTF_8_serbian.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_envserbian_UTF_8_create_env (void)
 
void serbian_UTF_8_close_env (struct SN_env *z)
 
int serbian_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ serbian_UTF_8_close_env()

void serbian_UTF_8_close_env ( struct SN_env z)

Definition at line 6542 of file stem_UTF_8_serbian.c.

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

References SN_close_env().

◆ serbian_UTF_8_create_env()

struct SN_env* serbian_UTF_8_create_env ( void  )

Definition at line 6540 of file stem_UTF_8_serbian.c.

6540 { return SN_create_env(0, 2); }
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3

References SN_create_env().

◆ serbian_UTF_8_stem()

int serbian_UTF_8_stem ( struct SN_env z)

Definition at line 6497 of file stem_UTF_8_serbian.c.

6497  {
6498 
6499  { int ret = r_cyr_to_lat(z);
6500  if (ret < 0) return ret;
6501  }
6502 
6503  { int ret = r_prelude(z);
6504  if (ret < 0) return ret;
6505  }
6506 
6507  { int ret = r_mark_regions(z);
6508  if (ret < 0) return ret;
6509  }
6510  z->lb = z->c; z->c = z->l;
6511 
6512  { int m1 = z->l - z->c; (void)m1;
6513  { int ret = r_Step_1(z);
6514  if (ret < 0) return ret;
6515  }
6516  z->c = z->l - m1;
6517  }
6518  { int m2 = z->l - z->c; (void)m2;
6519  { int m3 = z->l - z->c; (void)m3;
6520  { int ret = r_Step_2(z);
6521  if (ret == 0) goto lab2;
6522  if (ret < 0) return ret;
6523  }
6524  goto lab1;
6525  lab2:
6526  z->c = z->l - m3;
6527  { int ret = r_Step_3(z);
6528  if (ret == 0) goto lab0;
6529  if (ret < 0) return ret;
6530  }
6531  }
6532  lab1:
6533  lab0:
6534  z->c = z->l - m2;
6535  }
6536  z->c = z->lb;
6537  return 1;
6538 }
static int r_cyr_to_lat(struct SN_env *z)
static int r_Step_3(struct SN_env *z)
static int r_Step_1(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_Step_2(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_cyr_to_lat(), r_mark_regions(), r_prelude(), r_Step_1(), r_Step_2(), and r_Step_3().