PostgreSQL Source Code git master
stem_ISO_8859_1_swedish.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_envswedish_ISO_8859_1_create_env (void)
 
void swedish_ISO_8859_1_close_env (struct SN_env *z)
 
int swedish_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ swedish_ISO_8859_1_close_env()

void swedish_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 403 of file stem_ISO_8859_1_swedish.c.

403 {
404 SN_delete_env(z);
405}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ swedish_ISO_8859_1_create_env()

struct SN_env * swedish_ISO_8859_1_create_env ( void  )

Definition at line 395 of file stem_ISO_8859_1_swedish.c.

395 {
396 struct SN_env * z = SN_new_env(sizeof(SN_local));
397 if (z) {
398 ((SN_local *)z)->i_p1 = 0;
399 }
400 return z;
401}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ swedish_ISO_8859_1_stem()

int swedish_ISO_8859_1_stem ( struct SN_env z)

Definition at line 357 of file stem_ISO_8859_1_swedish.c.

357 {
358 {
359 int v_1 = z->c;
360 {
361 int ret = r_mark_regions(z);
362 if (ret < 0) return ret;
363 }
364 z->c = v_1;
365 }
366 z->lb = z->c; z->c = z->l;
367 {
368 int v_2 = z->l - z->c;
369 {
370 int ret = r_main_suffix(z);
371 if (ret < 0) return ret;
372 }
373 z->c = z->l - v_2;
374 }
375 {
376 int v_3 = z->l - z->c;
377 {
378 int ret = r_consonant_pair(z);
379 if (ret < 0) return ret;
380 }
381 z->c = z->l - v_3;
382 }
383 {
384 int v_4 = z->l - z->c;
385 {
386 int ret = r_other_suffix(z);
387 if (ret < 0) return ret;
388 }
389 z->c = z->l - v_4;
390 }
391 z->c = z->lb;
392 return 1;
393}
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:17
int c
Definition: api.h:17
int l
Definition: api.h:17

References SN_env::c, SN_env::l, SN_env::lb, r_consonant_pair(), r_main_suffix(), r_mark_regions(), and r_other_suffix().