PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_UTF_8_nepali.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_envnepali_UTF_8_create_env (void)
 
void nepali_UTF_8_close_env (struct SN_env *z)
 
int nepali_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ nepali_UTF_8_close_env()

void nepali_UTF_8_close_env ( struct SN_env z)

Definition at line 420 of file stem_UTF_8_nepali.c.

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

References SN_close_env().

◆ nepali_UTF_8_create_env()

struct SN_env* nepali_UTF_8_create_env ( void  )

Definition at line 418 of file stem_UTF_8_nepali.c.

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

References SN_create_env().

◆ nepali_UTF_8_stem()

int nepali_UTF_8_stem ( struct SN_env z)

Definition at line 376 of file stem_UTF_8_nepali.c.

376  {
377  z->lb = z->c; z->c = z->l;
378 
379  { int m1 = z->l - z->c; (void)m1;
380  { int ret = r_remove_category_1(z);
381  if (ret < 0) return ret;
382  }
383  z->c = z->l - m1;
384  }
385  { int m2 = z->l - z->c; (void)m2;
386  while(1) {
387  int m3 = z->l - z->c; (void)m3;
388  { int m4 = z->l - z->c; (void)m4;
389  { int m5 = z->l - z->c; (void)m5;
390  { int ret = r_check_category_2(z);
391  if (ret == 0) goto lab2;
392  if (ret < 0) return ret;
393  }
394  z->c = z->l - m5;
395  { int ret = r_remove_category_2(z);
396  if (ret == 0) goto lab2;
397  if (ret < 0) return ret;
398  }
399  }
400  lab2:
401  z->c = z->l - m4;
402  }
403  { int ret = r_remove_category_3(z);
404  if (ret == 0) goto lab1;
405  if (ret < 0) return ret;
406  }
407  continue;
408  lab1:
409  z->c = z->l - m3;
410  break;
411  }
412  z->c = z->l - m2;
413  }
414  z->c = z->lb;
415  return 1;
416 }
static int r_remove_category_1(struct SN_env *z)
static int r_remove_category_2(struct SN_env *z)
static int r_remove_category_3(struct SN_env *z)
static int r_check_category_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_check_category_2(), r_remove_category_1(), r_remove_category_2(), and r_remove_category_3().