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 1476 of file stem_ISO_8859_1_catalan.c.

1476 {
1477 SN_delete_env(z);
1478}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ catalan_ISO_8859_1_create_env()

struct SN_env * catalan_ISO_8859_1_create_env ( void  )

Definition at line 1467 of file stem_ISO_8859_1_catalan.c.

1467 {
1468 struct SN_env * z = SN_new_env(sizeof(SN_local));
1469 if (z) {
1470 ((SN_local *)z)->i_p2 = 0;
1471 ((SN_local *)z)->i_p1 = 0;
1472 }
1473 return z;
1474}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ catalan_ISO_8859_1_stem()

int catalan_ISO_8859_1_stem ( struct SN_env z)

Definition at line 1412 of file stem_ISO_8859_1_catalan.c.

1412 {
1413 {
1414 int ret = r_mark_regions(z);
1415 if (ret < 0) return ret;
1416 }
1417 z->lb = z->c; z->c = z->l;
1418 {
1419 int v_1 = z->l - z->c;
1420 {
1421 int ret = r_attached_pronoun(z);
1422 if (ret < 0) return ret;
1423 }
1424 z->c = z->l - v_1;
1425 }
1426 {
1427 int v_2 = z->l - z->c;
1428 do {
1429 int v_3 = z->l - z->c;
1430 {
1431 int ret = r_standard_suffix(z);
1432 if (ret == 0) goto lab1;
1433 if (ret < 0) return ret;
1434 }
1435 break;
1436 lab1:
1437 z->c = z->l - v_3;
1438 {
1439 int ret = r_verb_suffix(z);
1440 if (ret == 0) goto lab0;
1441 if (ret < 0) return ret;
1442 }
1443 } while (0);
1444 lab0:
1445 z->c = z->l - v_2;
1446 }
1447 {
1448 int v_4 = z->l - z->c;
1449 {
1450 int ret = r_residual_suffix(z);
1451 if (ret < 0) return ret;
1452 }
1453 z->c = z->l - v_4;
1454 }
1455 z->c = z->lb;
1456 {
1457 int v_5 = z->c;
1458 {
1459 int ret = r_cleaning(z);
1460 if (ret < 0) return ret;
1461 }
1462 z->c = v_5;
1463 }
1464 return 1;
1465}
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:17
int c
Definition: api.h:17
int l
Definition: api.h:17

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