PostgreSQL Source Code git master
stem_UTF_8_dutch.c File Reference
#include "header.h"
Include dependency graph for stem_UTF_8_dutch.c:

Go to the source code of this file.

Functions

int dutch_UTF_8_stem (struct SN_env *z)
 
static int r_standard_suffix (struct SN_env *z)
 
static int r_undouble (struct SN_env *z)
 
static int r_R2 (struct SN_env *z)
 
static int r_R1 (struct SN_env *z)
 
static int r_mark_regions (struct SN_env *z)
 
static int r_en_ending (struct SN_env *z)
 
static int r_e_ending (struct SN_env *z)
 
static int r_postlude (struct SN_env *z)
 
static int r_prelude (struct SN_env *z)
 
struct SN_envdutch_UTF_8_create_env (void)
 
void dutch_UTF_8_close_env (struct SN_env *z)
 

Variables

static const symbol s_0_1 [2] = { 0xC3, 0xA1 }
 
static const symbol s_0_2 [2] = { 0xC3, 0xA4 }
 
static const symbol s_0_3 [2] = { 0xC3, 0xA9 }
 
static const symbol s_0_4 [2] = { 0xC3, 0xAB }
 
static const symbol s_0_5 [2] = { 0xC3, 0xAD }
 
static const symbol s_0_6 [2] = { 0xC3, 0xAF }
 
static const symbol s_0_7 [2] = { 0xC3, 0xB3 }
 
static const symbol s_0_8 [2] = { 0xC3, 0xB6 }
 
static const symbol s_0_9 [2] = { 0xC3, 0xBA }
 
static const symbol s_0_10 [2] = { 0xC3, 0xBC }
 
static const struct among a_0 [11]
 
static const symbol s_1_1 [1] = { 'I' }
 
static const symbol s_1_2 [1] = { 'Y' }
 
static const struct among a_1 [3]
 
static const symbol s_2_0 [2] = { 'd', 'd' }
 
static const symbol s_2_1 [2] = { 'k', 'k' }
 
static const symbol s_2_2 [2] = { 't', 't' }
 
static const struct among a_2 [3]
 
static const symbol s_3_0 [3] = { 'e', 'n', 'e' }
 
static const symbol s_3_1 [2] = { 's', 'e' }
 
static const symbol s_3_2 [2] = { 'e', 'n' }
 
static const symbol s_3_3 [5] = { 'h', 'e', 'd', 'e', 'n' }
 
static const symbol s_3_4 [1] = { 's' }
 
static const struct among a_3 [5]
 
static const symbol s_4_0 [3] = { 'e', 'n', 'd' }
 
static const symbol s_4_1 [2] = { 'i', 'g' }
 
static const symbol s_4_2 [3] = { 'i', 'n', 'g' }
 
static const symbol s_4_3 [4] = { 'l', 'i', 'j', 'k' }
 
static const symbol s_4_4 [4] = { 'b', 'a', 'a', 'r' }
 
static const symbol s_4_5 [3] = { 'b', 'a', 'r' }
 
static const struct among a_4 [6]
 
static const symbol s_5_0 [2] = { 'a', 'a' }
 
static const symbol s_5_1 [2] = { 'e', 'e' }
 
static const symbol s_5_2 [2] = { 'o', 'o' }
 
static const symbol s_5_3 [2] = { 'u', 'u' }
 
static const struct among a_5 [4]
 
static const unsigned char g_v [] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
 
