7#include "snowball_runtime.h"
41static const symbol s_0_6[6] = {
'e',
'r',
'e',
'n',
'd',
'e' };
55static const symbol s_0_20[7] = {
'e',
'r',
'e',
'n',
'd',
'e',
's' };
107{ 2,
s_1_0, 0, -1, 0},
108{ 2,
s_1_1, 0, -1, 0},
109{ 2,
s_1_2, 0, -1, 0},
120{ 3,
s_2_1, -1, 1, 0},
121{ 4,
s_2_2, -1, 1, 0},
126static const unsigned char g_c[] = { 119, 223, 119, 1 };
128static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 128 };
130static const unsigned char g_s_ending[] = { 239, 254, 42, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16 };
137 if (z->
c + 3 > z->
l)
return 0;
144 if (ret < 0)
return 0;
149 if (ret < 0)
return 0;
153 if (((
SN_local *)z)->i_p1 >= i_x)
goto lab0;
163 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
166 if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1851440 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = v_1;
return 0; }
168 if (!among_var) { z->lb = v_1;
return 0; }
176 if (ret < 0)
return ret;
183 if (ret < 0)
return ret;
192 int v_1 = z->
l - z->
c;
195 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
198 if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 116)) { z->lb = v_2;
return 0; }
205 if (z->
c <= z->
lb)
return 0;
210 if (ret < 0)
return ret;
218 int v_1 = z->
l - z->
c;
225 if (ret < 0)
return ret;
232 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
235 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1572992 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = v_2;
return 0; }
237 if (!among_var) { z->lb = v_2;
return 0; }
245 if (ret < 0)
return ret;
248 int v_3 = z->
l - z->
c;
251 if (ret < 0)
return ret;
259 if (ret < 0)
return ret;
269 if (z->
c < ((
SN_local *)z)->i_p1)
return 0;
276 if (ret < 0)
return ret;
283 if (ret < 0)
return ret;
293 if (ret < 0)
return ret;
297 z->
lb = z->
c; z->
c = z->
l;
299 int v_2 = z->
l - z->
c;
302 if (ret < 0)
return ret;
307 int v_3 = z->
l - z->
c;
310 if (ret < 0)
return ret;
315 int v_4 = z->
l - z->
c;
318 if (ret < 0)
return ret;
323 int v_5 = z->
l - z->
c;
326 if (ret < 0)
return ret;
void SN_delete_env(struct SN_env *z)
struct SN_env * SN_new_env(int alloc_size)
static const symbol s_0_24[3]
static const struct among a_2[5]
static const symbol s_0_2[4]
static const symbol s_2[]
static const symbol s_0_15[4]
static const unsigned char g_c[]
static const struct among a_0[32]
static const symbol s_0_13[2]
static const symbol s_0_20[7]
static const symbol s_1_2[2]
static const symbol s_0_14[5]
static int r_other_suffix(struct SN_env *z)
static int r_consonant_pair(struct SN_env *z)
static const symbol s_0_12[4]
static const symbol s_2_3[3]
static const symbol s_0_31[4]
static const symbol s_2_0[2]
static int r_main_suffix(struct SN_env *z)
static const struct among a_1[4]
static const symbol s_1_3[2]
static const symbol s_2_1[3]
static const symbol s_1_0[2]
void danish_ISO_8859_1_close_env(struct SN_env *z)
static const symbol s_0_5[4]
static const symbol s_2_2[4]
static const symbol s_0_11[5]
static const symbol s_2_4[4]
static const symbol s_0_1[5]
static const symbol s_0_30[2]
static const symbol s_0_17[4]
static const symbol s_1_1[2]
static const symbol s_0_0[3]
static int r_undouble(struct SN_env *z)
static const symbol s_0_19[5]
static const symbol s_0_18[2]
static const symbol s_0_23[4]
static const symbol s_0_27[3]
static const symbol s_0_16[1]
static const symbol s_0_28[3]
static const symbol s_0_29[5]
int danish_ISO_8859_1_stem(struct SN_env *z)
static const symbol s_0_9[3]
static const symbol s_0_22[5]
static const symbol s_1[]
static int r_mark_regions(struct SN_env *z)
static const symbol s_0_3[1]
static const symbol s_0_6[6]
static const symbol s_0_8[4]
static const symbol s_0_25[6]
struct SN_env * danish_ISO_8859_1_create_env(void)
static const symbol s_0_7[3]
static const symbol s_0_26[5]
static const symbol s_0_10[2]
static const unsigned char g_v[]
static const unsigned char g_s_ending[]
static const symbol s_0_21[4]
static const symbol s_0[]
static const symbol s_0_4[5]
int eq_v_b(struct SN_env *z, const symbol *p)
SNOWBALL_ERR slice_from_s(struct SN_env *z, int s_size, const symbol *s)
int in_grouping(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
SNOWBALL_ERR slice_to(struct SN_env *z, symbol **p)
int find_among_b(struct SN_env *z, const struct among *v, int v_size, int(*call_among_func)(struct SN_env *))
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
int out_grouping(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
SNOWBALL_ERR slice_del(struct SN_env *z)
int in_grouping_b(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)