1 /* Generated by Snowball 2.1.0 - https://snowballstem.org/ */
2 
3 #include "header.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 extern int romanian_ISO_8859_2_stem(struct SN_env * z);
9 #ifdef __cplusplus
10 }
11 #endif
12 static int r_vowel_suffix(struct SN_env * z);
13 static int r_verb_suffix(struct SN_env * z);
14 static int r_combo_suffix(struct SN_env * z);
15 static int r_standard_suffix(struct SN_env * z);
16 static int r_step_0(struct SN_env * z);
17 static int r_R2(struct SN_env * z);
18 static int r_R1(struct SN_env * z);
19 static int r_RV(struct SN_env * z);
20 static int r_mark_regions(struct SN_env * z);
21 static int r_postlude(struct SN_env * z);
22 static int r_prelude(struct SN_env * z);
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 
28 extern struct SN_env * romanian_ISO_8859_2_create_env(void);
29 extern void romanian_ISO_8859_2_close_env(struct SN_env * z);
30 
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 static const symbol s_0_1[1] = { 'I' };
36 static const symbol s_0_2[1] = { 'U' };
37 
38 static const struct among a_0[3] =
39 {
40 { 0, 0, -1, 3, 0},
41 { 1, s_0_1, 0, 1, 0},
42 { 1, s_0_2, 0, 2, 0}
43 };
44 
45 static const symbol s_1_0[2] = { 'e', 'a' };
46 static const symbol s_1_1[4] = { 'a', 0xFE, 'i', 'a' };
47 static const symbol s_1_2[3] = { 'a', 'u', 'a' };
48 static const symbol s_1_3[3] = { 'i', 'u', 'a' };
49 static const symbol s_1_4[4] = { 'a', 0xFE, 'i', 'e' };
50 static const symbol s_1_5[3] = { 'e', 'l', 'e' };
51 static const symbol s_1_6[3] = { 'i', 'l', 'e' };
52 static const symbol s_1_7[4] = { 'i', 'i', 'l', 'e' };
53 static const symbol s_1_8[3] = { 'i', 'e', 'i' };
54 static const symbol s_1_9[4] = { 'a', 't', 'e', 'i' };
55 static const symbol s_1_10[2] = { 'i', 'i' };
56 static const symbol s_1_11[4] = { 'u', 'l', 'u', 'i' };
57 static const symbol s_1_12[2] = { 'u', 'l' };
58 static const symbol s_1_13[4] = { 'e', 'l', 'o', 'r' };
59 static const symbol s_1_14[4] = { 'i', 'l', 'o', 'r' };
60 static const symbol s_1_15[5] = { 'i', 'i', 'l', 'o', 'r' };
61 
62 static const struct among a_1[16] =
63 {
64 { 2, s_1_0, -1, 3, 0},
65 { 4, s_1_1, -1, 7, 0},
66 { 3, s_1_2, -1, 2, 0},
67 { 3, s_1_3, -1, 4, 0},
68 { 4, s_1_4, -1, 7, 0},
69 { 3, s_1_5, -1, 3, 0},
70 { 3, s_1_6, -1, 5, 0},
71 { 4, s_1_7, 6, 4, 0},
72 { 3, s_1_8, -1, 4, 0},
73 { 4, s_1_9, -1, 6, 0},
74 { 2, s_1_10, -1, 4, 0},
75 { 4, s_1_11, -1, 1, 0},
76 { 2, s_1_12, -1, 1, 0},
77 { 4, s_1_13, -1, 3, 0},
78 { 4, s_1_14, -1, 4, 0},
79 { 5, s_1_15, 14, 4, 0}
80 };
81 
82 static const symbol s_2_0[5] = { 'i', 'c', 'a', 'l', 'a' };
83 static const symbol s_2_1[5] = { 'i', 'c', 'i', 'v', 'a' };
84 static const symbol s_2_2[5] = { 'a', 't', 'i', 'v', 'a' };
85 static const symbol s_2_3[5] = { 'i', 't', 'i', 'v', 'a' };
86 static const symbol s_2_4[5] = { 'i', 'c', 'a', 'l', 'e' };
87 static const symbol s_2_5[6] = { 'a', 0xFE, 'i', 'u', 'n', 'e' };
88 static const symbol s_2_6[6] = { 'i', 0xFE, 'i', 'u', 'n', 'e' };
89 static const symbol s_2_7[6] = { 'a', 't', 'o', 'a', 'r', 'e' };
90 static const symbol s_2_8[6] = { 'i', 't', 'o', 'a', 'r', 'e' };
91 static const symbol s_2_9[6] = { 0xE3, 't', 'o', 'a', 'r', 'e' };
92 static const symbol s_2_10[7] = { 'i', 'c', 'i', 't', 'a', 't', 'e' };
93 static const symbol s_2_11[9] = { 'a', 'b', 'i', 'l', 'i', 't', 'a', 't', 'e' };
94 static const symbol s_2_12[9] = { 'i', 'b', 'i', 'l', 'i', 't', 'a', 't', 'e' };
95 static const symbol s_2_13[7] = { 'i', 'v', 'i', 't', 'a', 't', 'e' };
96 static const symbol s_2_14[5] = { 'i', 'c', 'i', 'v', 'e' };
97 static const symbol s_2_15[5] = { 'a', 't', 'i', 'v', 'e' };
98 static const symbol s_2_16[5] = { 'i', 't', 'i', 'v', 'e' };
99 static const symbol s_2_17[5] = { 'i', 'c', 'a', 'l', 'i' };
100 static const symbol s_2_18[5] = { 'a', 't', 'o', 'r', 'i' };
101 static const symbol s_2_19[7] = { 'i', 'c', 'a', 't', 'o', 'r', 'i' };
102 static const symbol s_2_20[5] = { 'i', 't', 'o', 'r', 'i' };
103 static const symbol s_2_21[5] = { 0xE3, 't', 'o', 'r', 'i' };
104 static const symbol s_2_22[7] = { 'i', 'c', 'i', 't', 'a', 't', 'i' };
105 static const symbol s_2_23[9] = { 'a', 'b', 'i', 'l', 'i', 't', 'a', 't', 'i' };
106 static const symbol s_2_24[7] = { 'i', 'v', 'i', 't', 'a', 't', 'i' };
107 static const symbol s_2_25[5] = { 'i', 'c', 'i', 'v', 'i' };
108 static const symbol s_2_26[5] = { 'a', 't', 'i', 'v', 'i' };
109 static const symbol s_2_27[5] = { 'i', 't', 'i', 'v', 'i' };
110 static const symbol s_2_28[6] = { 'i', 'c', 'i', 't', 0xE3, 'i' };
111 static const symbol s_2_29[8] = { 'a', 'b', 'i', 'l', 'i', 't', 0xE3, 'i' };
112 static const symbol s_2_30[6] = { 'i', 'v', 'i', 't', 0xE3, 'i' };
113 static const symbol s_2_31[7] = { 'i', 'c', 'i', 't', 0xE3, 0xFE, 'i' };
114 static const symbol s_2_32[9] = { 'a', 'b', 'i', 'l', 'i', 't', 0xE3, 0xFE, 'i' };
115 static const symbol s_2_33[7] = { 'i', 'v', 'i', 't', 0xE3, 0xFE, 'i' };
116 static const symbol s_2_34[4] = { 'i', 'c', 'a', 'l' };
117 static const symbol s_2_35[4] = { 'a', 't', 'o', 'r' };
118 static const symbol s_2_36[6] = { 'i', 'c', 'a', 't', 'o', 'r' };
119 static const symbol s_2_37[4] = { 'i', 't', 'o', 'r' };
120 static const symbol s_2_38[4] = { 0xE3, 't', 'o', 'r' };
121 static const symbol s_2_39[4] = { 'i', 'c', 'i', 'v' };
122 static const symbol s_2_40[4] = { 'a', 't', 'i', 'v' };
123 static const symbol s_2_41[4] = { 'i', 't', 'i', 'v' };
124 static const symbol s_2_42[5] = { 'i', 'c', 'a', 'l', 0xE3 };
125 static const symbol s_2_43[5] = { 'i', 'c', 'i', 'v', 0xE3 };
126 static const symbol s_2_44[5] = { 'a', 't', 'i', 'v', 0xE3 };
127 static const symbol s_2_45[5] = { 'i', 't', 'i', 'v', 0xE3 };
128 
129 static const struct among a_2[46] =
130 {
131 { 5, s_2_0, -1, 4, 0},
132 { 5, s_2_1, -1, 4, 0},
133 { 5, s_2_2, -1, 5, 0},
134 { 5, s_2_3, -1, 6, 0},
135 { 5, s_2_4, -1, 4, 0},
136 { 6, s_2_5, -1, 5, 0},
137 { 6, s_2_6, -1, 6, 0},
138 { 6, s_2_7, -1, 5, 0},
139 { 6, s_2_8, -1, 6, 0},
140 { 6, s_2_9, -1, 5, 0},
141 { 7, s_2_10, -1, 4, 0},
142 { 9, s_2_11, -1, 1, 0},
143 { 9, s_2_12, -1, 2, 0},
144 { 7, s_2_13, -1, 3, 0},
145 { 5, s_2_14, -1, 4, 0},
146 { 5, s_2_15, -1, 5, 0},
147 { 5, s_2_16, -1, 6, 0},
148 { 5, s_2_17, -1, 4, 0},
149 { 5, s_2_18, -1, 5, 0},
150 { 7, s_2_19, 18, 4, 0},
151 { 5, s_2_20, -1, 6, 0},
152 { 5, s_2_21, -1, 5, 0},
153 { 7, s_2_22, -1, 4, 0},
154 { 9, s_2_23, -1, 1, 0},
155 { 7, s_2_24, -1, 3, 0},
156 { 5, s_2_25, -1, 4, 0},
157 { 5, s_2_26, -1, 5, 0},
158 { 5, s_2_27, -1, 6, 0},
159 { 6, s_2_28, -1, 4, 0},
160 { 8, s_2_29, -1, 1, 0},
161 { 6, s_2_30, -1, 3, 0},
162 { 7, s_2_31, -1, 4, 0},
163 { 9, s_2_32, -1, 1, 0},
164 { 7, s_2_33, -1, 3, 0},
165 { 4, s_2_34, -1, 4, 0},
166 { 4, s_2_35, -1, 5, 0},
167 { 6, s_2_36, 35, 4, 0},
168 { 4, s_2_37, -1, 6, 0},
169 { 4, s_2_38, -1, 5, 0},
170 { 4, s_2_39, -1, 4, 0},
171 { 4, s_2_40, -1, 5, 0},
172 { 4, s_2_41, -1, 6, 0},
173 { 5, s_2_42, -1, 4, 0},
174 { 5, s_2_43, -1, 4, 0},
175 { 5, s_2_44, -1, 5, 0},
176 { 5, s_2_45, -1, 6, 0}
177 };
178 
179 static const symbol s_3_0[3] = { 'i', 'c', 'a' };
180 static const symbol s_3_1[5] = { 'a', 'b', 'i', 'l', 'a' };
181 static const symbol s_3_2[5] = { 'i', 'b', 'i', 'l', 'a' };
182 static const symbol s_3_3[4] = { 'o', 'a', 's', 'a' };
183 static const symbol s_3_4[3] = { 'a', 't', 'a' };
184 static const symbol s_3_5[3] = { 'i', 't', 'a' };
185 static const symbol s_3_6[4] = { 'a', 'n', 't', 'a' };
186 static const symbol s_3_7[4] = { 'i', 's', 't', 'a' };
187 static const symbol s_3_8[3] = { 'u', 't', 'a' };
188 static const symbol s_3_9[3] = { 'i', 'v', 'a' };
189 static const symbol s_3_10[2] = { 'i', 'c' };
190 static const symbol s_3_11[3] = { 'i', 'c', 'e' };
191 static const symbol s_3_12[5] = { 'a', 'b', 'i', 'l', 'e' };
192 static const symbol s_3_13[5] = { 'i', 'b', 'i', 'l', 'e' };
193 static const symbol s_3_14[4] = { 'i', 's', 'm', 'e' };
194 static const symbol s_3_15[4] = { 'i', 'u', 'n', 'e' };
195 static const symbol s_3_16[4] = { 'o', 'a', 's', 'e' };
196 static const symbol s_3_17[3] = { 'a', 't', 'e' };
197 static const symbol s_3_18[5] = { 'i', 't', 'a', 't', 'e' };
198 static const symbol s_3_19[3] = { 'i', 't', 'e' };
199 static const symbol s_3_20[4] = { 'a', 'n', 't', 'e' };
200 static const symbol s_3_21[4] = { 'i', 's', 't', 'e' };
201 static const symbol s_3_22[3] = { 'u', 't', 'e' };
202 static const symbol s_3_23[3] = { 'i', 'v', 'e' };
203 static const symbol s_3_24[3] = { 'i', 'c', 'i' };
204 static const symbol s_3_25[5] = { 'a', 'b', 'i', 'l', 'i' };
205 static const symbol s_3_26[5] = { 'i', 'b', 'i', 'l', 'i' };
206 static const symbol s_3_27[4] = { 'i', 'u', 'n', 'i' };
207 static const symbol s_3_28[5] = { 'a', 't', 'o', 'r', 'i' };
208 static const symbol s_3_29[3] = { 'o', 's', 'i' };
209 static const symbol s_3_30[3] = { 'a', 't', 'i' };
210 static const symbol s_3_31[5] = { 'i', 't', 'a', 't', 'i' };
211 static const symbol s_3_32[3] = { 'i', 't', 'i' };
212 static const symbol s_3_33[4] = { 'a', 'n', 't', 'i' };
213 static const symbol s_3_34[4] = { 'i', 's', 't', 'i' };
214 static const symbol s_3_35[3] = { 'u', 't', 'i' };
215 static const symbol s_3_36[4] = { 'i', 0xBA, 't', 'i' };
216 static const symbol s_3_37[3] = { 'i', 'v', 'i' };
217 static const symbol s_3_38[3] = { 'o', 0xBA, 'i' };
218 static const symbol s_3_39[4] = { 'i', 't', 0xE3, 'i' };
219 static const symbol s_3_40[5] = { 'i', 't', 0xE3, 0xFE, 'i' };
220 static const symbol s_3_41[4] = { 'a', 'b', 'i', 'l' };
221 static const symbol s_3_42[4] = { 'i', 'b', 'i', 'l' };
222 static const symbol s_3_43[3] = { 'i', 's', 'm' };
223 static const symbol s_3_44[4] = { 'a', 't', 'o', 'r' };
224 static const symbol s_3_45[2] = { 'o', 's' };
225 static const symbol s_3_46[2] = { 'a', 't' };
226 static const symbol s_3_47[2] = { 'i', 't' };
227 static const symbol s_3_48[3] = { 'a', 'n', 't' };
228 static const symbol s_3_49[3] = { 'i', 's', 't' };
229 static const symbol s_3_50[2] = { 'u', 't' };
230 static const symbol s_3_51[2] = { 'i', 'v' };
231 static const symbol s_3_52[3] = { 'i', 'c', 0xE3 };
232 static const symbol s_3_53[5] = { 'a', 'b', 'i', 'l', 0xE3 };
233 static const symbol s_3_54[5] = { 'i', 'b', 'i', 'l', 0xE3 };
234 static const symbol s_3_55[4] = { 'o', 'a', 's', 0xE3 };
235 static const symbol s_3_56[3] = { 'a', 't', 0xE3 };
236 static const symbol s_3_57[3] = { 'i', 't', 0xE3 };
237 static const symbol s_3_58[4] = { 'a', 'n', 't', 0xE3 };
238 static const symbol s_3_59[4] = { 'i', 's', 't', 0xE3 };
239 static const symbol s_3_60[3] = { 'u', 't', 0xE3 };
240 static const symbol s_3_61[3] = { 'i', 'v', 0xE3 };
241 
242 static const struct among a_3[62] =
243 {
244 { 3, s_3_0, -1, 1, 0},
245 { 5, s_3_1, -1, 1, 0},
246 { 5, s_3_2, -1, 1, 0},
247 { 4, s_3_3, -1, 1, 0},
248 { 3, s_3_4, -1, 1, 0},
249 { 3, s_3_5, -1, 1, 0},
250 { 4, s_3_6, -1, 1, 0},
251 { 4, s_3_7, -1, 3, 0},
252 { 3, s_3_8, -1, 1, 0},
253 { 3, s_3_9, -1, 1, 0},
254 { 2, s_3_10, -1, 1, 0},
255 { 3, s_3_11, -1, 1, 0},
256 { 5, s_3_12, -1, 1, 0},
257 { 5, s_3_13, -1, 1, 0},
258 { 4, s_3_14, -1, 3, 0},
259 { 4, s_3_15, -1, 2, 0},
260 { 4, s_3_16, -1, 1, 0},
261 { 3, s_3_17, -1, 1, 0},
262 { 5, s_3_18, 17, 1, 0},
263 { 3, s_3_19, -1, 1, 0},
264 { 4, s_3_20, -1, 1, 0},
265 { 4, s_3_21, -1, 3, 0},
266 { 3, s_3_22, -1, 1, 0},
267 { 3, s_3_23, -1, 1, 0},
268 { 3, s_3_24, -1, 1, 0},
269 { 5, s_3_25, -1, 1, 0},
270 { 5, s_3_26, -1, 1, 0},
271 { 4, s_3_27, -1, 2, 0},
272 { 5, s_3_28, -1, 1, 0},
273 { 3, s_3_29, -1, 1, 0},
274 { 3, s_3_30, -1, 1, 0},
275 { 5, s_3_31, 30, 1, 0},
276 { 3, s_3_32, -1, 1, 0},
277 { 4, s_3_33, -1, 1, 0},
278 { 4, s_3_34, -1, 3, 0},
279 { 3, s_3_35, -1, 1, 0},
280 { 4, s_3_36, -1, 3, 0},
281 { 3, s_3_37, -1, 1, 0},
282 { 3, s_3_38, -1, 1, 0},
283 { 4, s_3_39, -1, 1, 0},
284 { 5, s_3_40, -1, 1, 0},
285 { 4, s_3_41, -1, 1, 0},
286 { 4, s_3_42, -1, 1, 0},
287 { 3, s_3_43, -1, 3, 0},
288 { 4, s_3_44, -1, 1, 0},
289 { 2, s_3_45, -1, 1, 0},
290 { 2, s_3_46, -1, 1, 0},
291 { 2, s_3_47, -1, 1, 0},
292 { 3, s_3_48, -1, 1, 0},
293 { 3, s_3_49, -1, 3, 0},
294 { 2, s_3_50, -1, 1, 0},
295 { 2, s_3_51, -1, 1, 0},
296 { 3, s_3_52, -1, 1, 0},
297 { 5, s_3_53, -1, 1, 0},
298 { 5, s_3_54, -1, 1, 0},
299 { 4, s_3_55, -1, 1, 0},
300 { 3, s_3_56, -1, 1, 0},
301 { 3, s_3_57, -1, 1, 0},
302 { 4, s_3_58, -1, 1, 0},
303 { 4, s_3_59, -1, 3, 0},
304 { 3, s_3_60, -1, 1, 0},
305 { 3, s_3_61, -1, 1, 0}
306 };
307 
308 static const symbol s_4_0[2] = { 'e', 'a' };
309 static const symbol s_4_1[2] = { 'i', 'a' };
310 static const symbol s_4_2[3] = { 'e', 's', 'c' };
311 static const symbol s_4_3[3] = { 0xE3, 's', 'c' };
312 static const symbol s_4_4[3] = { 'i', 'n', 'd' };
313 static const symbol s_4_5[3] = { 0xE2, 'n', 'd' };
314 static const symbol s_4_6[3] = { 'a', 'r', 'e' };
315 static const symbol s_4_7[3] = { 'e', 'r', 'e' };
316 static const symbol s_4_8[3] = { 'i', 'r', 'e' };
317 static const symbol s_4_9[3] = { 0xE2, 'r', 'e' };
318 static const symbol s_4_10[2] = { 's', 'e' };
319 static const symbol s_4_11[3] = { 'a', 's', 'e' };
320 static const symbol s_4_12[4] = { 's', 'e', 's', 'e' };
321 static const symbol s_4_13[3] = { 'i', 's', 'e' };
322 static const symbol s_4_14[3] = { 'u', 's', 'e' };
323 static const symbol s_4_15[3] = { 0xE2, 's', 'e' };
324 static const symbol s_4_16[4] = { 'e', 0xBA, 't', 'e' };
325 static const symbol s_4_17[4] = { 0xE3, 0xBA, 't', 'e' };
326 static const symbol s_4_18[3] = { 'e', 'z', 'e' };
327 static const symbol s_4_19[2] = { 'a', 'i' };
328 static const symbol s_4_20[3] = { 'e', 'a', 'i' };
329 static const symbol s_4_21[3] = { 'i', 'a', 'i' };
330 static const symbol s_4_22[3] = { 's', 'e', 'i' };
331 static const symbol s_4_23[4] = { 'e', 0xBA, 't', 'i' };
332 static const symbol s_4_24[4] = { 0xE3, 0xBA, 't', 'i' };
333 static const symbol s_4_25[2] = { 'u', 'i' };
334 static const symbol s_4_26[3] = { 'e', 'z', 'i' };
335 static const symbol s_4_27[3] = { 'a', 0xBA, 'i' };
336 static const symbol s_4_28[4] = { 's', 'e', 0xBA, 'i' };
337 static const symbol s_4_29[5] = { 'a', 's', 'e', 0xBA, 'i' };
338 static const symbol s_4_30[6] = { 's', 'e', 's', 'e', 0xBA, 'i' };
339 static const symbol s_4_31[5] = { 'i', 's', 'e', 0xBA, 'i' };
340 static const symbol s_4_32[5] = { 'u', 's', 'e', 0xBA, 'i' };
341 static const symbol s_4_33[5] = { 0xE2, 's', 'e', 0xBA, 'i' };
342 static const symbol s_4_34[3] = { 'i', 0xBA, 'i' };
343 static const symbol s_4_35[3] = { 'u', 0xBA, 'i' };
344 static const symbol s_4_36[3] = { 0xE2, 0xBA, 'i' };
345 static const symbol s_4_37[2] = { 0xE2, 'i' };
346 static const symbol s_4_38[3] = { 'a', 0xFE, 'i' };
347 static const symbol s_4_39[4] = { 'e', 'a', 0xFE, 'i' };
348 static const symbol s_4_40[4] = { 'i', 'a', 0xFE, 'i' };
349 static const symbol s_4_41[3] = { 'e', 0xFE, 'i' };
350 static const symbol s_4_42[3] = { 'i', 0xFE, 'i' };
351 static const symbol s_4_43[3] = { 0xE2, 0xFE, 'i' };
352 static const symbol s_4_44[5] = { 'a', 'r', 0xE3, 0xFE, 'i' };
353 static const symbol s_4_45[6] = { 's', 'e', 'r', 0xE3, 0xFE, 'i' };
354 static const symbol s_4_46[7] = { 'a', 's', 'e', 'r', 0xE3, 0xFE, 'i' };
355 static const symbol s_4_47[8] = { 's', 'e', 's', 'e', 'r', 0xE3, 0xFE, 'i' };
356 static const symbol s_4_48[7] = { 'i', 's', 'e', 'r', 0xE3, 0xFE, 'i' };
357 static const symbol s_4_49[7] = { 'u', 's', 'e', 'r', 0xE3, 0xFE, 'i' };
358 static const symbol s_4_50[7] = { 0xE2, 's', 'e', 'r', 0xE3, 0xFE, 'i' };
359 static const symbol s_4_51[5] = { 'i', 'r', 0xE3, 0xFE, 'i' };
360 static const symbol s_4_52[5] = { 'u', 'r', 0xE3, 0xFE, 'i' };
361 static const symbol s_4_53[5] = { 0xE2, 'r', 0xE3, 0xFE, 'i' };
362 static const symbol s_4_54[2] = { 'a', 'm' };
363 static const symbol s_4_55[3] = { 'e', 'a', 'm' };
364 static const symbol s_4_56[3] = { 'i', 'a', 'm' };
365 static const symbol s_4_57[2] = { 'e', 'm' };
366 static const symbol s_4_58[4] = { 'a', 's', 'e', 'm' };
367 static const symbol s_4_59[5] = { 's', 'e', 's', 'e', 'm' };
368 static const symbol s_4_60[4] = { 'i', 's', 'e', 'm' };
369 static const symbol s_4_61[4] = { 'u', 's', 'e', 'm' };
370 static const symbol s_4_62[4] = { 0xE2, 's', 'e', 'm' };
371 static const symbol s_4_63[2] = { 'i', 'm' };
372 static const symbol s_4_64[2] = { 0xE2, 'm' };
373 static const symbol s_4_65[2] = { 0xE3, 'm' };
374 static const symbol s_4_66[4] = { 'a', 'r', 0xE3, 'm' };
375 static const symbol s_4_67[5] = { 's', 'e', 'r', 0xE3, 'm' };
376 static const symbol s_4_68[6] = { 'a', 's', 'e', 'r', 0xE3, 'm' };
377 static const symbol s_4_69[7] = { 's', 'e', 's', 'e', 'r', 0xE3, 'm' };
378 static const symbol s_4_70[6] = { 'i', 's', 'e', 'r', 0xE3, 'm' };
379 static const symbol s_4_71[6] = { 'u', 's', 'e', 'r', 0xE3, 'm' };
380 static const symbol s_4_72[6] = { 0xE2, 's', 'e', 'r', 0xE3, 'm' };
381 static const symbol s_4_73[4] = { 'i', 'r', 0xE3, 'm' };
382 static const symbol s_4_74[4] = { 'u', 'r', 0xE3, 'm' };
383 static const symbol s_4_75[4] = { 0xE2, 'r', 0xE3, 'm' };
384 static const symbol s_4_76[2] = { 'a', 'u' };
385 static const symbol s_4_77[3] = { 'e', 'a', 'u' };
386 static const symbol s_4_78[3] = { 'i', 'a', 'u' };
387 static const symbol s_4_79[4] = { 'i', 'n', 'd', 'u' };
388 static const symbol s_4_80[4] = { 0xE2, 'n', 'd', 'u' };
389 static const symbol s_4_81[2] = { 'e', 'z' };
390 static const symbol s_4_82[5] = { 'e', 'a', 's', 'c', 0xE3 };
391 static const symbol s_4_83[3] = { 'a', 'r', 0xE3 };
392 static const symbol s_4_84[4] = { 's', 'e', 'r', 0xE3 };
393 static const symbol s_4_85[5] = { 'a', 's', 'e', 'r', 0xE3 };
394 static const symbol s_4_86[6] = { 's', 'e', 's', 'e', 'r', 0xE3 };
395 static const symbol s_4_87[5] = { 'i', 's', 'e', 'r', 0xE3 };
396 static const symbol s_4_88[5] = { 'u', 's', 'e', 'r', 0xE3 };
397 static const symbol s_4_89[5] = { 0xE2, 's', 'e', 'r', 0xE3 };
398 static const symbol s_4_90[3] = { 'i', 'r', 0xE3 };
399 static const symbol s_4_91[3] = { 'u', 'r', 0xE3 };
400 static const symbol s_4_92[3] = { 0xE2, 'r', 0xE3 };
401 static const symbol s_4_93[4] = { 'e', 'a', 'z', 0xE3 };
402 
403 static const struct among a_4[94] =
404 {
405 { 2, s_4_0, -1, 1, 0},
406 { 2, s_4_1, -1, 1, 0},
407 { 3, s_4_2, -1, 1, 0},
408 { 3, s_4_3, -1, 1, 0},
409 { 3, s_4_4, -1, 1, 0},
410 { 3, s_4_5, -1, 1, 0},
411 { 3, s_4_6, -1, 1, 0},
412 { 3, s_4_7, -1, 1, 0},
413 { 3, s_4_8, -1, 1, 0},
414 { 3, s_4_9, -1, 1, 0},
415 { 2, s_4_10, -1, 2, 0},
416 { 3, s_4_11, 10, 1, 0},
417 { 4, s_4_12, 10, 2, 0},
418 { 3, s_4_13, 10, 1, 0},
419 { 3, s_4_14, 10, 1, 0},
420 { 3, s_4_15, 10, 1, 0},
421 { 4, s_4_16, -1, 1, 0},
422 { 4, s_4_17, -1, 1, 0},
423 { 3, s_4_18, -1, 1, 0},
424 { 2, s_4_19, -1, 1, 0},
425 { 3, s_4_20, 19, 1, 0},
426 { 3, s_4_21, 19, 1, 0},
427 { 3, s_4_22, -1, 2, 0},
428 { 4, s_4_23, -1, 1, 0},
429 { 4, s_4_24, -1, 1, 0},
430 { 2, s_4_25, -1, 1, 0},
431 { 3, s_4_26, -1, 1, 0},
432 { 3, s_4_27, -1, 1, 0},
433 { 4, s_4_28, -1, 2, 0},
434 { 5, s_4_29, 28, 1, 0},
435 { 6, s_4_30, 28, 2, 0},
436 { 5, s_4_31, 28, 1, 0},
437 { 5, s_4_32, 28, 1, 0},
438 { 5, s_4_33, 28, 1, 0},
439 { 3, s_4_34, -1, 1, 0},
440 { 3, s_4_35, -1, 1, 0},
441 { 3, s_4_36, -1, 1, 0},
442 { 2, s_4_37, -1, 1, 0},
443 { 3, s_4_38, -1, 2, 0},
444 { 4, s_4_39, 38, 1, 0},
445 { 4, s_4_40, 38, 1, 0},
446 { 3, s_4_41, -1, 2, 0},
447 { 3, s_4_42, -1, 2, 0},
448 { 3, s_4_43, -1, 2, 0},
449 { 5, s_4_44, -1, 1, 0},
450 { 6, s_4_45, -1, 2, 0},
451 { 7, s_4_46, 45, 1, 0},
452 { 8, s_4_47, 45, 2, 0},
453 { 7, s_4_48, 45, 1, 0},
454 { 7, s_4_49, 45, 1, 0},
455 { 7, s_4_50, 45, 1, 0},
456 { 5, s_4_51, -1, 1, 0},
457 { 5, s_4_52, -1, 1, 0},
458 { 5, s_4_53, -1, 1, 0},
459 { 2, s_4_54, -1, 1, 0},
460 { 3, s_4_55, 54, 1, 0},
461 { 3, s_4_56, 54, 1, 0},
462 { 2, s_4_57, -1, 2, 0},
463 { 4, s_4_58, 57, 1, 0},
464 { 5, s_4_59, 57, 2, 0},
465 { 4, s_4_60, 57, 1, 0},
466 { 4, s_4_61, 57, 1, 0},
467 { 4, s_4_62, 57, 1, 0},
468 { 2, s_4_63, -1, 2, 0},
469 { 2, s_4_64, -1, 2, 0},
470 { 2, s_4_65, -1, 2, 0},
471 { 4, s_4_66, 65, 1, 0},
472 { 5, s_4_67, 65, 2, 0},
473 { 6, s_4_68, 67, 1, 0},
474 { 7, s_4_69, 67, 2, 0},
475 { 6, s_4_70, 67, 1, 0},
476 { 6, s_4_71, 67, 1, 0},
477 { 6, s_4_72, 67, 1, 0},
478 { 4, s_4_73, 65, 1, 0},
479 { 4, s_4_74, 65, 1, 0},
480 { 4, s_4_75, 65, 1, 0},
481 { 2, s_4_76, -1, 1, 0},
482 { 3, s_4_77, 76, 1, 0},
483 { 3, s_4_78, 76, 1, 0},
484 { 4, s_4_79, -1, 1, 0},
485 { 4, s_4_80, -1, 1, 0},
486 { 2, s_4_81, -1, 1, 0},
487 { 5, s_4_82, -1, 1, 0},
488 { 3, s_4_83, -1, 1, 0},
489 { 4, s_4_84, -1, 2, 0},
490 { 5, s_4_85, 84, 1, 0},
491 { 6, s_4_86, 84, 2, 0},
492 { 5, s_4_87, 84, 1, 0},
493 { 5, s_4_88, 84, 1, 0},
494 { 5, s_4_89, 84, 1, 0},
495 { 3, s_4_90, -1, 1, 0},
496 { 3, s_4_91, -1, 1, 0},
497 { 3, s_4_92, -1, 1, 0},
498 { 4, s_4_93, -1, 1, 0}
499 };
500 
501 static const symbol s_5_0[1] = { 'a' };
502 static const symbol s_5_1[1] = { 'e' };
503 static const symbol s_5_2[2] = { 'i', 'e' };
504 static const symbol s_5_3[1] = { 'i' };
505 static const symbol s_5_4[1] = { 0xE3 };
506 
507 static const struct among a_5[5] =
508 {
509 { 1, s_5_0, -1, 1, 0},
510 { 1, s_5_1, -1, 1, 0},
511 { 2, s_5_2, 1, 1, 0},
512 { 1, s_5_3, -1, 1, 0},
513 { 1, s_5_4, -1, 1, 0}
514 };
515 
516 static const unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 32 };
517 
518 static const symbol s_0[] = { 'U' };
519 static const symbol s_1[] = { 'I' };
520 static const symbol s_2[] = { 'i' };
521 static const symbol s_3[] = { 'u' };
522 static const symbol s_4[] = { 'a' };
523 static const symbol s_5[] = { 'e' };
524 static const symbol s_6[] = { 'i' };
525 static const symbol s_7[] = { 'a', 'b' };
526 static const symbol s_8[] = { 'i' };
527 static const symbol s_9[] = { 'a', 't' };
528 static const symbol s_10[] = { 'a', 0xFE, 'i' };
529 static const symbol s_11[] = { 'a', 'b', 'i', 'l' };
530 static const symbol s_12[] = { 'i', 'b', 'i', 'l' };
531 static const symbol s_13[] = { 'i', 'v' };
532 static const symbol s_14[] = { 'i', 'c' };
533 static const symbol s_15[] = { 'a', 't' };
534 static const symbol s_16[] = { 'i', 't' };
535 static const symbol s_17[] = { 't' };
536 static const symbol s_18[] = { 'i', 's', 't' };
537 
r_prelude(struct SN_env * z)538 static int r_prelude(struct SN_env * z) {
539     while(1) {
540         int c1 = z->c;
541         while(1) {
542             int c2 = z->c;
543             if (in_grouping(z, g_v, 97, 238, 0)) goto lab1;
544             z->bra = z->c;
545             {   int c3 = z->c;
546                 if (z->c == z->l || z->p[z->c] != 'u') goto lab3;
547                 z->c++;
548                 z->ket = z->c;
549                 if (in_grouping(z, g_v, 97, 238, 0)) goto lab3;
550                 {   int ret = slice_from_s(z, 1, s_0);
551                     if (ret < 0) return ret;
552                 }
553                 goto lab2;
554             lab3:
555                 z->c = c3;
556                 if (z->c == z->l || z->p[z->c] != 'i') goto lab1;
557                 z->c++;
558                 z->ket = z->c;
559                 if (in_grouping(z, g_v, 97, 238, 0)) goto lab1;
560                 {   int ret = slice_from_s(z, 1, s_1);
561                     if (ret < 0) return ret;
562                 }
563             }
564         lab2:
565             z->c = c2;
566             break;
567         lab1:
568             z->c = c2;
569             if (z->c >= z->l) goto lab0;
570             z->c++;
571         }
572         continue;
573     lab0:
574         z->c = c1;
575         break;
576     }
577     return 1;
578 }
579 
r_mark_regions(struct SN_env * z)580 static int r_mark_regions(struct SN_env * z) {
581     z->I[2] = z->l;
582     z->I[1] = z->l;
583     z->I[0] = z->l;
584     {   int c1 = z->c;
585         {   int c2 = z->c;
586             if (in_grouping(z, g_v, 97, 238, 0)) goto lab2;
587             {   int c3 = z->c;
588                 if (out_grouping(z, g_v, 97, 238, 0)) goto lab4;
589                 {
590                     int ret = out_grouping(z, g_v, 97, 238, 1);
591                     if (ret < 0) goto lab4;
592                     z->c += ret;
593                 }
594                 goto lab3;
595             lab4:
596                 z->c = c3;
597                 if (in_grouping(z, g_v, 97, 238, 0)) goto lab2;
598                 {
599                     int ret = in_grouping(z, g_v, 97, 238, 1);
600                     if (ret < 0) goto lab2;
601                     z->c += ret;
602                 }
603             }
604         lab3:
605             goto lab1;
606         lab2:
607             z->c = c2;
608             if (out_grouping(z, g_v, 97, 238, 0)) goto lab0;
609             {   int c4 = z->c;
610                 if (out_grouping(z, g_v, 97, 238, 0)) goto lab6;
611                 {
612                     int ret = out_grouping(z, g_v, 97, 238, 1);
613                     if (ret < 0) goto lab6;
614                     z->c += ret;
615                 }
616                 goto lab5;
617             lab6:
618                 z->c = c4;
619                 if (in_grouping(z, g_v, 97, 238, 0)) goto lab0;
620                 if (z->c >= z->l) goto lab0;
621                 z->c++;
622             }
623         lab5:
624             ;
625         }
626     lab1:
627         z->I[2] = z->c;
628     lab0:
629         z->c = c1;
630     }
631     {   int c5 = z->c;
632         {
633             int ret = out_grouping(z, g_v, 97, 238, 1);
634             if (ret < 0) goto lab7;
635             z->c += ret;
636         }
637         {
638             int ret = in_grouping(z, g_v, 97, 238, 1);
639             if (ret < 0) goto lab7;
640             z->c += ret;
641         }
642         z->I[1] = z->c;
643         {
644             int ret = out_grouping(z, g_v, 97, 238, 1);
645             if (ret < 0) goto lab7;
646             z->c += ret;
647         }
648         {
649             int ret = in_grouping(z, g_v, 97, 238, 1);
650             if (ret < 0) goto lab7;
651             z->c += ret;
652         }
653         z->I[0] = z->c;
654     lab7:
655         z->c = c5;
656     }
657     return 1;
658 }
659 
r_postlude(struct SN_env * z)660 static int r_postlude(struct SN_env * z) {
661     int among_var;
662     while(1) {
663         int c1 = z->c;
664         z->bra = z->c;
665         if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 85)) among_var = 3; else
666         among_var = find_among(z, a_0, 3);
667         if (!(among_var)) goto lab0;
668         z->ket = z->c;
669         switch (among_var) {
670             case 1:
671                 {   int ret = slice_from_s(z, 1, s_2);
672                     if (ret < 0) return ret;
673                 }
674                 break;
675             case 2:
676                 {   int ret = slice_from_s(z, 1, s_3);
677                     if (ret < 0) return ret;
678                 }
679                 break;
680             case 3:
681                 if (z->c >= z->l) goto lab0;
682                 z->c++;
683                 break;
684         }
685         continue;
686     lab0:
687         z->c = c1;
688         break;
689     }
690     return 1;
691 }
692 
r_RV(struct SN_env * z)693 static int r_RV(struct SN_env * z) {
694     if (!(z->I[2] <= z->c)) return 0;
695     return 1;
696 }
697 
r_R1(struct SN_env * z)698 static int r_R1(struct SN_env * z) {
699     if (!(z->I[1] <= z->c)) return 0;
700     return 1;
701 }
702 
r_R2(struct SN_env * z)703 static int r_R2(struct SN_env * z) {
704     if (!(z->I[0] <= z->c)) return 0;
705     return 1;
706 }
707 
r_step_0(struct SN_env * z)708 static int r_step_0(struct SN_env * z) {
709     int among_var;
710     z->ket = z->c;
711     if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((266786 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
712     among_var = find_among_b(z, a_1, 16);
713     if (!(among_var)) return 0;
714     z->bra = z->c;
715     {   int ret = r_R1(z);
716         if (ret <= 0) return ret;
717     }
718     switch (among_var) {
719         case 1:
720             {   int ret = slice_del(z);
721                 if (ret < 0) return ret;
722             }
723             break;
724         case 2:
725             {   int ret = slice_from_s(z, 1, s_4);
726                 if (ret < 0) return ret;
727             }
728             break;
729         case 3:
730             {   int ret = slice_from_s(z, 1, s_5);
731                 if (ret < 0) return ret;
732             }
733             break;
734         case 4:
735             {   int ret = slice_from_s(z, 1, s_6);
736                 if (ret < 0) return ret;
737             }
738             break;
739         case 5:
740             {   int m1 = z->l - z->c; (void)m1;
741                 if (!(eq_s_b(z, 2, s_7))) goto lab0;
742                 return 0;
743             lab0:
744                 z->c = z->l - m1;
745             }
746             {   int ret = slice_from_s(z, 1, s_8);
747                 if (ret < 0) return ret;
748             }
749             break;
750         case 6:
751             {   int ret = slice_from_s(z, 2, s_9);
752                 if (ret < 0) return ret;
753             }
754             break;
755         case 7:
756             {   int ret = slice_from_s(z, 3, s_10);
757                 if (ret < 0) return ret;
758             }
759             break;
760     }
761     return 1;
762 }
763 
r_combo_suffix(struct SN_env * z)764 static int r_combo_suffix(struct SN_env * z) {
765     int among_var;
766     {   int m_test1 = z->l - z->c;
767         z->ket = z->c;
768         among_var = find_among_b(z, a_2, 46);
769         if (!(among_var)) return 0;
770         z->bra = z->c;
771         {   int ret = r_R1(z);
772             if (ret <= 0) return ret;
773         }
774         switch (among_var) {
775             case 1:
776                 {   int ret = slice_from_s(z, 4, s_11);
777                     if (ret < 0) return ret;
778                 }
779                 break;
780             case 2:
781                 {   int ret = slice_from_s(z, 4, s_12);
782                     if (ret < 0) return ret;
783                 }
784                 break;
785             case 3:
786                 {   int ret = slice_from_s(z, 2, s_13);
787                     if (ret < 0) return ret;
788                 }
789                 break;
790             case 4:
791                 {   int ret = slice_from_s(z, 2, s_14);
792                     if (ret < 0) return ret;
793                 }
794                 break;
795             case 5:
796                 {   int ret = slice_from_s(z, 2, s_15);
797                     if (ret < 0) return ret;
798                 }
799                 break;
800             case 6:
801                 {   int ret = slice_from_s(z, 2, s_16);
802                     if (ret < 0) return ret;
803                 }
804                 break;
805         }
806         z->I[3] = 1;
807         z->c = z->l - m_test1;
808     }
809     return 1;
810 }
811 
r_standard_suffix(struct SN_env * z)812 static int r_standard_suffix(struct SN_env * z) {
813     int among_var;
814     z->I[3] = 0;
815     while(1) {
816         int m1 = z->l - z->c; (void)m1;
817         {   int ret = r_combo_suffix(z);
818             if (ret == 0) goto lab0;
819             if (ret < 0) return ret;
820         }
821         continue;
822     lab0:
823         z->c = z->l - m1;
824         break;
825     }
826     z->ket = z->c;
827     among_var = find_among_b(z, a_3, 62);
828     if (!(among_var)) return 0;
829     z->bra = z->c;
830     {   int ret = r_R2(z);
831         if (ret <= 0) return ret;
832     }
833     switch (among_var) {
834         case 1:
835             {   int ret = slice_del(z);
836                 if (ret < 0) return ret;
837             }
838             break;
839         case 2:
840             if (z->c <= z->lb || z->p[z->c - 1] != 0xFE) return 0;
841             z->c--;
842             z->bra = z->c;
843             {   int ret = slice_from_s(z, 1, s_17);
844                 if (ret < 0) return ret;
845             }
846             break;
847         case 3:
848             {   int ret = slice_from_s(z, 3, s_18);
849                 if (ret < 0) return ret;
850             }
851             break;
852     }
853     z->I[3] = 1;
854     return 1;
855 }
856 
r_verb_suffix(struct SN_env * z)857 static int r_verb_suffix(struct SN_env * z) {
858     int among_var;
859 
860     {   int mlimit1;
861         if (z->c < z->I[2]) return 0;
862         mlimit1 = z->lb; z->lb = z->I[2];
863         z->ket = z->c;
864         among_var = find_among_b(z, a_4, 94);
865         if (!(among_var)) { z->lb = mlimit1; return 0; }
866         z->bra = z->c;
867         switch (among_var) {
868             case 1:
869                 {   int m2 = z->l - z->c; (void)m2;
870                     if (out_grouping_b(z, g_v, 97, 238, 0)) goto lab1;
871                     goto lab0;
872                 lab1:
873                     z->c = z->l - m2;
874                     if (z->c <= z->lb || z->p[z->c - 1] != 'u') { z->lb = mlimit1; return 0; }
875                     z->c--;
876                 }
877             lab0:
878                 {   int ret = slice_del(z);
879                     if (ret < 0) return ret;
880                 }
881                 break;
882             case 2:
883                 {   int ret = slice_del(z);
884                     if (ret < 0) return ret;
885                 }
886                 break;
887         }
888         z->lb = mlimit1;
889     }
890     return 1;
891 }
892 
r_vowel_suffix(struct SN_env * z)893 static int r_vowel_suffix(struct SN_env * z) {
894     z->ket = z->c;
895     if (!(find_among_b(z, a_5, 5))) return 0;
896     z->bra = z->c;
897     {   int ret = r_RV(z);
898         if (ret <= 0) return ret;
899     }
900     {   int ret = slice_del(z);
901         if (ret < 0) return ret;
902     }
903     return 1;
904 }
905 
romanian_ISO_8859_2_stem(struct SN_env * z)906 extern int romanian_ISO_8859_2_stem(struct SN_env * z) {
907     {   int c1 = z->c;
908         {   int ret = r_prelude(z);
909             if (ret < 0) return ret;
910         }
911         z->c = c1;
912     }
913 
914     {   int ret = r_mark_regions(z);
915         if (ret < 0) return ret;
916     }
917     z->lb = z->c; z->c = z->l;
918 
919     {   int m2 = z->l - z->c; (void)m2;
920         {   int ret = r_step_0(z);
921             if (ret < 0) return ret;
922         }
923         z->c = z->l - m2;
924     }
925     {   int m3 = z->l - z->c; (void)m3;
926         {   int ret = r_standard_suffix(z);
927             if (ret < 0) return ret;
928         }
929         z->c = z->l - m3;
930     }
931     {   int m4 = z->l - z->c; (void)m4;
932         {   int m5 = z->l - z->c; (void)m5;
933             if (!(z->I[3])) goto lab2;
934             goto lab1;
935         lab2:
936             z->c = z->l - m5;
937             {   int ret = r_verb_suffix(z);
938                 if (ret == 0) goto lab0;
939                 if (ret < 0) return ret;
940             }
941         }
942     lab1:
943     lab0:
944         z->c = z->l - m4;
945     }
946     {   int m6 = z->l - z->c; (void)m6;
947         {   int ret = r_vowel_suffix(z);
948             if (ret < 0) return ret;
949         }
950         z->c = z->l - m6;
951     }
952     z->c = z->lb;
953     {   int c7 = z->c;
954         {   int ret = r_postlude(z);
955             if (ret < 0) return ret;
956         }
957         z->c = c7;
958     }
959     return 1;
960 }
961 
romanian_ISO_8859_2_create_env(void)962 extern struct SN_env * romanian_ISO_8859_2_create_env(void) { return SN_create_env(0, 4); }
963 
romanian_ISO_8859_2_close_env(struct SN_env * z)964 extern void romanian_ISO_8859_2_close_env(struct SN_env * z) { SN_close_env(z, 0); }
965 
966