7#include "snowball_runtime.h"
47{ 3,
s_0_1, -1, -1, 0},
48{ 2,
s_0_2, -2, -1, 0},
49{ 2,
s_0_3, -3, -1, 0},
50{ 3,
s_0_4, -4, -1, 0},
51{ 3,
s_0_5, -5, -1, 0},
52{ 3,
s_0_6, -6, -1, 0},
54{ 2,
s_0_8, -8, -1, 0},
55{ 2,
s_0_9, -9, -1, 0},
70static const symbol s_1_7[6] = {
'h',
'e',
't',
'e',
'n',
'e' };
83static const symbol s_1_20[7] = {
'h',
'e',
't',
'e',
'n',
'e',
's' };
100{ 6,
s_1_7, -1, 1, 0},
101{ 4,
s_1_8, -7, 4, 0},
127{ 2,
s_2_0, 0, -1, 0},
144{ 4,
s_3_1, -1, 1, 0},
146{ 3,
s_3_3, -1, 1, 0},
147{ 3,
s_3_4, -2, 1, 0},
148{ 4,
s_3_5, -1, 1, 0},
151{ 4,
s_3_8, -1, 1, 0},
152{ 4,
s_3_9, -2, 1, 0},
156static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 2, 142 };
158static const unsigned char g_s_ending[] = { 119, 125, 148, 1 };
167 if (ret < 0)
return 0;
175 if (ret < 0)
return 0;
180 if (ret < 0)
return 0;
184 if (((
SN_local *)z)->i_p1 >= i_x)
goto lab0;
194 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
197 if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1851426 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = v_1;
return 0; }
199 if (!among_var) { z->lb = v_1;
return 0; }
207 if (ret < 0)
return ret;
211 if (z->
c <= z->
lb || z->
p[z->
c - 1] >> 5 != 3 || !((5318672 >> (z->
p[z->
c - 1] & 0x1f)) & 1)) among_var = 1;
else
217 if (ret < 0)
return ret;
224 int v_2 = z->
l - z->
c;
229 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'r')
goto lab1;
232 int v_3 = z->
l - z->
c;
233 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'e')
goto lab2;
242 if (z->
c <= z->
lb || z->
p[z->
c - 1] !=
'k')
return 0;
248 if (ret < 0)
return ret;
254 if (ret < 0)
return ret;
263 int v_1 = z->
l - z->
c;
266 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
269 if (z->c - 1 <= z->lb || z->p[z->c - 1] != 116) { z->lb = v_2;
return 0; }
278 if (ret < 0)
return 0;
284 if (ret < 0)
return ret;
292 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
295 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((4718720 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = v_1;
return 0; }
302 if (ret < 0)
return ret;
312 if (ret < 0)
return ret;
316 z->
lb = z->
c; z->
c = z->
l;
318 int v_2 = z->
l - z->
c;
321 if (ret < 0)
return ret;
326 int v_3 = z->
l - z->
c;
329 if (ret < 0)
return ret;
334 int v_4 = z->
l - z->
c;
337 if (ret < 0)
return ret;
void SN_delete_env(struct SN_env *z)
struct SN_env * SN_new_env(int alloc_size)
static const struct among a_2[2]
static const symbol s_3_5[4]
int norwegian_UTF_8_stem(struct SN_env *z)
static const symbol s_1_24[3]
static const symbol s_1_9[2]
static const symbol s_1_14[1]
static const symbol s_3_7[3]
static const symbol s_1_6[3]
static const symbol s_1_5[3]
static const symbol s_0_5[3]
static const symbol s_0_8[2]
static const symbol s_0_10[3]
static int r_other_suffix(struct SN_env *z)
static int r_consonant_pair(struct SN_env *z)
static const struct among a_0[15]
static const symbol s_2_0[2]
static int r_main_suffix(struct SN_env *z)
static const symbol s_1_3[4]
static const symbol s_1_27[3]
static const symbol s_1_25[2]
static const symbol s_1_4[4]
static const symbol s_0_12[1]
struct SN_env * norwegian_UTF_8_create_env(void)
static const symbol s_3_0[3]
static const symbol s_1_15[2]
static const symbol s_0_13[3]
static const symbol s_1_17[4]
static const symbol s_3_9[4]
static const symbol s_1_20[7]
static const symbol s_1_28[3]
static const symbol s_1_21[3]
static const symbol s_0_1[3]
static const symbol s_3_6[3]
static const symbol s_1_23[3]
static const symbol s_3_10[7]
static const symbol s_1_11[2]
static const symbol s_0_11[4]
static const symbol s_1_13[5]
static const symbol s_1_18[5]
static const symbol s_0_7[4]
static const symbol s_1_1[1]
static const symbol s_0_14[3]
static const symbol s_3_4[3]
static const symbol s_1_2[3]
static const symbol s_3_1[4]
static const symbol s_3_3[3]
static const symbol s_1_0[1]
static const symbol s_1_26[3]
static int r_mark_regions(struct SN_env *z)
static const symbol s_1_22[6]
static const symbol s_3_8[4]
static const symbol s_0_6[3]
static const symbol s_0_2[2]
static const symbol s_1_10[5]
static const symbol s_1_16[2]
static const struct among a_1[29]
static const struct among a_3[11]
static const symbol s_1_7[6]
static const symbol s_0_3[2]
static const symbol s_2_1[2]
static const unsigned char g_v[]
static const unsigned char g_s_ending[]
static const symbol s_1_8[4]
static const symbol s_1_19[4]
static const symbol s_0_9[2]
static const symbol s_3_2[2]
static const symbol s_1_12[2]
static const symbol s_0[]
static const symbol s_0_4[3]
void norwegian_UTF_8_close_env(struct SN_env *z)
int out_grouping_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
int in_grouping_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
SNOWBALL_ERR slice_from_s(struct SN_env *z, int s_size, const symbol *s)
int find_among_b(struct SN_env *z, const struct among *v, int v_size, int(*call_among_func)(struct SN_env *))
int in_grouping_b_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
int skip_b_utf8(const symbol *p, int c, int limit, int n)
SNOWBALL_ERR slice_del(struct SN_env *z)
int out_grouping_b_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
int skip_utf8(const symbol *p, int c, int limit, int n)