PostgreSQL Source Code  git master
stem_ISO_8859_1_catalan.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_envcatalan_ISO_8859_1_create_env (void)
 
void catalan_ISO_8859_1_close_env (struct SN_env *z)
 
int catalan_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ catalan_ISO_8859_1_close_env()

void catalan_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 1445 of file stem_ISO_8859_1_catalan.c.

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

References SN_close_env().

◆ catalan_ISO_8859_1_create_env()

struct SN_env* catalan_ISO_8859_1_create_env ( void  )

Definition at line 1443 of file stem_ISO_8859_1_catalan.c.

1443 { 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().

◆ catalan_ISO_8859_1_stem()

int catalan_ISO_8859_1_stem ( struct SN_env z)

Definition at line 1396 of file stem_ISO_8859_1_catalan.c.

1396  {
1397 
1398  { int ret = r_mark_regions(z);
1399  if (ret < 0) return ret;
1400  }
1401  z->lb = z->c; z->c = z->l;
1402 
1403  { int m1 = z->l - z->c; (void)m1;
1404  { int ret = r_attached_pronoun(z);
1405  if (ret < 0) return ret;
1406  }
1407  z->c = z->l - m1;
1408  }
1409  { int m2 = z->l - z->c; (void)m2;
1410  { int m3 = z->l - z->c; (void)m3;
1411  { int ret = r_standard_suffix(z);
1412  if (ret == 0) goto lab2;
1413  if (ret < 0) return ret;
1414  }
1415  goto lab1;
1416  lab2:
1417  z->c = z->l - m3;
1418  { int ret = r_verb_suffix(z);
1419  if (ret == 0) goto lab0;
1420  if (ret < 0) return ret;
1421  }
1422  }
1423  lab1:
1424  lab0:
1425  z->c = z->l - m2;
1426  }
1427  { int m4 = z->l - z->c; (void)m4;
1428  { int ret = r_residual_suffix(z);
1429  if (ret < 0) return ret;
1430  }
1431  z->c = z->l - m4;
1432  }
1433  z->c = z->lb;
1434  { int c5 = z->c;
1435  { int ret = r_cleaning(z);
1436  if (ret < 0) return ret;
1437  }
1438  z->c = c5;
1439  }
1440  return 1;
1441 }
static int r_standard_suffix(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
static int r_attached_pronoun(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
static int r_cleaning(struct SN_env *z)
static int r_residual_suffix(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_attached_pronoun(), r_cleaning(), r_mark_regions(), r_residual_suffix(), r_standard_suffix(), and r_verb_suffix().