PostgreSQL Source Code git master
stem_UTF_8_armenian.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_envarmenian_UTF_8_create_env (void)
 
void armenian_UTF_8_close_env (struct SN_env *z)
 
int armenian_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ armenian_UTF_8_close_env()

void armenian_UTF_8_close_env ( struct SN_env z)

Definition at line 571 of file stem_UTF_8_armenian.c.

571 {
572 SN_delete_env(z);
573}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ armenian_UTF_8_create_env()

struct SN_env * armenian_UTF_8_create_env ( void  )

Definition at line 562 of file stem_UTF_8_armenian.c.

562 {
563 struct SN_env * z = SN_new_env(sizeof(SN_local));
564 if (z) {
565 ((SN_local *)z)->i_p2 = 0;
566 ((SN_local *)z)->i_pV = 0;
567 }
568 return z;
569}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ armenian_UTF_8_stem()

int armenian_UTF_8_stem ( struct SN_env z)

Definition at line 514 of file stem_UTF_8_armenian.c.

514 {
515 {
516 int ret = r_mark_regions(z);
517 if (ret < 0) return ret;
518 }
519 z->lb = z->c; z->c = z->l;
520 {
521 int v_1;
522 if (z->c < ((SN_local *)z)->i_pV) return 0;
523 v_1 = z->lb; z->lb = ((SN_local *)z)->i_pV;
524 {
525 int v_2 = z->l - z->c;
526 {
527 int ret = r_ending(z);
528 if (ret < 0) return ret;
529 }
530 z->c = z->l - v_2;
531 }
532 {
533 int v_3 = z->l - z->c;
534 {
535 int ret = r_verb(z);
536 if (ret < 0) return ret;
537 }
538 z->c = z->l - v_3;
539 }
540 {
541 int v_4 = z->l - z->c;
542 {
543 int ret = r_adjective(z);
544 if (ret < 0) return ret;
545 }
546 z->c = z->l - v_4;
547 }
548 {
549 int v_5 = z->l - z->c;
550 {
551 int ret = r_noun(z);
552 if (ret < 0) return ret;
553 }
554 z->c = z->l - v_5;
555 }
556 z->lb = v_1;
557 }
558 z->c = z->lb;
559 return 1;
560}
static int r_adjective(struct SN_env *z)
static int r_verb(struct SN_env *z)
static int r_ending(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_noun(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_local::i_pV, SN_env::l, SN_env::lb, r_adjective(), r_ending(), r_mark_regions(), r_noun(), and r_verb().