Header And Logo

PostgreSQL
| The world's most advanced open source database.

Functions

stem_UTF_8_english.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_envenglish_UTF_8_create_env (void)
void english_UTF_8_close_env (struct SN_env *z)
int english_UTF_8_stem (struct SN_env *z)

Function Documentation

void english_UTF_8_close_env ( struct SN_env z  ) 

Definition at line 1124 of file stem_UTF_8_english.c.

References SN_close_env().

{ SN_close_env(z, 0); }

struct SN_env* english_UTF_8_create_env ( void   )  [read]

Definition at line 1122 of file stem_UTF_8_english.c.

References SN_create_env().

{ return SN_create_env(0, 2, 1); }

int english_UTF_8_stem ( struct SN_env z  ) 

Definition at line 1003 of file stem_UTF_8_english.c.

References SN_env::c, SN_env::l, SN_env::lb, SN_env::p, r_exception1(), r_exception2(), r_mark_regions(), r_postlude(), r_prelude(), r_Step_1a(), r_Step_1b(), r_Step_1c(), r_Step_2(), r_Step_3(), r_Step_4(), r_Step_5(), and skip_utf8().

                                                 {
    {   int c1 = z->c; /* or, line 207 */
        {   int ret = r_exception1(z);
            if (ret == 0) goto lab1; /* call exception1, line 207 */
            if (ret < 0) return ret;
        }
        goto lab0;
    lab1:
        z->c = c1;
        {   int c2 = z->c; /* not, line 208 */
            {   int ret = skip_utf8(z->p, z->c, 0, z->l, + 3);
                if (ret < 0) goto lab3;
                z->c = ret; /* hop, line 208 */
            }
            goto lab2;
        lab3:
            z->c = c2;
        }
        goto lab0;
    lab2:
        z->c = c1;
        {   int c3 = z->c; /* do, line 209 */
            {   int ret = r_prelude(z);
                if (ret == 0) goto lab4; /* call prelude, line 209 */
                if (ret < 0) return ret;
            }
        lab4:
            z->c = c3;
        }
        {   int c4 = z->c; /* do, line 210 */
            {   int ret = r_mark_regions(z);
                if (ret == 0) goto lab5; /* call mark_regions, line 210 */
                if (ret < 0) return ret;
            }
        lab5:
            z->c = c4;
        }
        z->lb = z->c; z->c = z->l; /* backwards, line 211 */

        {   int m5 = z->l - z->c; (void)m5; /* do, line 213 */
            {   int ret = r_Step_1a(z);
                if (ret == 0) goto lab6; /* call Step_1a, line 213 */
                if (ret < 0) return ret;
            }
        lab6:
            z->c = z->l - m5;
        }
        {   int m6 = z->l - z->c; (void)m6; /* or, line 215 */
            {   int ret = r_exception2(z);
                if (ret == 0) goto lab8; /* call exception2, line 215 */
                if (ret < 0) return ret;
            }
            goto lab7;
        lab8:
            z->c = z->l - m6;
            {   int m7 = z->l - z->c; (void)m7; /* do, line 217 */
                {   int ret = r_Step_1b(z);
                    if (ret == 0) goto lab9; /* call Step_1b, line 217 */
                    if (ret < 0) return ret;
                }
            lab9:
                z->c = z->l - m7;
            }
            {   int m8 = z->l - z->c; (void)m8; /* do, line 218 */
                {   int ret = r_Step_1c(z);
                    if (ret == 0) goto lab10; /* call Step_1c, line 218 */
                    if (ret < 0) return ret;
                }
            lab10:
                z->c = z->l - m8;
            }
            {   int m9 = z->l - z->c; (void)m9; /* do, line 220 */
                {   int ret = r_Step_2(z);
                    if (ret == 0) goto lab11; /* call Step_2, line 220 */
                    if (ret < 0) return ret;
                }
            lab11:
                z->c = z->l - m9;
            }
            {   int m10 = z->l - z->c; (void)m10; /* do, line 221 */
                {   int ret = r_Step_3(z);
                    if (ret == 0) goto lab12; /* call Step_3, line 221 */
                    if (ret < 0) return ret;
                }
            lab12:
                z->c = z->l - m10;
            }
            {   int m11 = z->l - z->c; (void)m11; /* do, line 222 */
                {   int ret = r_Step_4(z);
                    if (ret == 0) goto lab13; /* call Step_4, line 222 */
                    if (ret < 0) return ret;
                }
            lab13:
                z->c = z->l - m11;
            }
            {   int m12 = z->l - z->c; (void)m12; /* do, line 224 */
                {   int ret = r_Step_5(z);
                    if (ret == 0) goto lab14; /* call Step_5, line 224 */
                    if (ret < 0) return ret;
                }
            lab14:
                z->c = z->l - m12;
            }
        }
    lab7:
        z->c = z->lb;
        {   int c13 = z->c; /* do, line 227 */
            {   int ret = r_postlude(z);
                if (ret == 0) goto lab15; /* call postlude, line 227 */
                if (ret < 0) return ret;
            }
        lab15:
            z->c = c13;
        }
    }
lab0:
    return 1;
}