PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_ISO_8859_1_porter.c
Go to the documentation of this file.
1/* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
2
3#include "header.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8extern int porter_ISO_8859_1_stem(struct SN_env * z);
9#ifdef __cplusplus
10}
11#endif
12static int r_Step_5b(struct SN_env * z);
13static int r_Step_5a(struct SN_env * z);
14static int r_Step_4(struct SN_env * z);
15static int r_Step_3(struct SN_env * z);
16static int r_Step_2(struct SN_env * z);
17static int r_Step_1c(struct SN_env * z);
18static int r_Step_1b(struct SN_env * z);
19static int r_Step_1a(struct SN_env * z);
20static int r_R2(struct SN_env * z);
21static int r_R1(struct SN_env * z);
22static int r_shortv(struct SN_env * z);
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27
28extern struct SN_env * porter_ISO_8859_1_create_env(void);
29extern void porter_ISO_8859_1_close_env(struct SN_env * z);
30
31
32#ifdef __cplusplus
33}
34#endif
35static const symbol s_0_0[1] = { 's' };
36static const symbol s_0_1[3] = { 'i', 'e', 's' };
37static const symbol s_0_2[4] = { 's', 's', 'e', 's' };
38static const symbol s_0_3[2] = { 's', 's' };
39
40static const struct among a_0[4] =
41{
42{ 1, s_0_0, -1, 3, 0},
43{ 3, s_0_1, 0, 2, 0},
44{ 4, s_0_2, 0, 1, 0},
45{ 2, s_0_3, 0, -1, 0}
46};
47
48static const symbol s_1_1[2] = { 'b', 'b' };
49static const symbol s_1_2[2] = { 'd', 'd' };
50static const symbol s_1_3[2] = { 'f', 'f' };
51static const symbol s_1_4[2] = { 'g', 'g' };
52static const symbol s_1_5[2] = { 'b', 'l' };
53static const symbol s_1_6[2] = { 'm', 'm' };
54static const symbol s_1_7[2] = { 'n', 'n' };
55static const symbol s_1_8[2] = { 'p', 'p' };
56static const symbol s_1_9[2] = { 'r', 'r' };
57static const symbol s_1_10[2] = { 'a', 't' };
58static const symbol s_1_11[2] = { 't', 't' };
59static const symbol s_1_12[2] = { 'i', 'z' };
60
61static const struct among a_1[13] =
62{
63{ 0, 0, -1, 3, 0},
64{ 2, s_1_1, 0, 2, 0},
65{ 2, s_1_2, 0, 2, 0},
66{ 2, s_1_3, 0, 2, 0},
67{ 2, s_1_4, 0, 2, 0},
68{ 2, s_1_5, 0, 1, 0},
69{ 2, s_1_6, 0, 2, 0},
70{ 2, s_1_7, 0, 2, 0},
71{ 2, s_1_8, 0, 2, 0},
72{ 2, s_1_9, 0, 2, 0},
73{ 2, s_1_10, 0, 1, 0},
74{ 2, s_1_11, 0, 2, 0},
75{ 2, s_1_12, 0, 1, 0}
76};
77
78static const symbol s_2_0[2] = { 'e', 'd' };
79static const symbol s_2_1[3] = { 'e', 'e', 'd' };
80static const symbol s_2_2[3] = { 'i', 'n', 'g' };
81
82static const struct among a_2[3] =
83{
84{ 2, s_2_0, -1, 2, 0},
85{ 3, s_2_1, 0, 1, 0},
86{ 3, s_2_2, -1, 2, 0}
87};
88
89static const symbol s_3_0[4] = { 'a', 'n', 'c', 'i' };
90static const symbol s_3_1[4] = { 'e', 'n', 'c', 'i' };
91static const symbol s_3_2[4] = { 'a', 'b', 'l', 'i' };
92static const symbol s_3_3[3] = { 'e', 'l', 'i' };
93static const symbol s_3_4[4] = { 'a', 'l', 'l', 'i' };
94static const symbol s_3_5[5] = { 'o', 'u', 's', 'l', 'i' };
95static const symbol s_3_6[5] = { 'e', 'n', 't', 'l', 'i' };
96static const symbol s_3_7[5] = { 'a', 'l', 'i', 't', 'i' };
97static const symbol s_3_8[6] = { 'b', 'i', 'l', 'i', 't', 'i' };
98static const symbol s_3_9[5] = { 'i', 'v', 'i', 't', 'i' };
99static const symbol s_3_10[6] = { 't', 'i', 'o', 'n', 'a', 'l' };
100static const symbol s_3_11[7] = { 'a', 't', 'i', 'o', 'n', 'a', 'l' };
101static const symbol s_3_12[5] = { 'a', 'l', 'i', 's', 'm' };
102static const symbol s_3_13[5] = { 'a', 't', 'i', 'o', 'n' };
103static const symbol s_3_14[7] = { 'i', 'z', 'a', 't', 'i', 'o', 'n' };
104static const symbol s_3_15[4] = { 'i', 'z', 'e', 'r' };
105static const symbol s_3_16[4] = { 'a', 't', 'o', 'r' };
106static const symbol s_3_17[7] = { 'i', 'v', 'e', 'n', 'e', 's', 's' };
107static const symbol s_3_18[7] = { 'f', 'u', 'l', 'n', 'e', 's', 's' };
108static const symbol s_3_19[7] = { 'o', 'u', 's', 'n', 'e', 's', 's' };
109
110static const struct among a_3[20] =
111{
112{ 4, s_3_0, -1, 3, 0},
113{ 4, s_3_1, -1, 2, 0},
114{ 4, s_3_2, -1, 4, 0},
115{ 3, s_3_3, -1, 6, 0},
116{ 4, s_3_4, -1, 9, 0},
117{ 5, s_3_5, -1, 11, 0},
118{ 5, s_3_6, -1, 5, 0},
119{ 5, s_3_7, -1, 9, 0},
120{ 6, s_3_8, -1, 13, 0},
121{ 5, s_3_9, -1, 12, 0},
122{ 6, s_3_10, -1, 1, 0},
123{ 7, s_3_11, 10, 8, 0},
124{ 5, s_3_12, -1, 9, 0},
125{ 5, s_3_13, -1, 8, 0},
126{ 7, s_3_14, 13, 7, 0},
127{ 4, s_3_15, -1, 7, 0},
128{ 4, s_3_16, -1, 8, 0},
129{ 7, s_3_17, -1, 12, 0},
130{ 7, s_3_18, -1, 10, 0},
131{ 7, s_3_19, -1, 11, 0}
132};
133
134static const symbol s_4_0[5] = { 'i', 'c', 'a', 't', 'e' };
135static const symbol s_4_1[5] = { 'a', 't', 'i', 'v', 'e' };
136static const symbol s_4_2[5] = { 'a', 'l', 'i', 'z', 'e' };
137static const symbol s_4_3[5] = { 'i', 'c', 'i', 't', 'i' };
138static const symbol s_4_4[4] = { 'i', 'c', 'a', 'l' };
139static const symbol s_4_5[3] = { 'f', 'u', 'l' };
140static const symbol s_4_6[4] = { 'n', 'e', 's', 's' };
141
142static const struct among a_4[7] =
143{
144{ 5, s_4_0, -1, 2, 0},
145{ 5, s_4_1, -1, 3, 0},
146{ 5, s_4_2, -1, 1, 0},
147{ 5, s_4_3, -1, 2, 0},
148{ 4, s_4_4, -1, 2, 0},
149{ 3, s_4_5, -1, 3, 0},
150{ 4, s_4_6, -1, 3, 0}
151};
152
153static const symbol s_5_0[2] = { 'i', 'c' };
154static const symbol s_5_1[4] = { 'a', 'n', 'c', 'e' };
155static const symbol s_5_2[4] = { 'e', 'n', 'c', 'e' };
156static const symbol s_5_3[4] = { 'a', 'b', 'l', 'e' };
157static const symbol s_5_4[4] = { 'i', 'b', 'l', 'e' };
158static const symbol s_5_5[3] = { 'a', 't', 'e' };
159static const symbol s_5_6[3] = { 'i', 'v', 'e' };
160static const symbol s_5_7[3] = { 'i', 'z', 'e' };
161static const symbol s_5_8[3] = { 'i', 't', 'i' };
162static const symbol s_5_9[2] = { 'a', 'l' };
163static const symbol s_5_10[3] = { 'i', 's', 'm' };
164static const symbol s_5_11[3] = { 'i', 'o', 'n' };
165static const symbol s_5_12[2] = { 'e', 'r' };
166static const symbol s_5_13[3] = { 'o', 'u', 's' };
167static const symbol s_5_14[3] = { 'a', 'n', 't' };
168static const symbol s_5_15[3] = { 'e', 'n', 't' };
169static const symbol s_5_16[4] = { 'm', 'e', 'n', 't' };
170static const symbol s_5_17[5] = { 'e', 'm', 'e', 'n', 't' };
171static const symbol s_5_18[2] = { 'o', 'u' };
172
173static const struct among a_5[19] =
174{
175{ 2, s_5_0, -1, 1, 0},
176{ 4, s_5_1, -1, 1, 0},
177{ 4, s_5_2, -1, 1, 0},
178{ 4, s_5_3, -1, 1, 0},
179{ 4, s_5_4, -1, 1, 0},
180{ 3, s_5_5, -1, 1, 0},
181{ 3, s_5_6, -1, 1, 0},
182{ 3, s_5_7, -1, 1, 0},
183{ 3, s_5_8, -1, 1, 0},
184{ 2, s_5_9, -1, 1, 0},
185{ 3, s_5_10, -1, 1, 0},
186{ 3, s_5_11, -1, 2, 0},
187{ 2, s_5_12, -1, 1, 0},
188{ 3, s_5_13, -1, 1, 0},
189{ 3, s_5_14, -1, 1, 0},
190{ 3, s_5_15, -1, 1, 0},
191{ 4, s_5_16, 15, 1, 0},
192{ 5, s_5_17, 16, 1, 0},
193{ 2, s_5_18, -1, 1, 0}
194};
195
196static const unsigned char g_v[] = { 17, 65, 16, 1 };
197
198static const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 };
199
200static const symbol s_0[] = { 's', 's' };
201static const symbol s_1[] = { 'i' };
202static const symbol s_2[] = { 'e', 'e' };
203static const symbol s_3[] = { 'e' };
204static const symbol s_4[] = { 'e' };
205static const symbol s_5[] = { 'i' };
206static const symbol s_6[] = { 't', 'i', 'o', 'n' };
207static const symbol s_7[] = { 'e', 'n', 'c', 'e' };
208static const symbol s_8[] = { 'a', 'n', 'c', 'e' };
209static const symbol s_9[] = { 'a', 'b', 'l', 'e' };
210static const symbol s_10[] = { 'e', 'n', 't' };
211static const symbol s_11[] = { 'e' };
212static const symbol s_12[] = { 'i', 'z', 'e' };
213static const symbol s_13[] = { 'a', 't', 'e' };
214static const symbol s_14[] = { 'a', 'l' };
215static const symbol s_15[] = { 'f', 'u', 'l' };
216static const symbol s_16[] = { 'o', 'u', 's' };
217static const symbol s_17[] = { 'i', 'v', 'e' };
218static const symbol s_18[] = { 'b', 'l', 'e' };
219static const symbol s_19[] = { 'a', 'l' };
220static const symbol s_20[] = { 'i', 'c' };
221static const symbol s_21[] = { 'Y' };
222static const symbol s_22[] = { 'Y' };
223static const symbol s_23[] = { 'y' };
224
225static int r_shortv(struct SN_env * z) {
226 if (out_grouping_b(z, g_v_WXY, 89, 121, 0)) return 0;
227 if (in_grouping_b(z, g_v, 97, 121, 0)) return 0;
228 if (out_grouping_b(z, g_v, 97, 121, 0)) return 0;
229 return 1;
230}
231
232static int r_R1(struct SN_env * z) {
233 return z->I[1] <= z->c;
234}
235
236static int r_R2(struct SN_env * z) {
237 return z->I[0] <= z->c;
238}
239
240static int r_Step_1a(struct SN_env * z) {
241 int among_var;
242 z->ket = z->c;
243 if (z->c <= z->lb || z->p[z->c - 1] != 115) return 0;
244 among_var = find_among_b(z, a_0, 4);
245 if (!among_var) return 0;
246 z->bra = z->c;
247 switch (among_var) {
248 case 1:
249 { int ret = slice_from_s(z, 2, s_0);
250 if (ret < 0) return ret;
251 }
252 break;
253 case 2:
254 { int ret = slice_from_s(z, 1, s_1);
255 if (ret < 0) return ret;
256 }
257 break;
258 case 3:
259 { int ret = slice_del(z);
260 if (ret < 0) return ret;
261 }
262 break;
263 }
264 return 1;
265}
266
267static int r_Step_1b(struct SN_env * z) {
268 int among_var;
269 z->ket = z->c;
270 if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 103)) return 0;
271 among_var = find_among_b(z, a_2, 3);
272 if (!among_var) return 0;
273 z->bra = z->c;
274 switch (among_var) {
275 case 1:
276 { int ret = r_R1(z);
277 if (ret <= 0) return ret;
278 }
279 { int ret = slice_from_s(z, 2, s_2);
280 if (ret < 0) return ret;
281 }
282 break;
283 case 2:
284 { int m_test1 = z->l - z->c;
285
286 {
287 int ret = out_grouping_b(z, g_v, 97, 121, 1);
288 if (ret < 0) return 0;
289 z->c -= ret;
290 }
291 z->c = z->l - m_test1;
292 }
293 { int ret = slice_del(z);
294 if (ret < 0) return ret;
295 }
296 { int m_test2 = z->l - z->c;
297 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((68514004 >> (z->p[z->c - 1] & 0x1f)) & 1)) among_var = 3; else
298 among_var = find_among_b(z, a_1, 13);
299 z->c = z->l - m_test2;
300 }
301 switch (among_var) {
302 case 1:
303 { int ret;
304 { int saved_c = z->c;
305 ret = insert_s(z, z->c, z->c, 1, s_3);
306 z->c = saved_c;
307 }
308 if (ret < 0) return ret;
309 }
310 break;
311 case 2:
312 z->ket = z->c;
313 if (z->c <= z->lb) return 0;
314 z->c--;
315 z->bra = z->c;
316 { int ret = slice_del(z);
317 if (ret < 0) return ret;
318 }
319 break;
320 case 3:
321 if (z->c != z->I[1]) return 0;
322 { int m_test3 = z->l - z->c;
323 { int ret = r_shortv(z);
324 if (ret <= 0) return ret;
325 }
326 z->c = z->l - m_test3;
327 }
328 { int ret;
329 { int saved_c = z->c;
330 ret = insert_s(z, z->c, z->c, 1, s_4);
331 z->c = saved_c;
332 }
333 if (ret < 0) return ret;
334 }
335 break;
336 }
337 break;
338 }
339 return 1;
340}
341
342static int r_Step_1c(struct SN_env * z) {
343 z->ket = z->c;
344 { int m1 = z->l - z->c; (void)m1;
345 if (z->c <= z->lb || z->p[z->c - 1] != 'y') goto lab1;
346 z->c--;
347 goto lab0;
348 lab1:
349 z->c = z->l - m1;
350 if (z->c <= z->lb || z->p[z->c - 1] != 'Y') return 0;
351 z->c--;
352 }
353lab0:
354 z->bra = z->c;
355
356 {
357 int ret = out_grouping_b(z, g_v, 97, 121, 1);
358 if (ret < 0) return 0;
359 z->c -= ret;
360 }
361 { int ret = slice_from_s(z, 1, s_5);
362 if (ret < 0) return ret;
363 }
364 return 1;
365}
366
367static int r_Step_2(struct SN_env * z) {
368 int among_var;
369 z->ket = z->c;
370 if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((815616 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
371 among_var = find_among_b(z, a_3, 20);
372 if (!among_var) return 0;
373 z->bra = z->c;
374 { int ret = r_R1(z);
375 if (ret <= 0) return ret;
376 }
377 switch (among_var) {
378 case 1:
379 { int ret = slice_from_s(z, 4, s_6);
380 if (ret < 0) return ret;
381 }
382 break;
383 case 2:
384 { int ret = slice_from_s(z, 4, s_7);
385 if (ret < 0) return ret;
386 }
387 break;
388 case 3:
389 { int ret = slice_from_s(z, 4, s_8);
390 if (ret < 0) return ret;
391 }
392 break;
393 case 4:
394 { int ret = slice_from_s(z, 4, s_9);
395 if (ret < 0) return ret;
396 }
397 break;
398 case 5:
399 { int ret = slice_from_s(z, 3, s_10);
400 if (ret < 0) return ret;
401 }
402 break;
403 case 6:
404 { int ret = slice_from_s(z, 1, s_11);
405 if (ret < 0) return ret;
406 }
407 break;
408 case 7:
409 { int ret = slice_from_s(z, 3, s_12);
410 if (ret < 0) return ret;
411 }
412 break;
413 case 8:
414 { int ret = slice_from_s(z, 3, s_13);
415 if (ret < 0) return ret;
416 }
417 break;
418 case 9:
419 { int ret = slice_from_s(z, 2, s_14);
420 if (ret < 0) return ret;
421 }
422 break;
423 case 10:
424 { int ret = slice_from_s(z, 3, s_15);
425 if (ret < 0) return ret;
426 }
427 break;
428 case 11:
429 { int ret = slice_from_s(z, 3, s_16);
430 if (ret < 0) return ret;
431 }
432 break;
433 case 12:
434 { int ret = slice_from_s(z, 3, s_17);
435 if (ret < 0) return ret;
436 }
437 break;
438 case 13:
439 { int ret = slice_from_s(z, 3, s_18);
440 if (ret < 0) return ret;
441 }
442 break;
443 }
444 return 1;
445}
446
447static int r_Step_3(struct SN_env * z) {
448 int among_var;
449 z->ket = z->c;
450 if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((528928 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
451 among_var = find_among_b(z, a_4, 7);
452 if (!among_var) return 0;
453 z->bra = z->c;
454 { int ret = r_R1(z);
455 if (ret <= 0) return ret;
456 }
457 switch (among_var) {
458 case 1:
459 { int ret = slice_from_s(z, 2, s_19);
460 if (ret < 0) return ret;
461 }
462 break;
463 case 2:
464 { int ret = slice_from_s(z, 2, s_20);
465 if (ret < 0) return ret;
466 }
467 break;
468 case 3:
469 { int ret = slice_del(z);
470 if (ret < 0) return ret;
471 }
472 break;
473 }
474 return 1;
475}
476
477static int r_Step_4(struct SN_env * z) {
478 int among_var;
479 z->ket = z->c;
480 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((3961384 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
481 among_var = find_among_b(z, a_5, 19);
482 if (!among_var) return 0;
483 z->bra = z->c;
484 { int ret = r_R2(z);
485 if (ret <= 0) return ret;
486 }
487 switch (among_var) {
488 case 1:
489 { int ret = slice_del(z);
490 if (ret < 0) return ret;
491 }
492 break;
493 case 2:
494 { int m1 = z->l - z->c; (void)m1;
495 if (z->c <= z->lb || z->p[z->c - 1] != 's') goto lab1;
496 z->c--;
497 goto lab0;
498 lab1:
499 z->c = z->l - m1;
500 if (z->c <= z->lb || z->p[z->c - 1] != 't') return 0;
501 z->c--;
502 }
503 lab0:
504 { int ret = slice_del(z);
505 if (ret < 0) return ret;
506 }
507 break;
508 }
509 return 1;
510}
511
512static int r_Step_5a(struct SN_env * z) {
513 z->ket = z->c;
514 if (z->c <= z->lb || z->p[z->c - 1] != 'e') return 0;
515 z->c--;
516 z->bra = z->c;
517
518 { int ret = r_R2(z);
519 if (ret == 0) goto lab1;
520 if (ret < 0) return ret;
521 }
522 goto lab0;
523lab1:
524 { int ret = r_R1(z);
525 if (ret <= 0) return ret;
526 }
527 { int m1 = z->l - z->c; (void)m1;
528 { int ret = r_shortv(z);
529 if (ret == 0) goto lab2;
530 if (ret < 0) return ret;
531 }
532 return 0;
533 lab2:
534 z->c = z->l - m1;
535 }
536lab0:
537 { int ret = slice_del(z);
538 if (ret < 0) return ret;
539 }
540 return 1;
541}
542
543static int r_Step_5b(struct SN_env * z) {
544 z->ket = z->c;
545 if (z->c <= z->lb || z->p[z->c - 1] != 'l') return 0;
546 z->c--;
547 z->bra = z->c;
548 { int ret = r_R2(z);
549 if (ret <= 0) return ret;
550 }
551 if (z->c <= z->lb || z->p[z->c - 1] != 'l') return 0;
552 z->c--;
553 { int ret = slice_del(z);
554 if (ret < 0) return ret;
555 }
556 return 1;
557}
558
559extern int porter_ISO_8859_1_stem(struct SN_env * z) {
560 z->I[2] = 0;
561 { int c1 = z->c;
562 z->bra = z->c;
563 if (z->c == z->l || z->p[z->c] != 'y') goto lab0;
564 z->c++;
565 z->ket = z->c;
566 { int ret = slice_from_s(z, 1, s_21);
567 if (ret < 0) return ret;
568 }
569 z->I[2] = 1;
570 lab0:
571 z->c = c1;
572 }
573 { int c2 = z->c;
574 while(1) {
575 int c3 = z->c;
576 while(1) {
577 int c4 = z->c;
578 if (in_grouping(z, g_v, 97, 121, 0)) goto lab3;
579 z->bra = z->c;
580 if (z->c == z->l || z->p[z->c] != 'y') goto lab3;
581 z->c++;
582 z->ket = z->c;
583 z->c = c4;
584 break;
585 lab3:
586 z->c = c4;
587 if (z->c >= z->l) goto lab2;
588 z->c++;
589 }
590 { int ret = slice_from_s(z, 1, s_22);
591 if (ret < 0) return ret;
592 }
593 z->I[2] = 1;
594 continue;
595 lab2:
596 z->c = c3;
597 break;
598 }
599 z->c = c2;
600 }
601 z->I[1] = z->l;
602 z->I[0] = z->l;
603 { int c5 = z->c;
604
605 {
606 int ret = out_grouping(z, g_v, 97, 121, 1);
607 if (ret < 0) goto lab4;
608 z->c += ret;
609 }
610
611 {
612 int ret = in_grouping(z, g_v, 97, 121, 1);
613 if (ret < 0) goto lab4;
614 z->c += ret;
615 }
616 z->I[1] = z->c;
617
618 {
619 int ret = out_grouping(z, g_v, 97, 121, 1);
620 if (ret < 0) goto lab4;
621 z->c += ret;
622 }
623
624 {
625 int ret = in_grouping(z, g_v, 97, 121, 1);
626 if (ret < 0) goto lab4;
627 z->c += ret;
628 }
629 z->I[0] = z->c;
630 lab4:
631 z->c = c5;
632 }
633 z->lb = z->c; z->c = z->l;
634
635 { int m6 = z->l - z->c; (void)m6;
636 { int ret = r_Step_1a(z);
637 if (ret < 0) return ret;
638 }
639 z->c = z->l - m6;
640 }
641 { int m7 = z->l - z->c; (void)m7;
642 { int ret = r_Step_1b(z);
643 if (ret < 0) return ret;
644 }
645 z->c = z->l - m7;
646 }
647 { int m8 = z->l - z->c; (void)m8;
648 { int ret = r_Step_1c(z);
649 if (ret < 0) return ret;
650 }
651 z->c = z->l - m8;
652 }
653 { int m9 = z->l - z->c; (void)m9;
654 { int ret = r_Step_2(z);
655 if (ret < 0) return ret;
656 }
657 z->c = z->l - m9;
658 }
659 { int m10 = z->l - z->c; (void)m10;
660 { int ret = r_Step_3(z);
661 if (ret < 0) return ret;
662 }
663 z->c = z->l - m10;
664 }
665 { int m11 = z->l - z->c; (void)m11;
666 { int ret = r_Step_4(z);
667 if (ret < 0) return ret;
668 }
669 z->c = z->l - m11;
670 }
671 { int m12 = z->l - z->c; (void)m12;
672 { int ret = r_Step_5a(z);
673 if (ret < 0) return ret;
674 }
675 z->c = z->l - m12;
676 }
677 { int m13 = z->l - z->c; (void)m13;
678 { int ret = r_Step_5b(z);
679 if (ret < 0) return ret;
680 }
681 z->c = z->l - m13;
682 }
683 z->c = z->lb;
684 { int c14 = z->c;
685 if (!(z->I[2])) goto lab5;
686 while(1) {
687 int c15 = z->c;
688 while(1) {
689 int c16 = z->c;
690 z->bra = z->c;
691 if (z->c == z->l || z->p[z->c] != 'Y') goto lab7;
692 z->c++;
693 z->ket = z->c;
694 z->c = c16;
695 break;
696 lab7:
697 z->c = c16;
698 if (z->c >= z->l) goto lab6;
699 z->c++;
700 }
701 { int ret = slice_from_s(z, 1, s_23);
702 if (ret < 0) return ret;
703 }
704 continue;
705 lab6:
706 z->c = c15;
707 break;
708 }
709 lab5:
710 z->c = c14;
711 }
712 return 1;
713}
714
715extern struct SN_env * porter_ISO_8859_1_create_env(void) { return SN_create_env(0, 3); }
716
717extern void porter_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
718
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:34
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3
unsigned char symbol
Definition: api.h:2
int porter_ISO_8859_1_stem(struct SN_env *z)
static const symbol s_0_2[4]
static const symbol s_1_5[2]
static const symbol s_2[]
static const symbol s_5_6[3]
static const symbol s_3_12[5]
static const struct among a_3[20]
static const symbol s_3_8[6]
static const symbol s_4[]
static const symbol s_3_15[4]
static const symbol s_1_9[2]
static const symbol s_1_6[2]
static const symbol s_3_14[7]
static const symbol s_4_6[4]
static const symbol s_5_12[2]
static int r_Step_5b(struct SN_env *z)
static int r_Step_3(struct SN_env *z)
static const symbol s_1_2[2]
static const symbol s_0_0[1]
static const symbol s_5_0[2]
static const symbol s_4_3[5]
void porter_ISO_8859_1_close_env(struct SN_env *z)
static const symbol s_4_4[4]
static const symbol s_2_0[2]
struct SN_env * porter_ISO_8859_1_create_env(void)
static const symbol s_1_3[2]
static const symbol s_2_1[3]
static const symbol s_3_0[4]
static const symbol s_3_6[5]
static const symbol s_6[]
static const symbol s_5_9[2]
static const symbol s_21[]
static const symbol s_3[]
static const symbol s_3_4[4]
static const symbol s_5_17[5]
static int r_R2(struct SN_env *z)
static const symbol s_7[]
static const symbol s_5_7[3]
static const symbol s_13[]
static const symbol s_1_7[2]
static const symbol s_1_1[2]
static const symbol s_20[]
static const symbol s_3_17[7]
static const symbol s_3_10[6]
static const symbol s_3_13[5]
static const symbol s_19[]
static const symbol s_23[]
static const symbol s_5_14[3]
static const symbol s_4_5[3]
static int r_Step_1c(struct SN_env *z)
static const symbol s_0_1[3]
static const unsigned char g_v_WXY[]
static int r_R1(struct SN_env *z)
static const symbol s_5_3[4]
static const symbol s_16[]
static const symbol s_5_4[4]
static const symbol s_14[]
static int r_Step_5a(struct SN_env *z)
static const symbol s_22[]
static const symbol s_1_11[2]
static const symbol s_4_0[5]
static const symbol s_10[]
static const struct among a_0[4]
static const symbol s_1_10[2]
static const symbol s_5_2[4]
static const symbol s_1[]
static const symbol s_3_19[7]
static int r_Step_1a(struct SN_env *z)
static int r_shortv(struct SN_env *z)
static const struct among a_2[3]
static const symbol s_1_8[2]
static const struct among a_5[19]
static const symbol s_3_1[4]
static const symbol s_1_4[2]
static const symbol s_3_3[3]
static const symbol s_3_9[5]
static const symbol s_2_2[3]
static const struct among a_1[13]
static const symbol s_11[]
static const symbol s_12[]
static const symbol s_5_8[3]
static const symbol s_3_18[7]
static const symbol s_5_11[3]
static int r_Step_4(struct SN_env *z)
static int r_Step_2(struct SN_env *z)
static const struct among a_4[7]
static const symbol s_5_16[4]
static const symbol s_5_15[3]
static const symbol s_18[]
static const symbol s_17[]
static const symbol s_5_13[3]
static int r_Step_1b(struct SN_env *z)
static const symbol s_0_3[2]
static const symbol s_3_2[4]
static const symbol s_5_5[3]
static const symbol s_5_10[3]
static const unsigned char g_v[]
static const symbol s_8[]
static const symbol s_9[]
static const symbol s_3_7[5]
static const symbol s_4_1[5]
static const symbol s_5[]
static const symbol s_5_18[2]
static const symbol s_3_5[5]
static const symbol s_15[]
static const symbol s_1_12[2]
static const symbol s_3_16[4]
static const symbol s_4_2[5]
static const symbol s_5_1[4]
static const symbol s_0[]
static const symbol s_3_11[7]
Definition: api.h:14
int lb
Definition: api.h:16
symbol * p
Definition: api.h:15
int * I
Definition: api.h:18
int ket
Definition: api.h:16
int c
Definition: api.h:16
int bra
Definition: api.h:16
int l
Definition: api.h:16
Definition: header.h:16
int find_among_b(struct SN_env *z, const struct among *v, int v_size)
Definition: utilities.c:298
int insert_s(struct SN_env *z, int bra, int ket, int s_size, const symbol *s)
Definition: utilities.c:435
int slice_del(struct SN_env *z)
Definition: utilities.c:431
int in_grouping(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:167
int out_grouping_b(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:203
int out_grouping(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:191
int slice_from_s(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:422
int in_grouping_b(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:179