PostgreSQL Source Code git master
stem_UTF_8_tamil.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_envtamil_UTF_8_create_env (void)
 
void tamil_UTF_8_close_env (struct SN_env *z)
 
int tamil_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ tamil_UTF_8_close_env()

void tamil_UTF_8_close_env ( struct SN_env z)

Definition at line 1460 of file stem_UTF_8_tamil.c.

1460 {
1461 SN_delete_env(z);
1462}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ tamil_UTF_8_create_env()

struct SN_env * tamil_UTF_8_create_env ( void  )

Definition at line 1452 of file stem_UTF_8_tamil.c.

1452 {
1453 struct SN_env * z = SN_new_env(sizeof(SN_local));
1454 if (z) {
1455 ((SN_local *)z)->b_found_vetrumai_urupu = 0;
1456 }
1457 return z;
1458}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ tamil_UTF_8_stem()

int tamil_UTF_8_stem ( struct SN_env z)

Definition at line 1363 of file stem_UTF_8_tamil.c.

1363 {
1364 ((SN_local *)z)->b_found_vetrumai_urupu = 0;
1365 {
1366 int v_1 = z->c;
1367 {
1368 int ret = r_fix_ending(z);
1369 if (ret < 0) return ret;
1370 }
1371 z->c = v_1;
1372 }
1373 {
1374 int ret = r_has_min_length(z);
1375 if (ret <= 0) return ret;
1376 }
1377 {
1378 int v_2 = z->c;
1379 {
1380 int ret = r_remove_question_prefixes(z);
1381 if (ret < 0) return ret;
1382 }
1383 z->c = v_2;
1384 }
1385 {
1386 int v_3 = z->c;
1387 {
1388 int ret = r_remove_pronoun_prefixes(z);
1389 if (ret < 0) return ret;
1390 }
1391 z->c = v_3;
1392 }
1393 {
1394 int v_4 = z->c;
1395 {
1396 int ret = r_remove_question_suffixes(z);
1397 if (ret < 0) return ret;
1398 }
1399 z->c = v_4;
1400 }
1401 {
1402 int v_5 = z->c;
1403 {
1404 int ret = r_remove_um(z);
1405 if (ret < 0) return ret;
1406 }
1407 z->c = v_5;
1408 }
1409 {
1410 int v_6 = z->c;
1411 {
1412 int ret = r_remove_common_word_endings(z);
1413 if (ret < 0) return ret;
1414 }
1415 z->c = v_6;
1416 }
1417 {
1418 int v_7 = z->c;
1419 {
1420 int ret = r_remove_vetrumai_urupukal(z);
1421 if (ret < 0) return ret;
1422 }
1423 z->c = v_7;
1424 }
1425 {
1426 int v_8 = z->c;
1427 {
1428 int ret = r_remove_plural_suffix(z);
1429 if (ret < 0) return ret;
1430 }
1431 z->c = v_8;
1432 }
1433 {
1434 int v_9 = z->c;
1435 {
1436 int ret = r_remove_command_suffixes(z);
1437 if (ret < 0) return ret;
1438 }
1439 z->c = v_9;
1440 }
1441 {
1442 int v_10 = z->c;
1443 {
1444 int ret = r_remove_tense_suffixes(z);
1445 if (ret < 0) return ret;
1446 }
1447 z->c = v_10;
1448 }
1449 return 1;
1450}
static int r_remove_common_word_endings(struct SN_env *z)
static int r_has_min_length(struct SN_env *z)
static int r_remove_pronoun_prefixes(struct SN_env *z)
static int r_fix_ending(struct SN_env *z)
static int r_remove_question_prefixes(struct SN_env *z)
static int r_remove_command_suffixes(struct SN_env *z)
static int r_remove_plural_suffix(struct SN_env *z)
static int r_remove_question_suffixes(struct SN_env *z)
static int r_remove_um(struct SN_env *z)
static int r_remove_vetrumai_urupukal(struct SN_env *z)
static int r_remove_tense_suffixes(struct SN_env *z)

References SN_env::c, r_fix_ending(), r_has_min_length(), r_remove_command_suffixes(), r_remove_common_word_endings(), r_remove_plural_suffix(), r_remove_pronoun_prefixes(), r_remove_question_prefixes(), r_remove_question_suffixes(), r_remove_tense_suffixes(), r_remove_um(), and r_remove_vetrumai_urupukal().