PostgreSQL Source Code  git master
stem_UTF_8_german.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_envgerman_UTF_8_create_env (void)
 
void german_UTF_8_close_env (struct SN_env *z)
 
int german_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ german_UTF_8_close_env()

void german_UTF_8_close_env ( struct SN_env z)

Definition at line 508 of file stem_UTF_8_german.c.

References SN_close_env().

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

◆ german_UTF_8_create_env()

struct SN_env* german_UTF_8_create_env ( void  )

Definition at line 506 of file stem_UTF_8_german.c.

References SN_create_env().

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

◆ german_UTF_8_stem()

int german_UTF_8_stem ( struct SN_env z)

Definition at line 467 of file stem_UTF_8_german.c.

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

467  {
468  { int c1 = z->c; /* do, line 125 */
469  { int ret = r_prelude(z);
470  if (ret == 0) goto lab0; /* call prelude, line 125 */
471  if (ret < 0) return ret;
472  }
473  lab0:
474  z->c = c1;
475  }
476  { int c2 = z->c; /* do, line 126 */
477  { int ret = r_mark_regions(z);
478  if (ret == 0) goto lab1; /* call mark_regions, line 126 */
479  if (ret < 0) return ret;
480  }
481  lab1:
482  z->c = c2;
483  }
484  z->lb = z->c; z->c = z->l; /* backwards, line 127 */
485 
486  { int m3 = z->l - z->c; (void)m3; /* do, line 128 */
487  { int ret = r_standard_suffix(z);
488  if (ret == 0) goto lab2; /* call standard_suffix, line 128 */
489  if (ret < 0) return ret;
490  }
491  lab2:
492  z->c = z->l - m3;
493  }
494  z->c = z->lb;
495  { int c4 = z->c; /* do, line 129 */
496  { int ret = r_postlude(z);
497  if (ret == 0) goto lab3; /* call postlude, line 129 */
498  if (ret < 0) return ret;
499  }
500  lab3:
501  z->c = c4;
502  }
503  return 1;
504 }
static int r_standard_suffix(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_mark_regions(struct SN_env *z)
static int r_prelude(struct SN_env *z)
int l
Definition: api.h:16