PostgreSQL Source Code git master
stem_UTF_8_irish.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct SN_envirish_UTF_8_create_env (void)
 
void irish_UTF_8_close_env (struct SN_env *z)
 
int irish_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ irish_UTF_8_close_env()

void irish_UTF_8_close_env ( struct SN_env z)

Definition at line 502 of file stem_UTF_8_irish.c.

502 {
503 SN_delete_env(z);
504}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ irish_UTF_8_create_env()

struct SN_env * irish_UTF_8_create_env ( void  )

Definition at line 492 of file stem_UTF_8_irish.c.

492 {
493 struct SN_env * z = SN_new_env(sizeof(SN_local));
494 if (z) {
495 ((SN_local *)z)->i_p2 = 0;
496 ((SN_local *)z)->i_p1 = 0;
497 ((SN_local *)z)->i_pV = 0;
498 }
499 return z;
500}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ irish_UTF_8_stem()

int irish_UTF_8_stem ( struct SN_env z)

Definition at line 450 of file stem_UTF_8_irish.c.

450 {
451 {
452 int v_1 = z->c;
453 {
454 int ret = r_initial_morph(z);
455 if (ret < 0) return ret;
456 }
457 z->c = v_1;
458 }
459 {
460 int ret = r_mark_regions(z);
461 if (ret < 0) return ret;
462 }
463 z->lb = z->c; z->c = z->l;
464 {
465 int v_2 = z->l - z->c;
466 {
467 int ret = r_noun_sfx(z);
468 if (ret < 0) return ret;
469 }
470 z->c = z->l - v_2;
471 }
472 {
473 int v_3 = z->l - z->c;
474 {
475 int ret = r_deriv(z);
476 if (ret < 0) return ret;
477 }
478 z->c = z->l - v_3;
479 }
480 {
481 int v_4 = z->l - z->c;
482 {
483 int ret = r_verb_sfx(z);
484 if (ret < 0) return ret;
485 }
486 z->c = z->l - v_4;
487 }
488 z->c = z->lb;
489 return 1;
490}
static int r_noun_sfx(struct SN_env *z)
static int r_deriv(struct SN_env *z)
static int r_initial_morph(struct SN_env *z)
static int r_verb_sfx(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int lb
Definition: api.h:17
int c
Definition: api.h:17
int l
Definition: api.h:17

References SN_env::c, SN_env::l, SN_env::lb, r_deriv(), r_initial_morph(), r_mark_regions(), r_noun_sfx(), and r_verb_sfx().