PostgreSQL Source Code  git master
stem_UTF_8_dutch.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_envdutch_UTF_8_create_env (void)
 
void dutch_UTF_8_close_env (struct SN_env *z)
 
int dutch_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ dutch_UTF_8_close_env()

void dutch_UTF_8_close_env ( struct SN_env z)

Definition at line 633 of file stem_UTF_8_dutch.c.

References SN_close_env().

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

◆ dutch_UTF_8_create_env()

struct SN_env* dutch_UTF_8_create_env ( void  )

Definition at line 631 of file stem_UTF_8_dutch.c.

References SN_create_env().

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

◆ dutch_UTF_8_stem()

int dutch_UTF_8_stem ( struct SN_env z)

Definition at line 592 of file stem_UTF_8_dutch.c.

References SN_env::c, SN_env::l, SN_env::lb, r_mark_regions(), r_postlude(), r_prelude(), and r_standard_suffix().

592  {
593  { int c1 = z->c; /* do, line 159 */
594  { int ret = r_prelude(z);
595  if (ret == 0) goto lab0; /* call prelude, line 159 */
596  if (ret < 0) return ret;
597  }
598  lab0:
599  z->c = c1;
600  }
601  { int c2 = z->c; /* do, line 160 */
602  { int ret = r_mark_regions(z);
603  if (ret == 0) goto lab1; /* call mark_regions, line 160 */
604  if (ret < 0) return ret;
605  }
606  lab1:
607  z->c = c2;
608  }
609  z->lb = z->c; z->c = z->l; /* backwards, line 161 */
610 
611  { int m3 = z->l - z->c; (void)m3; /* do, line 162 */
612  { int ret = r_standard_suffix(z);
613  if (ret == 0) goto lab2; /* call standard_suffix, line 162 */
614  if (ret < 0) return ret;
615  }
616  lab2:
617  z->c = z->l - m3;
618  }
619  z->c = z->lb;
620  { int c4 = z->c; /* do, line 163 */
621  { int ret = r_postlude(z);
622  if (ret == 0) goto lab3; /* call postlude, line 163 */
623  if (ret < 0) return ret;
624  }
625  lab3:
626  z->c = c4;
627  }
628  return 1;
629 }
static int r_postlude(struct SN_env *z)
int c
Definition: api.h:16
int lb
Definition: api.h:16
static int r_prelude(struct SN_env *z)
static int r_standard_suffix(struct SN_env *z)
int l
Definition: api.h:16
static int r_mark_regions(struct SN_env *z)