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

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

Definition at line 1122 of file stem_UTF_8_english.c.

References SN_create_env().

1122 { return SN_create_env(0, 2, 1); }
struct SN_env * SN_create_env(int S_size, int I_size, int B_size)
Definition: api.c:3
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().

1003  {
1004  { int c1 = z->c; /* or, line 207 */
1005  { int ret = r_exception1(z);
1006  if (ret == 0) goto lab1; /* call exception1, line 207 */
1007  if (ret < 0) return ret;
1008  }
1009  goto lab0;
1010  lab1:
1011  z->c = c1;
1012  { int c2 = z->c; /* not, line 208 */
1013  { int ret = skip_utf8(z->p, z->c, 0, z->l, + 3);
1014  if (ret < 0) goto lab3;
1015  z->c = ret; /* hop, line 208 */
1016  }
1017  goto lab2;
1018  lab3:
1019  z->c = c2;
1020  }
1021  goto lab0;
1022  lab2:
1023  z->c = c1;
1024  { int c3 = z->c; /* do, line 209 */
1025  { int ret = r_prelude(z);
1026  if (ret == 0) goto lab4; /* call prelude, line 209 */
1027  if (ret < 0) return ret;
1028  }
1029  lab4:
1030  z->c = c3;
1031  }
1032  { int c4 = z->c; /* do, line 210 */
1033  { int ret = r_mark_regions(z);
1034  if (ret == 0) goto lab5; /* call mark_regions, line 210 */
1035  if (ret < 0) return ret;
1036  }
1037  lab5:
1038  z->c = c4;
1039  }
1040  z->lb = z->c; z->c = z->l; /* backwards, line 211 */
1041 
1042  { int m5 = z->l - z->c; (void)m5; /* do, line 213 */
1043  { int ret = r_Step_1a(z);
1044  if (ret == 0) goto lab6; /* call Step_1a, line 213 */
1045  if (ret < 0) return ret;
1046  }
1047  lab6:
1048  z->c = z->l - m5;
1049  }
1050  { int m6 = z->l - z->c; (void)m6; /* or, line 215 */
1051  { int ret = r_exception2(z);
1052  if (ret == 0) goto lab8; /* call exception2, line 215 */
1053  if (ret < 0) return ret;
1054  }
1055  goto lab7;
1056  lab8:
1057  z->c = z->l - m6;
1058  { int m7 = z->l - z->c; (void)m7; /* do, line 217 */
1059  { int ret = r_Step_1b(z);
1060  if (ret == 0) goto lab9; /* call Step_1b, line 217 */
1061  if (ret < 0) return ret;
1062  }
1063  lab9:
1064  z->c = z->l - m7;
1065  }
1066  { int m8 = z->l - z->c; (void)m8; /* do, line 218 */
1067  { int ret = r_Step_1c(z);
1068  if (ret == 0) goto lab10; /* call Step_1c, line 218 */
1069  if (ret < 0) return ret;
1070  }
1071  lab10:
1072  z->c = z->l - m8;
1073  }
1074  { int m9 = z->l - z->c; (void)m9; /* do, line 220 */
1075  { int ret = r_Step_2(z);
1076  if (ret == 0) goto lab11; /* call Step_2, line 220 */
1077  if (ret < 0) return ret;
1078  }
1079  lab11:
1080  z->c = z->l - m9;
1081  }
1082  { int m10 = z->l - z->c; (void)m10; /* do, line 221 */
1083  { int ret = r_Step_3(z);
1084  if (ret == 0) goto lab12; /* call Step_3, line 221 */
1085  if (ret < 0) return ret;
1086  }
1087  lab12:
1088  z->c = z->l - m10;
1089  }
1090  { int m11 = z->l - z->c; (void)m11; /* do, line 222 */
1091  { int ret = r_Step_4(z);
1092  if (ret == 0) goto lab13; /* call Step_4, line 222 */
1093  if (ret < 0) return ret;
1094  }
1095  lab13:
1096  z->c = z->l - m11;
1097  }
1098  { int m12 = z->l - z->c; (void)m12; /* do, line 224 */
1099  { int ret = r_Step_5(z);
1100  if (ret == 0) goto lab14; /* call Step_5, line 224 */
1101  if (ret < 0) return ret;
1102  }
1103  lab14:
1104  z->c = z->l - m12;
1105  }
1106  }
1107  lab7:
1108  z->c = z->lb;
1109  { int c13 = z->c; /* do, line 227 */
1110  { int ret = r_postlude(z);
1111  if (ret == 0) goto lab15; /* call postlude, line 227 */
1112  if (ret < 0) return ret;
1113  }
1114  lab15:
1115  z->c = c13;
1116  }
1117  }
1118 lab0:
1119  return 1;
1120 }
static int r_exception2(struct SN_env *z)
symbol * p
Definition: api.h:15
int skip_utf8(const symbol *p, int c, int lb, int l, int n)
Definition: utilities.c:30
static int r_exception1(struct SN_env *z)
static int r_Step_1a(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int c
Definition: api.h:16
static int r_Step_2(struct SN_env *z)
int lb
Definition: api.h:16
static int r_Step_1b(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_Step_1c(struct SN_env *z)
static int r_Step_4(struct SN_env *z)
static int r_Step_3(struct SN_env *z)
int l
Definition: api.h:16
static int r_Step_5(struct SN_env *z)