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

◆ english_UTF_8_close_env()

void english_UTF_8_close_env ( struct SN_env z)

Definition at line 1079 of file stem_UTF_8_english.c.

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

References SN_close_env().

◆ english_UTF_8_create_env()

struct SN_env * english_UTF_8_create_env ( void  )

Definition at line 1077 of file stem_UTF_8_english.c.

1077{ return SN_create_env(0, 3); }
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3

References SN_create_env().

◆ english_UTF_8_stem()

int english_UTF_8_stem ( struct SN_env z)

Definition at line 982 of file stem_UTF_8_english.c.

982 {
983 { int c1 = z->c;
984 { int ret = r_exception1(z);
985 if (ret == 0) goto lab1;
986 if (ret < 0) return ret;
987 }
988 goto lab0;
989 lab1:
990 z->c = c1;
991 { int c2 = z->c;
992 { int ret = skip_utf8(z->p, z->c, z->l, 3);
993 if (ret < 0) goto lab3;
994 z->c = ret;
995 }
996 goto lab2;
997 lab3:
998 z->c = c2;
999 }
1000 goto lab0;
1001 lab2:
1002 z->c = c1;
1003
1004 { int ret = r_prelude(z);
1005 if (ret < 0) return ret;
1006 }
1007
1008 { int ret = r_mark_regions(z);
1009 if (ret < 0) return ret;
1010 }
1011 z->lb = z->c; z->c = z->l;
1012
1013 { int m3 = z->l - z->c; (void)m3;
1014 { int ret = r_Step_1a(z);
1015 if (ret < 0) return ret;
1016 }
1017 z->c = z->l - m3;
1018 }
1019 { int m4 = z->l - z->c; (void)m4;
1020 { int ret = r_exception2(z);
1021 if (ret == 0) goto lab5;
1022 if (ret < 0) return ret;
1023 }
1024 goto lab4;
1025 lab5:
1026 z->c = z->l - m4;
1027 { int m5 = z->l - z->c; (void)m5;
1028 { int ret = r_Step_1b(z);
1029 if (ret < 0) return ret;
1030 }
1031 z->c = z->l - m5;
1032 }
1033 { int m6 = z->l - z->c; (void)m6;
1034 { int ret = r_Step_1c(z);
1035 if (ret < 0) return ret;
1036 }
1037 z->c = z->l - m6;
1038 }
1039 { int m7 = z->l - z->c; (void)m7;
1040 { int ret = r_Step_2(z);
1041 if (ret < 0) return ret;
1042 }
1043 z->c = z->l - m7;
1044 }
1045 { int m8 = z->l - z->c; (void)m8;
1046 { int ret = r_Step_3(z);
1047 if (ret < 0) return ret;
1048 }
1049 z->c = z->l - m8;
1050 }
1051 { int m9 = z->l - z->c; (void)m9;
1052 { int ret = r_Step_4(z);
1053 if (ret < 0) return ret;
1054 }
1055 z->c = z->l - m9;
1056 }
1057 { int m10 = z->l - z->c; (void)m10;
1058 { int ret = r_Step_5(z);
1059 if (ret < 0) return ret;
1060 }
1061 z->c = z->l - m10;
1062 }
1063 }
1064 lab4:
1065 z->c = z->lb;
1066 { int c11 = z->c;
1067 { int ret = r_postlude(z);
1068 if (ret < 0) return ret;
1069 }
1070 z->c = c11;
1071 }
1072 }
1073lab0:
1074 return 1;
1075}
static int r_Step_3(struct SN_env *z)
static int r_Step_5(struct SN_env *z)
static int r_exception1(struct SN_env *z)
static int r_Step_1c(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_exception2(struct SN_env *z)
static int r_Step_1a(struct SN_env *z)
static int r_mark_regions(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_1b(struct SN_env *z)
int lb
Definition: api.h:16
symbol * p
Definition: api.h:15
int c
Definition: api.h:16
int l
Definition: api.h:16
int skip_utf8(const symbol *p, int c, int limit, int n)
Definition: utilities.c:27

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