static const unsigned char g_v_I [] = { 1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
 
static const unsigned char g_v_j [] = { 17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
 
static const symbol s_0 [] = { 'a' }
 
static const symbol s_1 [] = { 'e' }
 
static const symbol s_2 [] = { 'i' }
 
static const symbol s_3 [] = { 'o' }
 
static const symbol s_4 [] = { 'u' }
 
static const symbol s_5 [] = { 'Y' }
 
static const symbol s_6 [] = { 'I' }
 
static const symbol s_7 [] = { 'Y' }
 
static const symbol s_8 [] = { 'y' }
 
static const symbol s_9 [] = { 'i' }
 
static const symbol s_10 [] = { 'g', 'e', 'm' }
 
static const symbol s_11 [] = { 'h', 'e', 'i', 'd' }
 
static const symbol s_12 [] = { 'h', 'e', 'i', 'd' }
 
static const symbol s_13 [] = { 'e', 'n' }
 
static const symbol s_14 [] = { 'i', 'g' }
 

Function Documentation

◆ dutch_UTF_8_close_env()

void dutch_UTF_8_close_env ( struct SN_env z)

Definition at line 620 of file stem_UTF_8_dutch.c.

620{ SN_close_env(z, 0); }
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:34

References SN_close_env().

◆ dutch_UTF_8_create_env()

struct SN_env * dutch_UTF_8_create_env ( void  )

Definition at line 618 of file stem_UTF_8_dutch.c.

618{ return SN_create_env(0, 4); }
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3

References SN_create_env().

◆ dutch_UTF_8_stem()

int dutch_UTF_8_stem ( struct SN_env z)

Definition at line 589 of file stem_UTF_8_dutch.c.

589 {
590 { int c1 = z->c;
591 { int ret = r_prelude(z);
592 if (ret < 0) return ret;
593 }
594 z->c = c1;
595 }
596 { int c2 = z->c;
597 { int ret = r_mark_regions(z);
598 if (ret < 0) return ret;
599 }
600 z->c = c2;
601 }
602 z->lb = z->c; z->c = z->l;
603
604
605 { int ret = r_standard_suffix(z);
606 if (ret < 0) return ret;
607 }
608 z->c = z->lb;
609 { int c3 = z->c;
610 { int ret = r_postlude(z);
611 if (ret < 0) return ret;
612 }
613 z->c = c3;
614 }
615 return 1;
616}
static int r_standard_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int lb
Definition: api.h:16
int c
Definition: api.h:16
int l
Definition: api.h:16

References SN_env::c, SN_env::l, SN_env::lb, r_mark_regions(), r_postlude(), r_prelude(), and r_standard_suffix().

◆ r_e_ending()

static int r_e_ending ( struct SN_env z)
static

Definition at line 353 of file stem_UTF_8_dutch.c.

353 {
354 z->I[3] = 0;
355 z->ket = z->c;
356 if (z->c <= z->lb || z->p[z->c - 1] != 'e') return 0;
357 z->c--;
358 z->bra = z->c;
359 { int ret = r_R1(z);
360 if (ret <= 0) return ret;
361 }
362 { int m_test1 = z->l - z->c;
363 if (out_grouping_b_U(z, g_v, 97, 232, 0)) return 0;
364 z->c = z->l - m_test1;
365 }
366 { int ret = slice_del(z);
367 if (ret < 0) return ret;
368 }
369 z->I[3] = 1;
370 { int ret = r_undouble(z);
371 if (ret <= 0) return ret;
372 }
373 return 1;
374}
static int r_undouble(struct SN_env *z)
static int r_R1(struct SN_env *z)
static const unsigned char g_v[]
symbol * p
Definition: api.h:15
int * I
Definition: api.h:18
int ket
Definition: api.h:16
int bra
Definition: api.h:16
int slice_del(struct SN_env *z)
Definition: utilities.c:431
int out_grouping_b_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:153

References SN_env::bra, SN_env::c, g_v, SN_env::I, SN_env::ket, SN_env::l, SN_env::lb, out_grouping_b_U(), SN_env::p, r_R1(), r_undouble(), and slice_del().

Referenced by r_standard_suffix().

◆ r_en_ending()

static int r_en_ending ( struct SN_env z)
static

Definition at line 376 of file stem_UTF_8_dutch.c.

376 {
377 { int ret = r_R1(z);
378 if (ret <= 0) return ret;
379 }
380 { int m1 = z->l - z->c; (void)m1;
381 if (out_grouping_b_U(z, g_v, 97, 232, 0)) return 0;
382 z->c = z->l - m1;
383 { int m2 = z->l - z->c; (void)m2;
384 if (!(eq_s_b(z, 3, s_10))) goto lab0;
385 return 0;
386 lab0:
387 z->c = z->l - m2;
388 }
389 }
390 { int ret = slice_del(z);
391 if (ret < 0) return ret;
392 }
393 { int ret = r_undouble(z);
394 if (ret <= 0) return ret;
395 }
396 return 1;
397}
static const symbol s_10[]
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:220

References SN_env::c, eq_s_b(), g_v, SN_env::l, out_grouping_b_U(), r_R1(), r_undouble(), s_10, and slice_del().

Referenced by r_standard_suffix().

◆ r_mark_regions()

static int r_mark_regions ( struct SN_env z)
static

Definition at line 249 of file stem_UTF_8_dutch.c.

249 {
250 z->I[2] = z->l;
251 z->I[1] = z->l;
252 { int c_test1 = z->c;
253 { int ret = skip_utf8(z->p, z->c, z->l, 3);
254 if (ret < 0) return 0;
255 z->c = ret;
256 }
257 z->I[0] = z->c;
258 z->c = c_test1;
259 }
260
261 {
262 int ret = out_grouping_U(z, g_v, 97, 232, 1);
263 if (ret < 0) return 0;
264 z->c += ret;
265 }
266
267 {
268 int ret = in_grouping_U(z, g_v, 97, 232, 1);
269 if (ret < 0) return 0;
270 z->c += ret;
271 }
272 z->I[2] = z->c;
273
274 if (z->I[2] >= z->I[0]) goto lab0;
275 z->I[2] = z->I[0];
276lab0:
277
278 {
279 int ret = out_grouping_U(z, g_v, 97, 232, 1);
280 if (ret < 0) return 0;
281 z->c += ret;
282 }
283
284 {
285 int ret = in_grouping_U(z, g_v, 97, 232, 1);
286 if (ret < 0) return 0;
287 z->c += ret;
288 }
289 z->I[1] = z->c;
290 return 1;
291}
int out_grouping_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:141
int in_grouping_U(struct SN_env *z, const unsigned char *s, int min, int max, int repeat)
Definition: utilities.c:117
int skip_utf8(const symbol *p, int c, int limit, int n)
Definition: utilities.c:27

References SN_env::c, g_v, SN_env::I, in_grouping_U(), SN_env::l, out_grouping_U(), SN_env::p, and skip_utf8().

Referenced by dutch_UTF_8_stem().

◆ r_postlude()

static int r_postlude ( struct SN_env z)
static

Definition at line 293 of file stem_UTF_8_dutch.c.

293 {
294 int among_var;
295 while(1) {
296 int c1 = z->c;
297 z->bra = z->c;
298 if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 89)) among_var = 3; else
299 among_var = find_among(z, a_1, 3);
300 z->ket = z->c;
301 switch (among_var) {
302 case 1:
303 { int ret = slice_from_s(z, 1, s_8);
304 if (ret < 0) return ret;
305 }
306 break;
307 case 2:
308 { int ret = slice_from_s(z, 1, s_9);
309 if (ret < 0) return ret;
310 }
311 break;
312 case 3:
313 { int ret = skip_utf8(z->p, z->c, z->l, 1);
314 if (ret < 0) goto lab0;
315 z->c = ret;
316 }
317 break;
318 }
319 continue;
320 lab0:
321 z->c = c1;
322 break;
323 }
324 return 1;
325}
static const struct among a_1[3]
static const symbol s_8[]
static const symbol s_9[]
int find_among(struct SN_env *z, const struct among *v, int v_size)
Definition: utilities.c:233
int slice_from_s(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:422

References a_1, SN_env::bra, SN_env::c, find_among(), SN_env::ket, SN_env::l, SN_env::p, s_8, s_9, skip_utf8(), and slice_from_s().

Referenced by dutch_UTF_8_stem().

◆ r_prelude()

static int r_prelude ( struct SN_env z)
static

Definition at line 147 of file stem_UTF_8_dutch.c.

147 {
148 int among_var;
149 { int c_test1 = z->c;
150 while(1) {
151 int c2 = z->c;
152 z->bra = z->c;
153 if (z->c + 1 >= z->l || z->p[z->c + 1] >> 5 != 5 || !((340306450 >> (z->p[z->c + 1] & 0x1f)) & 1)) among_var = 6; else
154 among_var = find_among(z, a_0, 11);
155 z->ket = z->c;
156 switch (among_var) {
157 case 1:
158 { int ret = slice_from_s(z, 1, s_0);
159 if (ret < 0) return ret;
160 }
161 break;
162 case 2:
163 { int ret = slice_from_s(z, 1, s_1);
164 if (ret < 0) return ret;
165 }
166 break;
167 case 3:
168 { int ret = slice_from_s(z, 1, s_2);
169 if (ret < 0) return ret;
170 }
171 break;
172 case 4:
173 { int ret = slice_from_s(z, 1, s_3);
174 if (ret < 0) return ret;
175 }
176 break;
177 case 5:
178 { int ret = slice_from_s(z, 1, s_4);
179 if (ret < 0) return ret;
180 }
181 break;
182 case 6:
183 { int ret = skip_utf8(z->p, z->c, z->l, 1);
184 if (ret < 0) goto lab0;
185 z->c = ret;
186 }
187 break;
188 }
189 continue;
190 lab0:
191 z->c = c2;
192 break;
193 }
194 z->c = c_test1;
195 }
196 { int c3 = z->c;
197 z->bra = z->c;
198 if (z->c == z->l || z->p[z->c] != 'y') { z->c = c3; goto lab1; }
199 z->c++;
200 z->ket = z->c;
201 { int ret = slice_from_s(z, 1, s_5);
202 if (ret < 0) return ret;
203 }
204 lab1:
205 ;
206 }
207 while(1) {
208 int c4 = z->c;
209 while(1) {
210 int c5 = z->c;
211 if (in_grouping_U(z, g_v, 97, 232, 0)) goto lab3;
212 z->bra = z->c;
213 { int c6 = z->c;
214 if (z->c == z->l || z->p[z->c] != 'i') goto lab5;
215 z->c++;
216 z->ket = z->c;
217 if (in_grouping_U(z, g_v, 97, 232, 0)) goto lab5;
218 { int ret = slice_from_s(z, 1, s_6);
219 if (ret < 0) return ret;
220 }
221 goto lab4;
222 lab5:
223 z->c = c6;
224 if (z->c == z->l || z->p[z->c] != 'y') goto lab3;
225 z->c++;
226 z->ket = z->c;
227 { int ret = slice_from_s(z, 1, s_7);
228 if (ret < 0) return ret;
229 }
230 }
231 lab4:
232 z->c = c5;
233 break;
234 lab3:
235 z->c = c5;
236 { int ret = skip_utf8(z->p, z->c, z->l, 1);
237 if (ret < 0) goto lab2;
238 z->c = ret;
239 }
240 }
241 continue;
242 lab2:
243 z->c = c4;
244 break;
245 }
246 return 1;
247}
static const symbol s_2[]
static const symbol s_4[]
static const symbol s_6[]
static const symbol s_3[]
static const symbol s_7[]
static const symbol s_1[]
static const struct among a_0[11]
static const symbol s_5[]
static const symbol s_0[]

References a_0, SN_env::bra, SN_env::c, find_among(), g_v, in_grouping_U(), SN_env::ket, SN_env::l, SN_env::p, s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, skip_utf8(), and slice_from_s().

Referenced by dutch_UTF_8_stem().

◆ r_R1()

static int r_R1 ( struct SN_env z)
static

Definition at line 327 of file stem_UTF_8_dutch.c.

327 {
328 return z->I[2] <= z->c;
329}

References SN_env::c, and SN_env::I.

Referenced by r_e_ending(), r_en_ending(), and r_standard_suffix().

◆ r_R2()

static int r_R2 ( struct SN_env z)
static

Definition at line 331 of file stem_UTF_8_dutch.c.

331 {
332 return z->I[1] <= z->c;
333}

References SN_env::c, and SN_env::I.

Referenced by r_standard_suffix().

◆ r_standard_suffix()

static int r_standard_suffix ( struct SN_env z)
static

Definition at line 399 of file stem_UTF_8_dutch.c.

399 {
400 int among_var;
401 { int m1 = z->l - z->c; (void)m1;
402 z->ket = z->c;
403 if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((540704 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab0;
404 among_var = find_among_b(z, a_3, 5);
405 if (!among_var) goto lab0;
406 z->bra = z->c;
407 switch (among_var) {
408 case 1:
409 { int ret = r_R1(z);
410 if (ret == 0) goto lab0;
411 if (ret < 0) return ret;
412 }
413 { int ret = slice_from_s(z, 4, s_11);
414 if (ret < 0) return ret;
415 }
416 break;
417 case 2:
418 { int ret = r_en_ending(z);
419 if (ret == 0) goto lab0;
420 if (ret < 0) return ret;
421 }
422 break;
423 case 3:
424 { int ret = r_R1(z);
425 if (ret == 0) goto lab0;
426 if (ret < 0) return ret;
427 }
428 if (out_grouping_b_U(z, g_v_j, 97, 232, 0)) goto lab0;
429 { int ret = slice_del(z);
430 if (ret < 0) return ret;
431 }
432 break;
433 }
434 lab0:
435 z->c = z->l - m1;
436 }
437 { int m2 = z->l - z->c; (void)m2;
438 { int ret = r_e_ending(z);
439 if (ret < 0) return ret;
440 }
441 z->c = z->l - m2;
442 }
443 { int m3 = z->l - z->c; (void)m3;
444 z->ket = z->c;
445 if (!(eq_s_b(z, 4, s_12))) goto lab1;
446 z->bra = z->c;
447 { int ret = r_R2(z);
448 if (ret == 0) goto lab1;
449 if (ret < 0) return ret;
450 }
451 { int m4 = z->l - z->c; (void)m4;
452 if (z->c <= z->lb || z->p[z->c - 1] != 'c') goto lab2;
453 z->c--;
454 goto lab1;
455 lab2:
456 z->c = z->l - m4;
457 }
458 { int ret = slice_del(z);
459 if (ret < 0) return ret;
460 }
461 z->ket = z->c;
462 if (!(eq_s_b(z, 2, s_13))) goto lab1;
463 z->bra = z->c;
464 { int ret = r_en_ending(z);
465 if (ret == 0) goto lab1;
466 if (ret < 0) return ret;
467 }
468 lab1:
469 z->c = z->l - m3;
470 }
471 { int m5 = z->l - z->c; (void)m5;
472 z->ket = z->c;
473 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((264336 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab3;
474 among_var = find_among_b(z, a_4, 6);
475 if (!among_var) goto lab3;
476 z->bra = z->c;
477 switch (among_var) {
478 case 1:
479 { int ret = r_R2(z);
480 if (ret == 0) goto lab3;
481 if (ret < 0) return ret;
482 }
483 { int ret = slice_del(z);
484 if (ret < 0) return ret;
485 }
486 { int m6 = z->l - z->c; (void)m6;
487 z->ket = z->c;
488 if (!(eq_s_b(z, 2, s_14))) goto lab5;
489 z->bra = z->c;
490 { int ret = r_R2(z);
491 if (ret == 0) goto lab5;
492 if (ret < 0) return ret;
493 }
494 { int m7 = z->l - z->c; (void)m7;
495 if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab6;
496 z->c--;
497 goto lab5;
498 lab6:
499 z->c = z->l - m7;
500 }
501 { int ret = slice_del(z);
502 if (ret < 0) return ret;
503 }
504 goto lab4;
505 lab5:
506 z->c = z->l - m6;
507 { int ret = r_undouble(z);
508 if (ret == 0) goto lab3;
509 if (ret < 0) return ret;
510 }
511 }
512 lab4:
513 break;
514 case 2:
515 { int ret = r_R2(z);
516 if (ret == 0) goto lab3;
517 if (ret < 0) return ret;
518 }
519 { int m8 = z->l - z->c; (void)m8;
520 if (z->c <= z->lb || z->p[z->c - 1] != 'e') goto lab7;
521 z->c--;
522 goto lab3;
523 lab7:
524 z->c = z->l - m8;
525 }
526 { int ret = slice_del(z);
527 if (ret < 0) return ret;
528 }
529 break;
530 case 3:
531 { int ret = r_R2(z);
532 if (ret == 0) goto lab3;
533 if (ret < 0) return ret;
534 }
535 { int ret = slice_del(z);
536 if (ret < 0) return ret;
537 }
538 { int ret = r_e_ending(z);
539 if (ret == 0) goto lab3;
540 if (ret < 0) return ret;
541 }
542 break;
543 case 4:
544 { int ret = r_R2(z);
545 if (ret == 0) goto lab3;
546 if (ret < 0) return ret;
547 }
548 { int ret = slice_del(z);
549 if (ret < 0) return ret;
550 }
551 break;
552 case 5:
553 { int ret = r_R2(z);
554 if (ret == 0) goto lab3;
555 if (ret < 0) return ret;
556 }
557 if (!(z->I[3])) goto lab3;
558 { int ret = slice_del(z);
559 if (ret < 0) return ret;
560 }
561 break;
562 }
563 lab3:
564 z->c = z->l - m5;
565 }
566 { int m9 = z->l - z->c; (void)m9;
567 if (out_grouping_b_U(z, g_v_I, 73, 232, 0)) goto lab8;
568 { int m_test10 = z->l - z->c;
569 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((2129954 >> (z->p[z->c - 1] & 0x1f)) & 1)) goto lab8;
570 if (!find_among_b(z, a_5, 4)) goto lab8;
571 if (out_grouping_b_U(z, g_v, 97, 232, 0)) goto lab8;
572 z->c = z->l - m_test10;
573 }
574 z->ket = z->c;
575 { int ret = skip_b_utf8(z->p, z->c, z->lb, 1);
576 if (ret < 0) goto lab8;
577 z->c = ret;
578 }
579 z->bra = z->c;
580 { int ret = slice_del(z);
581 if (ret < 0) return ret;
582 }
583 lab8:
584 z->c = z->l - m9;
585 }
586 return 1;
587}
static const struct among a_5[4]
static const unsigned char g_v_I[]
static const unsigned char g_v_j[]
static int r_en_ending(struct SN_env *z)
static const struct among a_4[6]
static int r_R2(struct SN_env *z)
static const symbol s_13[]
static const symbol s_14[]
static const symbol s_11[]
static const symbol s_12[]
static const struct among a_3[5]
static int r_e_ending(struct SN_env *z)
int find_among_b(struct SN_env *z, const struct among *v, int v_size)
Definition: utilities.c:298
int skip_b_utf8(const symbol *p, int c, int limit, int n)
Definition: utilities.c:52

References a_3, a_4, a_5, SN_env::bra, SN_env::c, eq_s_b(), find_among_b(), g_v, g_v_I, g_v_j, SN_env::I, SN_env::ket, SN_env::l, SN_env::lb, out_grouping_b_U(), SN_env::p, r_e_ending(), r_en_ending(), r_R1(), r_R2(), r_undouble(), s_11, s_12, s_13, s_14, skip_b_utf8(), slice_del(), and slice_from_s().

Referenced by dutch_UTF_8_stem().

◆ r_undouble()

static int r_undouble ( struct SN_env z)
static

Definition at line 335 of file stem_UTF_8_dutch.c.

335 {
336 { int m_test1 = z->l - z->c;
337 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1050640 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
338 if (!find_among_b(z, a_2, 3)) return 0;
339 z->c = z->l - m_test1;
340 }
341 z->ket = z->c;
342 { int ret = skip_b_utf8(z->p, z->c, z->lb, 1);
343 if (ret < 0) return 0;
344 z->c = ret;
345 }
346 z->bra = z->c;
347 { int ret = slice_del(z);
348 if (ret < 0) return ret;
349 }
350 return 1;
351}
static const struct among a_2[3]

References a_2, SN_env::bra, SN_env::c, find_among_b(), SN_env::ket, SN_env::l, SN_env::lb, SN_env::p, skip_b_utf8(), and slice_del().

Referenced by r_e_ending(), r_en_ending(), and r_standard_suffix().

Variable Documentation

◆ a_0

const struct among a_0[11]
static
Initial value:
=
{
{ 0, 0, -1, 6, 0},
{ 2, s_0_1, 0, 1, 0},
{ 2, s_0_2, 0, 1, 0},
{ 2, s_0_3, 0, 2, 0},
{ 2, s_0_4, 0, 2, 0},
{ 2, s_0_5, 0, 3, 0},
{ 2, s_0_6, 0, 3, 0},
{ 2, s_0_7, 0, 4, 0},
{ 2, s_0_8, 0, 4, 0},
{ 2, s_0_9, 0, 5, 0},
{ 2, s_0_10, 0, 5, 0}
}
static const symbol s_0_4[2]
static const symbol s_0_5[2]
static const symbol s_0_8[2]
static const symbol s_0_1[2]
static const symbol s_0_7[2]
static const symbol s_0_6[2]
static const symbol s_0_2[2]
static const symbol s_0_10[2]
static const symbol s_0_3[2]
static const symbol s_0_9[2]

Definition at line 44 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ a_1

const struct among a_1[3]
static
Initial value:
=
{
{ 0, 0, -1, 3, 0},
{ 1, s_1_1, 0, 2, 0},
{ 1, s_1_2, 0, 1, 0}
}
static const symbol s_1_2[1]
static const symbol s_1_1[1]

Definition at line 62 of file stem_UTF_8_dutch.c.

Referenced by r_postlude().

◆ a_2

const struct among a_2[3]
static
Initial value:
=
{
{ 2, s_2_0, -1, -1, 0},
{ 2, s_2_1, -1, -1, 0},
{ 2, s_2_2, -1, -1, 0}
}
static const symbol s_2_2[2]
static const symbol s_2_0[2]
static const symbol s_2_1[2]

Definition at line 73 of file stem_UTF_8_dutch.c.

Referenced by r_undouble().

◆ a_3

const struct among a_3[5]
static
Initial value:
=
{
{ 3, s_3_0, -1, 2, 0},
{ 2, s_3_1, -1, 3, 0},
{ 2, s_3_2, -1, 2, 0},
{ 5, s_3_3, 2, 1, 0},
{ 1, s_3_4, -1, 3, 0}
}
static const symbol s_3_1[2]
static const symbol s_3_0[3]
static const symbol s_3_3[5]
static const symbol s_3_4[1]
static const symbol s_3_2[2]

Definition at line 86 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ a_4

const struct among a_4[6]
static
Initial value:
=
{
{ 3, s_4_0, -1, 1, 0},
{ 2, s_4_1, -1, 2, 0},
{ 3, s_4_2, -1, 1, 0},
{ 4, s_4_3, -1, 3, 0},
{ 4, s_4_4, -1, 4, 0},
{ 3, s_4_5, -1, 5, 0}
}
static const symbol s_4_3[4]
static const symbol s_4_1[2]
static const symbol s_4_4[4]
static const symbol s_4_5[3]
static const symbol s_4_2[3]
static const symbol s_4_0[3]

Definition at line 102 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ a_5

const struct among a_5[4]
static
Initial value:
=
{
{ 2, s_5_0, -1, -1, 0},
{ 2, s_5_1, -1, -1, 0},
{ 2, s_5_2, -1, -1, 0},
{ 2, s_5_3, -1, -1, 0}
}
static const symbol s_5_3[2]
static const symbol s_5_0[2]
static const symbol s_5_2[2]
static const symbol s_5_1[2]

Definition at line 117 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ g_v

const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
static

◆ g_v_I

const unsigned char g_v_I[] = { 1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
static

Definition at line 127 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ g_v_j

const unsigned char g_v_j[] = { 17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }
static

Definition at line 129 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ s_0

const symbol s_0[] = { 'a' }
static

Definition at line 131 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_0_1

const symbol s_0_1[2] = { 0xC3, 0xA1 }
static

Definition at line 33 of file stem_UTF_8_dutch.c.

◆ s_0_10

const symbol s_0_10[2] = { 0xC3, 0xBC }
static

Definition at line 42 of file stem_UTF_8_dutch.c.

◆ s_0_2

const symbol s_0_2[2] = { 0xC3, 0xA4 }
static

Definition at line 34 of file stem_UTF_8_dutch.c.

◆ s_0_3

const symbol s_0_3[2] = { 0xC3, 0xA9 }
static

Definition at line 35 of file stem_UTF_8_dutch.c.

◆ s_0_4

const symbol s_0_4[2] = { 0xC3, 0xAB }
static

Definition at line 36 of file stem_UTF_8_dutch.c.

◆ s_0_5

const symbol s_0_5[2] = { 0xC3, 0xAD }
static

Definition at line 37 of file stem_UTF_8_dutch.c.

◆ s_0_6

const symbol s_0_6[2] = { 0xC3, 0xAF }
static

Definition at line 38 of file stem_UTF_8_dutch.c.

◆ s_0_7

const symbol s_0_7[2] = { 0xC3, 0xB3 }
static

Definition at line 39 of file stem_UTF_8_dutch.c.

◆ s_0_8

const symbol s_0_8[2] = { 0xC3, 0xB6 }
static

Definition at line 40 of file stem_UTF_8_dutch.c.

◆ s_0_9

const symbol s_0_9[2] = { 0xC3, 0xBA }
static

Definition at line 41 of file stem_UTF_8_dutch.c.

◆ s_1

const symbol s_1[] = { 'e' }
static

Definition at line 132 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_10

const symbol s_10[] = { 'g', 'e', 'm' }
static

Definition at line 141 of file stem_UTF_8_dutch.c.

Referenced by r_en_ending().

◆ s_11

const symbol s_11[] = { 'h', 'e', 'i', 'd' }
static

Definition at line 142 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ s_12

const symbol s_12[] = { 'h', 'e', 'i', 'd' }
static

Definition at line 143 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ s_13

const symbol s_13[] = { 'e', 'n' }
static

Definition at line 144 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ s_14

const symbol s_14[] = { 'i', 'g' }
static

Definition at line 145 of file stem_UTF_8_dutch.c.

Referenced by r_standard_suffix().

◆ s_1_1

const symbol s_1_1[1] = { 'I' }
static

Definition at line 59 of file stem_UTF_8_dutch.c.

◆ s_1_2

const symbol s_1_2[1] = { 'Y' }
static

Definition at line 60 of file stem_UTF_8_dutch.c.

◆ s_2

const symbol s_2[] = { 'i' }
static

Definition at line 133 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_2_0

const symbol s_2_0[2] = { 'd', 'd' }
static

Definition at line 69 of file stem_UTF_8_dutch.c.

◆ s_2_1

const symbol s_2_1[2] = { 'k', 'k' }
static

Definition at line 70 of file stem_UTF_8_dutch.c.

◆ s_2_2

const symbol s_2_2[2] = { 't', 't' }
static

Definition at line 71 of file stem_UTF_8_dutch.c.

◆ s_3

const symbol s_3[] = { 'o' }
static

Definition at line 134 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_3_0

const symbol s_3_0[3] = { 'e', 'n', 'e' }
static

Definition at line 80 of file stem_UTF_8_dutch.c.

◆ s_3_1

const symbol s_3_1[2] = { 's', 'e' }
static

Definition at line 81 of file stem_UTF_8_dutch.c.

◆ s_3_2

const symbol s_3_2[2] = { 'e', 'n' }
static

Definition at line 82 of file stem_UTF_8_dutch.c.

◆ s_3_3

const symbol s_3_3[5] = { 'h', 'e', 'd', 'e', 'n' }
static

Definition at line 83 of file stem_UTF_8_dutch.c.

◆ s_3_4

const symbol s_3_4[1] = { 's' }
static

Definition at line 84 of file stem_UTF_8_dutch.c.

◆ s_4

const symbol s_4[] = { 'u' }
static

Definition at line 135 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_4_0

const symbol s_4_0[3] = { 'e', 'n', 'd' }
static

Definition at line 95 of file stem_UTF_8_dutch.c.

◆ s_4_1

const symbol s_4_1[2] = { 'i', 'g' }
static

Definition at line 96 of file stem_UTF_8_dutch.c.

◆ s_4_2

const symbol s_4_2[3] = { 'i', 'n', 'g' }
static

Definition at line 97 of file stem_UTF_8_dutch.c.

◆ s_4_3

const symbol s_4_3[4] = { 'l', 'i', 'j', 'k' }
static

Definition at line 98 of file stem_UTF_8_dutch.c.

◆ s_4_4

const symbol s_4_4[4] = { 'b', 'a', 'a', 'r' }
static

Definition at line 99 of file stem_UTF_8_dutch.c.

◆ s_4_5

const symbol s_4_5[3] = { 'b', 'a', 'r' }
static

Definition at line 100 of file stem_UTF_8_dutch.c.

◆ s_5

const symbol s_5[] = { 'Y' }
static

Definition at line 136 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_5_0

const symbol s_5_0[2] = { 'a', 'a' }
static

Definition at line 112 of file stem_UTF_8_dutch.c.

◆ s_5_1

const symbol s_5_1[2] = { 'e', 'e' }
static

Definition at line 113 of file stem_UTF_8_dutch.c.

◆ s_5_2

const symbol s_5_2[2] = { 'o', 'o' }
static

Definition at line 114 of file stem_UTF_8_dutch.c.

◆ s_5_3

const symbol s_5_3[2] = { 'u', 'u' }
static

Definition at line 115 of file stem_UTF_8_dutch.c.

◆ s_6

const symbol s_6[] = { 'I' }
static

Definition at line 137 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_7

const symbol s_7[] = { 'Y' }
static

Definition at line 138 of file stem_UTF_8_dutch.c.

Referenced by r_prelude().

◆ s_8

const symbol s_8[] = { 'y' }
static

Definition at line 139 of file stem_UTF_8_dutch.c.

Referenced by r_postlude().

◆ s_9

const symbol s_9[] = { 'i' }
static

Definition at line 140 of file stem_UTF_8_dutch.c.

Referenced by r_postlude().