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

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

References SN_close_env().

◆ armenian_UTF_8_create_env()

struct SN_env * armenian_UTF_8_create_env ( void  )

Definition at line 556 of file stem_UTF_8_armenian.c.

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

References SN_create_env().

◆ armenian_UTF_8_stem()

int armenian_UTF_8_stem ( struct SN_env z)

Definition at line 515 of file stem_UTF_8_armenian.c.

515 {
516
517 { int ret = r_mark_regions(z);
518 if (ret < 0) return ret;
519 }
520 z->lb = z->c; z->c = z->l;
521
522
523 { int mlimit1;
524 if (z->c < z->I[1]) return 0;
525 mlimit1 = z->lb; z->lb = z->I[1];
526 { int m2 = z->l - z->c; (void)m2;
527 { int ret = r_ending(z);
528 if (ret < 0) return ret;
529 }
530 z->c = z->l - m2;
531 }
532 { int m3 = z->l - z->c; (void)m3;
533 { int ret = r_verb(z);
534 if (ret < 0) return ret;
535 }
536 z->c = z->l - m3;
537 }
538 { int m4 = z->l - z->c; (void)m4;
539 { int ret = r_adjective(z);
540 if (ret < 0) return ret;
541 }
542 z->c = z->l - m4;
543 }
544 { int m5 = z->l - z->c; (void)m5;
545 { int ret = r_noun(z);
546 if (ret < 0) return ret;
547 }
548 z->c = z->l - m5;
549 }
550 z->lb = mlimit1;
551 }
552 z->c = z->lb;
553 return 1;
554}
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:16
int * I
Definition: api.h:18
int c
Definition: api.h:16
int l
Definition: api.h:16

References SN_env::c, SN_env::I, SN_env::l, SN_env::lb, r_adjective(), r_ending(), r_mark_regions(), r_noun(), and r_verb().