PostgreSQL Source Code  git master
stem_ISO_8859_1_norwegian.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_envnorwegian_ISO_8859_1_create_env (void)
 
void norwegian_ISO_8859_1_close_env (struct SN_env *z)
 
int norwegian_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ norwegian_ISO_8859_1_close_env()

void norwegian_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 271 of file stem_ISO_8859_1_norwegian.c.

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

References SN_close_env().

◆ norwegian_ISO_8859_1_create_env()

struct SN_env* norwegian_ISO_8859_1_create_env ( void  )

Definition at line 269 of file stem_ISO_8859_1_norwegian.c.

269 { 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().

◆ norwegian_ISO_8859_1_stem()

int norwegian_ISO_8859_1_stem ( struct SN_env z)

Definition at line 238 of file stem_ISO_8859_1_norwegian.c.

238  {
239  { int c1 = z->c;
240  { int ret = r_mark_regions(z);
241  if (ret < 0) return ret;
242  }
243  z->c = c1;
244  }
245  z->lb = z->c; z->c = z->l;
246 
247  { int m2 = z->l - z->c; (void)m2;
248  { int ret = r_main_suffix(z);
249  if (ret < 0) return ret;
250  }
251  z->c = z->l - m2;
252  }
253  { int m3 = z->l - z->c; (void)m3;
254  { int ret = r_consonant_pair(z);
255  if (ret < 0) return ret;
256  }
257  z->c = z->l - m3;
258  }
259  { int m4 = z->l - z->c; (void)m4;
260  { int ret = r_other_suffix(z);
261  if (ret < 0) return ret;
262  }
263  z->c = z->l - m4;
264  }
265  z->c = z->lb;
266  return 1;
267 }
static int r_other_suffix(struct SN_env *z)
static int r_consonant_pair(struct SN_env *z)
static int r_main_suffix(struct SN_env *z)
static int r_mark_regions(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_consonant_pair(), r_main_suffix(), r_mark_regions(), and r_other_suffix().