Go to the source code of this file.
Functions | |
struct SN_env * | dutch_ISO_8859_1_create_env (void) |
void | dutch_ISO_8859_1_close_env (struct SN_env *z) |
int | dutch_ISO_8859_1_stem (struct SN_env *z) |
void dutch_ISO_8859_1_close_env | ( | struct SN_env * | z | ) |
Definition at line 623 of file stem_ISO_8859_1_dutch.c.
References SN_close_env().
{ SN_close_env(z, 0); }
struct SN_env* dutch_ISO_8859_1_create_env | ( | void | ) | [read] |
Definition at line 621 of file stem_ISO_8859_1_dutch.c.
References SN_create_env().
{ return SN_create_env(0, 2, 1); }
int dutch_ISO_8859_1_stem | ( | struct SN_env * | z | ) |
Definition at line 582 of file stem_ISO_8859_1_dutch.c.
References SN_env::c, SN_env::l, SN_env::lb, r_mark_regions(), r_postlude(), r_prelude(), and r_standard_suffix().
{ { int c1 = z->c; /* do, line 159 */ { int ret = r_prelude(z); if (ret == 0) goto lab0; /* call prelude, line 159 */ if (ret < 0) return ret; } lab0: z->c = c1; } { int c2 = z->c; /* do, line 160 */ { int ret = r_mark_regions(z); if (ret == 0) goto lab1; /* call mark_regions, line 160 */ if (ret < 0) return ret; } lab1: z->c = c2; } z->lb = z->c; z->c = z->l; /* backwards, line 161 */ { int m3 = z->l - z->c; (void)m3; /* do, line 162 */ { int ret = r_standard_suffix(z); if (ret == 0) goto lab2; /* call standard_suffix, line 162 */ if (ret < 0) return ret; } lab2: z->c = z->l - m3; } z->c = z->lb; { int c4 = z->c; /* do, line 163 */ { int ret = r_postlude(z); if (ret == 0) goto lab3; /* call postlude, line 163 */ if (ret < 0) return ret; } lab3: z->c = c4; } return 1; }