7#include "snowball_runtime.h"
94static const unsigned char g_vowel[] = { 17, 65, 16 };
98 if (z->
c - 2 <= z->
lb || (z->
p[z->
c - 1] != 104 && z->
p[z->
c - 1] != 110))
return 0;
103 if (ret < 0)
return ret;
111 if (z->
c - 1 <= z->
lb || (z->
p[z->
c - 1] != 97 && z->
p[z->
c - 1] != 117))
return 0;
116 if (ret < 0)
return ret;
125 if (z->
c <= z->
lb || (z->
p[z->
c - 1] != 105 && z->
p[z->
c - 1] != 110))
return 0;
127 if (!among_var)
return 0;
132 int v_1 = z->
l - z->
c;
133 if (((
SN_local *)z)->i_prefix == 3)
goto lab0;
134 if (((
SN_local *)z)->i_prefix == 2)
goto lab0;
135 if (z->c <= z->lb || z->p[z->c - 1] !=
'k')
goto lab0;
141 if (((
SN_local *)z)->i_prefix == 1)
return 0;
145 if (((
SN_local *)z)->i_prefix > 2)
return 0;
147 int v_2 = z->l - z->c;
148 if (z->c <= z->lb || z->p[z->c - 1] !=
's')
goto lab1;
158 if (ret < 0)
return ret;
167 if (z->
c + 1 >= z->
l || (z->
p[z->
c + 1] != 105 && z->
p[z->
c + 1] != 101))
return 0;
169 if (!among_var)
return 0;
175 if (ret < 0)
return ret;
183 if (z->
c == z->
l || z->
p[z->
c] !=
'y')
goto lab0;
193 if (ret < 0)
return ret;
202 if (ret < 0)
return ret;
211 if (ret < 0)
return ret;
219 if (z->
c == z->
l || z->
p[z->
c] !=
'y')
goto lab1;
229 if (ret < 0)
return ret;
238 if (ret < 0)
return ret;
255 if (ret < 0)
return ret;
263 if (ret < 0)
return ret;
278 if (ret < 0)
return ret;
286 if (ret < 0)
return ret;
297 if (z->
c + 1 >= z->
l || z->
p[z->
c + 1] != 101)
return 0;
299 if (!among_var)
return 0;
304 if (z->
c == z->
l || z->
p[z->
c] !=
'r')
goto lab0;
311 if (z->
c == z->
l || z->
p[z->
c] !=
'l')
goto lab1;
314 if (!(
eq_s(z, 4,
s_4)))
goto lab1;
325 if (z->
c == z->
l || z->
p[z->
c] !=
'r')
goto lab2;
331 if (z->
c == z->
l || z->
p[z->
c] !=
'l')
goto lab3;
334 if (!(
eq_s(z, 4,
s_5)))
goto lab3;
340 if (!(
eq_s(z, 2,
s_6)))
return 0;
348 if (ret < 0)
return ret;
361 if (ret < 0)
goto lab1;
372 if (((
SN_local *)z)->i_measure <= 2)
return 0;
374 z->
lb = z->
c; z->
c = z->
l;
376 int v_3 = z->
l - z->
c;
379 if (ret < 0)
return ret;
383 if (((
SN_local *)z)->i_measure <= 2)
return 0;
385 int v_4 = z->
l - z->
c;
388 if (ret < 0)
return ret;
393 if (((
SN_local *)z)->i_measure <= 2)
return 0;
400 if (ret == 0)
goto lab2;
401 if (ret < 0)
return ret;
407 if (((
SN_local *)z)->i_measure <= 2)
goto lab3;
408 z->lb = z->c; z->c = z->l;
411 if (ret == 0)
goto lab3;
412 if (ret < 0)
return ret;
417 if (((
SN_local *)z)->i_measure <= 2)
goto lab3;
420 if (ret == 0)
goto lab3;
421 if (ret < 0)
return ret;
435 if (ret < 0)
return ret;
441 if (((
SN_local *)z)->i_measure <= 2)
goto lab4;
442 z->lb = z->c; z->c = z->l;
445 if (ret == 0)
goto lab4;
446 if (ret < 0)
return ret;
void SN_delete_env(struct SN_env *z)
struct SN_env * SN_new_env(int alloc_size)
void indonesian_UTF_8_close_env(struct SN_env *z)
static const symbol s_2[]
static const symbol s_0_2[3]
static const struct among a_2[2]
static const symbol s_3_5[4]
static const symbol s_3_9[3]
static const symbol s_4[]
static const symbol s_3_7[3]
static const symbol s_1_2[2]
static const symbol s_3_1[2]
static int r_remove_particle(struct SN_env *z)
static const symbol s_4_1[2]
static int r_remove_first_order_prefix(struct SN_env *z)
static const symbol s_2_0[1]
static const struct among a_0[3]
static const symbol s_6[]
static int r_remove_suffix(struct SN_env *z)
static const symbol s_3[]
static const symbol s_3_0[2]
static const symbol s_1_1[2]
static const symbol s_0_0[3]
static int r_remove_possessive_pronoun(struct SN_env *z)
static const symbol s_0_1[3]
static const struct among a_3[10]
static const symbol s_3_6[3]
int indonesian_UTF_8_stem(struct SN_env *z)
static const struct among a_4[2]
static const struct among a_1[3]
static const symbol s_1[]
static const symbol s_3_4[3]
static const symbol s_3_3[3]
static const symbol s_4_0[2]
static const symbol s_1_0[3]
static const symbol s_3_8[4]
static int r_remove_second_order_prefix(struct SN_env *z)
static const unsigned char g_vowel[]
static const symbol s_2_1[2]
static const symbol s_3_2[2]
static const symbol s_5[]
struct SN_env * indonesian_UTF_8_create_env(void)
static const symbol s_0[]
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 eq_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 *))
SNOWBALL_ERR slice_del(struct SN_env *z)
int find_among(struct SN_env *z, const struct among *v, int v_size, int(*call_among_func)(struct SN_env *))