PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 612 of file stem_UTF_8_dutch.c.

612{ 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 610 of file stem_UTF_8_dutch.c.

610{ return SN_create_env(0, 3); }
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 581 of file stem_UTF_8_dutch.c.

581 {
582 { int c1 = z->c;
583 { int ret = r_prelude(z);
584 if (ret < 0) return ret;
585 }
586 z->c = c1;
587 }
588 { int c2 = z->c;
589 { int ret = r_mark_regions(z);
590 if (ret < 0) return ret;
591 }
592 z->c = c2;
593 }
594 z->lb = z->c; z->c = z->l;
595
596
597 { int ret = r_standard_suffix(z);
598 if (ret < 0) return ret;
599 }
600 z->c = z->lb;
601 { int c3 = z->c;
602 { int ret = r_postlude(z);
603 if (ret < 0) return ret;
604 }
605 z->c = c3;
606 }
607 return 1;
608}
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 345 of file stem_UTF_8_dutch.c.

345 {
346 z->I[2] = 0;
347 z->ket = z->c;
348 if (z->c <= z->lb || z->p[z->c - 1] != 'e') return 0;
349 z->c--;
350 z->bra = z->c;
351 { int ret = r_R1(z);
352 if (ret <= 0) return ret;
353 }
354 { int m_test1 = z->l - z->c;
355 if (out_grouping_b_U(z, g_v, 97, 232, 0)) return 0;
356 z->c = z->l - m_test1;
357 }
358 { int ret = slice_del(z);
359 if (ret < 0) return ret;
360 }
361 z->I[2] = 1;
362 { int ret = r_undouble(z);
363 if (ret <= 0) return ret;
364 }
365 return 1;
366}
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 368 of file stem_UTF_8_dutch.c.

368 {
369 { int ret = r_R1(z);
370 if (ret <= 0) return ret;
371 }
372 { int m1 = z->l - z->c; (void)m1;
373 if (out_grouping_b_U(z, g_v, 97, 232, 0)) return 0;
374 z->c = z->l - m1;
375 { int m2 = z->l - z->c; (void)m2;
376 if (!(eq_s_b(z, 3, s_10))) goto lab0;
377 return 0;
378 lab0:
379 z->c = z->l - m2;
380 }
381 }
382 { int ret = slice_del(z);
383 if (ret < 0) return ret;
384 }
385 { int ret = r_undouble(z);
386 if (ret <= 0) return ret;
387 }
388 return 1;
389}
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 250 of file stem_UTF_8_dutch.c.

250 {
251 z->I[1] = z->l;
252 z->I[0] = z->l;
253 {
254 int ret = out_grouping_U(z, g_v, 97, 232, 1);
255 if (ret < 0) return 0;
256 z->c += ret;
257 }
258 {
259 int ret = in_grouping_U(z, g_v, 97, 232, 1);
260 if (ret < 0) return 0;
261 z->c += ret;
262 }
263 z->I[1] = z->c;
264
265 if (!(z->I[1] < 3)) goto lab0;
266 z->I[1] = 3;
267lab0:
268 {
269 int ret = out_grouping_U(z, g_v, 97, 232, 1);
270 if (ret < 0) return 0;
271 z->c += ret;
272 }
273 {
274 int ret = in_grouping_U(z, g_v, 97, 232, 1);
275 if (ret < 0) return 0;
276 z->c += ret;
277 }
278 z->I[0] = z->c;
279 return 1;
280}
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

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

Referenced by dutch_UTF_8_stem().

◆ r_postlude()

static int r_postlude ( struct SN_env z)
static

Definition at line 282 of file stem_UTF_8_dutch.c.

282 {
283 int among_var;
284 while(1) {
285 int c1 = z->c;
286 z->bra = z->c;
287 if (z->c >= z->l || (z->p[z->c + 0] != 73 && z->p[z->c + 0] != 89)) among_var = 3; else
288 among_var = find_among(z, a_1, 3);
289 if (!(among_var)) goto lab0;
290 z->ket = z->c;
291 switch (among_var) {
292 case 1:
293 { int ret = slice_from_s(z, 1, s_8);
294 if (ret < 0) return ret;
295 }
296 break;
297 case 2:
298 { int ret = slice_from_s(z, 1, s_9);
299 if (ret < 0) return ret;
300 }
301 break;
302 case 3:
303 { int ret = skip_utf8(z->p, z->c, z->l, 1);
304 if (ret < 0) goto lab0;
305 z->c = ret;
306 }
307 break;
308 }
309 continue;
310 lab0:
311 z->c = c1;
312 break;
313 }
314 return 1;
315}
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 skip_utf8(const symbol *p, int c, int limit, int n)
Definition: utilities.c:27
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 if (!(among_var)) goto lab0;
156 z->ket = z->c;
157 switch (among_var) {
158 case 1:
159 { int ret = slice_from_s(z, 1, s_0);
160 if (ret < 0) return ret;
161 }
162 break;
163 case 2:
164 { int ret = slice_from_s(z, 1, s_1);
165 if (ret < 0) return ret;
166 }
167 break;
168 case 3:
169 { int ret = slice_from_s(z, 1, s_2);
170 if (ret < 0) return ret;
171 }
172 break;
173 case 4:
174 { int ret = slice_from_s(z, 1, s_3);
175 if (ret < 0) return ret;
176 }
177 break;
178 case 5:
179 { int ret = slice_from_s(z, 1, s_4);
180 if (ret < 0) return ret;
181 }
182 break;
183 case 6:
184 { int ret = skip_utf8(z->p, z->c, z->l, 1);
185 if (ret < 0) goto lab0;
186 z->c = ret;
187 }
188 break;
189 }
190 continue;
191 lab0:
192 z->c = c2;
193 break;
194 }
195 z->c = c_test1;
196 }
197 { int c3 = z->c;
198 z->bra = z->c;
199 if (z->c == z->l || z->p[z->c] != 'y') { z->c = c3; goto lab1; }
200 z->c++;
201 z->ket = z->c;
202 { int ret = slice_from_s(z, 1, s_5);
203 if (ret < 0) return ret;
204 }
205 lab1:
206 ;
207 }
208 while(1) {
209 int c4 = z->c;
210 while(1) {
211 int c5 = z->c;
212 if (in_grouping_U(z, g_v, 97, 232, 0)) goto lab3;
213 z->bra = z->c;
214 { int c6 = z->c;
215 if (z->c == z->l || z->p[z->c] != 'i') goto lab5;
216 z->c++;
217 z->ket = z->c;
218 if (in_grouping_U(z, g_v, 97, 232, 0)) goto lab5;
219 { int ret = slice_from_s(z, 1, s_6);
220 if (ret < 0) return ret;
221 }
222 goto lab4;
223 lab5:
224 z->c = c6;
225 if (z->c == z->l || z->p[z->c] != 'y') goto lab3;
226 z->c++;
227 z->ket = z->c;
228 { int ret = slice_from_s(z, 1, s_7);
229 if (ret < 0) return ret;
230 }
231 }
232 lab4:
233 z->c = c5;
234 break;
235 lab3:
236 z->c = c5;
237 { int ret = skip_utf8(z->p, z->c, z->l, 1);
238 if (ret < 0) goto lab2;
239 z->c = ret;
240 }
241 }
242 continue;
243 lab2:
244 z->c = c4;
245 break;
246 }
247 return 1;
248}
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 317 of file stem_UTF_8_dutch.c.

317 {
318 if (!(z->I[1] <= z->c)) return 0;
319 return 1;
320}

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 322 of file stem_UTF_8_dutch.c.

322 {
323 if (!(z->I[0] <= z->c)) return 0;
324 return 1;
325}

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 391 of file stem_UTF_8_dutch.c.

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

327 {
328 { int m_test1 = z->l - z->c;
329 if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1050640 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
330 if (!(find_among_b(z, a_2, 3))) return 0;
331 z->c = z->l - m_test1;
332 }
333 z->ket = z->c;
334 { int ret = skip_b_utf8(z->p, z->c, z->lb, 1);
335 if (ret < 0) return 0;
336 z->c = ret;
337 }
338 z->bra = z->c;
339 { int ret = slice_del(z);
340 if (ret < 0) return ret;
341 }
342 return 1;
343}
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().