PostgreSQL Source Code  git master
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 1073 of file stem_UTF_8_english.c.

1073 { 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 1071 of file stem_UTF_8_english.c.

1071 { 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 976 of file stem_UTF_8_english.c.

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