PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 1877 of file stem_UTF_8_tamil.c.

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

References SN_close_env().

◆ tamil_UTF_8_create_env()

struct SN_env* tamil_UTF_8_create_env ( void  )

Definition at line 1875 of file stem_UTF_8_tamil.c.

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

◆ tamil_UTF_8_stem()

int tamil_UTF_8_stem ( struct SN_env z)

Definition at line 1807 of file stem_UTF_8_tamil.c.

1807  {
1808  z->I[0] = 0;
1809  { int c1 = z->c;
1810  { int ret = r_fix_ending(z);
1811  if (ret < 0) return ret;
1812  }
1813  z->c = c1;
1814  }
1815  { int ret = r_has_min_length(z);
1816  if (ret <= 0) return ret;
1817  }
1818  { int c2 = z->c;
1819  { int ret = r_remove_question_prefixes(z);
1820  if (ret < 0) return ret;
1821  }
1822  z->c = c2;
1823  }
1824  { int c3 = z->c;
1825  { int ret = r_remove_pronoun_prefixes(z);
1826  if (ret < 0) return ret;
1827  }
1828  z->c = c3;
1829  }
1830  { int c4 = z->c;
1831  { int ret = r_remove_question_suffixes(z);
1832  if (ret < 0) return ret;
1833  }
1834  z->c = c4;
1835  }
1836  { int c5 = z->c;
1837  { int ret = r_remove_um(z);
1838  if (ret < 0) return ret;
1839  }
1840  z->c = c5;
1841  }
1842  { int c6 = z->c;
1843  { int ret = r_remove_common_word_endings(z);
1844  if (ret < 0) return ret;
1845  }
1846  z->c = c6;
1847  }
1848  { int c7 = z->c;
1849  { int ret = r_remove_vetrumai_urupukal(z);
1850  if (ret < 0) return ret;
1851  }
1852  z->c = c7;
1853  }
1854  { int c8 = z->c;
1855  { int ret = r_remove_plural_suffix(z);
1856  if (ret < 0) return ret;
1857  }
1858  z->c = c8;
1859  }
1860  { int c9 = z->c;
1861  { int ret = r_remove_command_suffixes(z);
1862  if (ret < 0) return ret;
1863  }
1864  z->c = c9;
1865  }
1866  { int c10 = z->c;
1867  { int ret = r_remove_tense_suffixes(z);
1868  if (ret < 0) return ret;
1869  }
1870  z->c = c10;
1871  }
1872  return 1;
1873 }
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)
int * I
Definition: api.h:18
int c
Definition: api.h:16

References SN_env::c, SN_env::I, 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().