PostgreSQL Source Code git master
stem_UTF_8_dutch.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_envdutch_UTF_8_create_env (void)
 
void dutch_UTF_8_close_env (struct SN_env *z)
 
int dutch_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ dutch_UTF_8_close_env()

void dutch_UTF_8_close_env ( struct SN_env z)

Definition at line 2043 of file stem_UTF_8_dutch.c.

2043 {
2044 if (z) {
2045 lose_s(((SN_local *)z)->s_ch);
2046 }
2047 SN_delete_env(z);
2048}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18
void lose_s(symbol *p)
Definition: utilities.c:31

References lose_s(), and SN_delete_env().

Referenced by dutch_UTF_8_create_env().

◆ dutch_UTF_8_create_env()

struct SN_env * dutch_UTF_8_create_env ( void  )

Definition at line 2027 of file stem_UTF_8_dutch.c.

2027 {
2028 struct SN_env * z = SN_new_env(sizeof(SN_local));
2029 if (z) {
2030 ((SN_local *)z)->b_GE_removed = 0;
2031 ((SN_local *)z)->i_p2 = 0;
2032 ((SN_local *)z)->i_p1 = 0;
2033 ((SN_local *)z)->s_ch = NULL;
2034
2035 if ((((SN_local *)z)->s_ch = create_s()) == NULL) {
2037 return NULL;
2038 }
2039 }
2040 return z;
2041}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
void dutch_UTF_8_close_env(struct SN_env *z)
Definition: api.h:15
symbol * create_s(void)
Definition: utilities.c:20

References create_s(), dutch_UTF_8_close_env(), and SN_new_env().

◆ dutch_UTF_8_stem()

int dutch_UTF_8_stem ( struct SN_env z)

Definition at line 1881 of file stem_UTF_8_dutch.c.

1881 {
1882 int b_stemmed;
1883 b_stemmed = 0;
1884 {
1885 int ret = r_measure(z);
1886 if (ret <= 0) return ret;
1887 }
1888 z->lb = z->c; z->c = z->l;
1889 {
1890 int v_1 = z->l - z->c;
1891 {
1892 int ret = r_Step_1(z);
1893 if (ret == 0) goto lab0;
1894 if (ret < 0) return ret;
1895 }
1896 b_stemmed = 1;
1897 lab0:
1898 z->c = z->l - v_1;
1899 }
1900 {
1901 int v_2 = z->l - z->c;
1902 {
1903 int ret = r_Step_2(z);
1904 if (ret == 0) goto lab1;
1905 if (ret < 0) return ret;
1906 }
1907 b_stemmed = 1;
1908 lab1:
1909 z->c = z->l - v_2;
1910 }
1911 {
1912 int v_3 = z->l - z->c;
1913 {
1914 int ret = r_Step_3(z);
1915 if (ret == 0) goto lab2;
1916 if (ret < 0) return ret;
1917 }
1918 b_stemmed = 1;
1919 lab2:
1920 z->c = z->l - v_3;
1921 }
1922 {
1923 int v_4 = z->l - z->c;
1924 {
1925 int ret = r_Step_4(z);
1926 if (ret == 0) goto lab3;
1927 if (ret < 0) return ret;
1928 }
1929 b_stemmed = 1;
1930 lab3:
1931 z->c = z->l - v_4;
1932 }
1933 z->c = z->lb;
1934 ((SN_local *)z)->b_GE_removed = 0;
1935 {
1936 int v_5 = z->c;
1937 {
1938 int v_6 = z->c;
1939 {
1940 int ret = r_Lose_prefix(z);
1941 if (ret == 0) goto lab4;
1942 if (ret < 0) return ret;
1943 }
1944 z->c = v_6;
1945 {
1946 int ret = r_measure(z);
1947 if (ret < 0) return ret;
1948 }
1949 }
1950 lab4:
1951 z->c = v_5;
1952 }
1953 z->lb = z->c; z->c = z->l;
1954 {
1955 int v_7 = z->l - z->c;
1956 if (!((SN_local *)z)->b_GE_removed) goto lab5;
1957 b_stemmed = 1;
1958 {
1959 int ret = r_Step_1c(z);
1960 if (ret == 0) goto lab5;
1961 if (ret < 0) return ret;
1962 }
1963 lab5:
1964 z->c = z->l - v_7;
1965 }
1966 z->c = z->lb;
1967 ((SN_local *)z)->b_GE_removed = 0;
1968 {
1969 int v_8 = z->c;
1970 {
1971 int v_9 = z->c;
1972 {
1973 int ret = r_Lose_infix(z);
1974 if (ret == 0) goto lab6;
1975 if (ret < 0) return ret;
1976 }
1977 z->c = v_9;
1978 {
1979 int ret = r_measure(z);
1980 if (ret < 0) return ret;
1981 }
1982 }
1983 lab6:
1984 z->c = v_8;
1985 }
1986 z->lb = z->c; z->c = z->l;
1987 {
1988 int v_10 = z->l - z->c;
1989 if (!((SN_local *)z)->b_GE_removed) goto lab7;
1990 b_stemmed = 1;
1991 {
1992 int ret = r_Step_1c(z);
1993 if (ret == 0) goto lab7;
1994 if (ret < 0) return ret;
1995 }
1996 lab7:
1997 z->c = z->l - v_10;
1998 }
1999 z->c = z->lb;
2000 z->lb = z->c; z->c = z->l;
2001 {
2002 int v_11 = z->l - z->c;
2003 {
2004 int ret = r_Step_7(z);
2005 if (ret == 0) goto lab8;
2006 if (ret < 0) return ret;
2007 }
2008 b_stemmed = 1;
2009 lab8:
2010 z->c = z->l - v_11;
2011 }
2012 {
2013 int v_12 = z->l - z->c;
2014 if (!b_stemmed) goto lab9;
2015 {
2016 int ret = r_Step_6(z);
2017 if (ret == 0) goto lab9;
2018 if (ret < 0) return ret;
2019 }
2020 lab9:
2021 z->c = z->l - v_12;
2022 }
2023 z->c = z->lb;
2024 return 1;
2025}
static int r_Step_3(struct SN_env *z)
static int r_Lose_infix(struct SN_env *z)
static int r_Lose_prefix(struct SN_env *z)
static int r_Step_1(struct SN_env *z)
static int r_Step_1c(struct SN_env *z)
static int r_measure(struct SN_env *z)
static int r_Step_4(struct SN_env *z)
static int r_Step_2(struct SN_env *z)
static int r_Step_6(struct SN_env *z)
static int r_Step_7(struct SN_env *z)
int lb
Definition: api.h:17
int c
Definition: api.h:17
int l
Definition: api.h:17
unsigned char b_GE_removed

References SN_env::c, SN_env::l, SN_env::lb, r_Lose_infix(), r_Lose_prefix(), r_measure(), r_Step_1(), r_Step_1c(), r_Step_2(), r_Step_3(), r_Step_4(), r_Step_6(), and r_Step_7().