Header And Logo

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

Functions

stem_UTF_8_romanian.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_envromanian_UTF_8_create_env (void)
void romanian_UTF_8_close_env (struct SN_env *z)
int romanian_UTF_8_stem (struct SN_env *z)

Function Documentation

void romanian_UTF_8_close_env ( struct SN_env z  ) 

Definition at line 1003 of file stem_UTF_8_romanian.c.

References SN_close_env().

{ SN_close_env(z, 0); }

struct SN_env* romanian_UTF_8_create_env ( void   )  [read]

Definition at line 1001 of file stem_UTF_8_romanian.c.

References SN_create_env().

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

int romanian_UTF_8_stem ( struct SN_env z  ) 

Definition at line 931 of file stem_UTF_8_romanian.c.

References SN_env::B, SN_env::c, SN_env::l, SN_env::lb, r_mark_regions(), r_postlude(), r_prelude(), r_standard_suffix(), r_step_0(), r_verb_suffix(), and r_vowel_suffix().

                                                  {
    {   int c1 = z->c; /* do, line 226 */
        {   int ret = r_prelude(z);
            if (ret == 0) goto lab0; /* call prelude, line 226 */
            if (ret < 0) return ret;
        }
    lab0:
        z->c = c1;
    }
    {   int c2 = z->c; /* do, line 227 */
        {   int ret = r_mark_regions(z);
            if (ret == 0) goto lab1; /* call mark_regions, line 227 */
            if (ret < 0) return ret;
        }
    lab1:
        z->c = c2;
    }
    z->lb = z->c; z->c = z->l; /* backwards, line 228 */

    {   int m3 = z->l - z->c; (void)m3; /* do, line 229 */
        {   int ret = r_step_0(z);
            if (ret == 0) goto lab2; /* call step_0, line 229 */
            if (ret < 0) return ret;
        }
    lab2:
        z->c = z->l - m3;
    }
    {   int m4 = z->l - z->c; (void)m4; /* do, line 230 */
        {   int ret = r_standard_suffix(z);
            if (ret == 0) goto lab3; /* call standard_suffix, line 230 */
            if (ret < 0) return ret;
        }
    lab3:
        z->c = z->l - m4;
    }
    {   int m5 = z->l - z->c; (void)m5; /* do, line 231 */
        {   int m6 = z->l - z->c; (void)m6; /* or, line 231 */
            if (!(z->B[0])) goto lab6; /* Boolean test standard_suffix_removed, line 231 */
            goto lab5;
        lab6:
            z->c = z->l - m6;
            {   int ret = r_verb_suffix(z);
                if (ret == 0) goto lab4; /* call verb_suffix, line 231 */
                if (ret < 0) return ret;
            }
        }
    lab5:
    lab4:
        z->c = z->l - m5;
    }
    {   int m7 = z->l - z->c; (void)m7; /* do, line 232 */
        {   int ret = r_vowel_suffix(z);
            if (ret == 0) goto lab7; /* call vowel_suffix, line 232 */
            if (ret < 0) return ret;
        }
    lab7:
        z->c = z->l - m7;
    }
    z->c = z->lb;
    {   int c8 = z->c; /* do, line 234 */
        {   int ret = r_postlude(z);
            if (ret == 0) goto lab8; /* call postlude, line 234 */
            if (ret < 0) return ret;
        }
    lab8:
        z->c = c8;
    }
    return 1;
}