PostgreSQL Source Code git master
stem_UTF_8_dutch_porter.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_porter_UTF_8_create_env (void)
 
void dutch_porter_UTF_8_close_env (struct SN_env *z)
 
int dutch_porter_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ dutch_porter_UTF_8_close_env()

void dutch_porter_UTF_8_close_env ( struct SN_env z)

Definition at line 677 of file stem_UTF_8_dutch_porter.c.

677 {
678 SN_delete_env(z);
679}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ dutch_porter_UTF_8_create_env()

struct SN_env * dutch_porter_UTF_8_create_env ( void  )

Definition at line 667 of file stem_UTF_8_dutch_porter.c.

667 {
668 struct SN_env * z = SN_new_env(sizeof(SN_local));
669 if (z) {
670 ((SN_local *)z)->i_p2 = 0;
671 ((SN_local *)z)->i_p1 = 0;
672 ((SN_local *)z)->b_e_found = 0;
673 }
674 return z;
675}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ dutch_porter_UTF_8_stem()

int dutch_porter_UTF_8_stem ( struct SN_env z)

Definition at line 633 of file stem_UTF_8_dutch_porter.c.

633 {
634 {
635 int v_1 = z->c;
636 {
637 int ret = r_prelude(z);
638 if (ret < 0) return ret;
639 }
640 z->c = v_1;
641 }
642 {
643 int v_2 = z->c;
644 {
645 int ret = r_mark_regions(z);
646 if (ret < 0) return ret;
647 }
648 z->c = v_2;
649 }
650 z->lb = z->c; z->c = z->l;
651 {
652 int ret = r_standard_suffix(z);
653 if (ret < 0) return ret;
654 }
655 z->c = z->lb;
656 {
657 int v_3 = z->c;
658 {
659 int ret = r_postlude(z);
660 if (ret < 0) return ret;
661 }
662 z->c = v_3;
663 }
664 return 1;
665}
static int r_standard_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(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_mark_regions(), r_postlude(), r_prelude(), and r_standard_suffix().