Go to the source code of this file.
Functions | |
struct SN_env * | norwegian_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) |
void norwegian_ISO_8859_1_close_env | ( | struct SN_env * | z | ) |
Definition at line 296 of file stem_ISO_8859_1_norwegian.c.
References SN_close_env().
{ SN_close_env(z, 0); }
struct SN_env* norwegian_ISO_8859_1_create_env | ( | void | ) | [read] |
Definition at line 294 of file stem_ISO_8859_1_norwegian.c.
References SN_create_env().
{ return SN_create_env(0, 2, 0); }
int norwegian_ISO_8859_1_stem | ( | struct SN_env * | z | ) |
Definition at line 255 of file stem_ISO_8859_1_norwegian.c.
References SN_env::c, SN_env::l, SN_env::lb, r_consonant_pair(), r_main_suffix(), r_mark_regions(), and r_other_suffix().
{ { int c1 = z->c; /* do, line 74 */ { int ret = r_mark_regions(z); if (ret == 0) goto lab0; /* call mark_regions, line 74 */ if (ret < 0) return ret; } lab0: z->c = c1; } z->lb = z->c; z->c = z->l; /* backwards, line 75 */ { int m2 = z->l - z->c; (void)m2; /* do, line 76 */ { int ret = r_main_suffix(z); if (ret == 0) goto lab1; /* call main_suffix, line 76 */ if (ret < 0) return ret; } lab1: z->c = z->l - m2; } { int m3 = z->l - z->c; (void)m3; /* do, line 77 */ { int ret = r_consonant_pair(z); if (ret == 0) goto lab2; /* call consonant_pair, line 77 */ if (ret < 0) return ret; } lab2: z->c = z->l - m3; } { int m4 = z->l - z->c; (void)m4; /* do, line 78 */ { int ret = r_other_suffix(z); if (ret == 0) goto lab3; /* call other_suffix, line 78 */ if (ret < 0) return ret; } lab3: z->c = z->l - m4; } z->c = z->lb; return 1; }