PostgreSQL Source Code git master
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 1480 of file stem_UTF_8_catalan.c.

1480 {
1481 SN_delete_env(z);
1482}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ catalan_UTF_8_create_env()

struct SN_env * catalan_UTF_8_create_env ( void  )

Definition at line 1471 of file stem_UTF_8_catalan.c.

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

References SN_new_env().

◆ catalan_UTF_8_stem()

int catalan_UTF_8_stem ( struct SN_env z)

Definition at line 1416 of file stem_UTF_8_catalan.c.

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