PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_UTF_8_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_UTF_8_create_env (void)
 
void catalan_UTF_8_close_env (struct SN_env *z)
 
int catalan_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ catalan_UTF_8_close_env()

void catalan_UTF_8_close_env ( struct SN_env z)

Definition at line 1448 of file stem_UTF_8_catalan.c.

1448 { 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_UTF_8_create_env()

struct SN_env* catalan_UTF_8_create_env ( void  )

Definition at line 1446 of file stem_UTF_8_catalan.c.

1446 { 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_UTF_8_stem()

int catalan_UTF_8_stem ( struct SN_env z)

Definition at line 1399 of file stem_UTF_8_catalan.c.

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