PostgreSQL Source Code  git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_UTF_8_french.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_envfrench_UTF_8_create_env (void)
 
void french_UTF_8_close_env (struct SN_env *z)
 
int french_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ french_UTF_8_close_env()

void french_UTF_8_close_env ( struct SN_env z)

Definition at line 1261 of file stem_UTF_8_french.c.

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

References SN_close_env().

◆ french_UTF_8_create_env()

struct SN_env* french_UTF_8_create_env ( void  )

Definition at line 1259 of file stem_UTF_8_french.c.

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

◆ french_UTF_8_stem()

int french_UTF_8_stem ( struct SN_env z)

Definition at line 1164 of file stem_UTF_8_french.c.

1164  {
1165  { int c1 = z->c;
1166  { int ret = r_prelude(z);
1167  if (ret < 0) return ret;
1168  }
1169  z->c = c1;
1170  }
1171 
1172  { int ret = r_mark_regions(z);
1173  if (ret < 0) return ret;
1174  }
1175  z->lb = z->c; z->c = z->l;
1176 
1177  { int m2 = z->l - z->c; (void)m2;
1178  { int m3 = z->l - z->c; (void)m3;
1179  { int m4 = z->l - z->c; (void)m4;
1180  { int m5 = z->l - z->c; (void)m5;
1181  { int ret = r_standard_suffix(z);
1182  if (ret == 0) goto lab4;
1183  if (ret < 0) return ret;
1184  }
1185  goto lab3;
1186  lab4:
1187  z->c = z->l - m5;
1188  { int ret = r_i_verb_suffix(z);
1189  if (ret == 0) goto lab5;
1190  if (ret < 0) return ret;
1191  }
1192  goto lab3;
1193  lab5:
1194  z->c = z->l - m5;
1195  { int ret = r_verb_suffix(z);
1196  if (ret == 0) goto lab2;
1197  if (ret < 0) return ret;
1198  }
1199  }
1200  lab3:
1201  z->c = z->l - m4;
1202  { int m6 = z->l - z->c; (void)m6;
1203  z->ket = z->c;
1204  { int m7 = z->l - z->c; (void)m7;
1205  if (z->c <= z->lb || z->p[z->c - 1] != 'Y') goto lab8;
1206  z->c--;
1207  z->bra = z->c;
1208  { int ret = slice_from_s(z, 1, s_37);
1209  if (ret < 0) return ret;
1210  }
1211  goto lab7;
1212  lab8:
1213  z->c = z->l - m7;
1214  if (!(eq_s_b(z, 2, s_38))) { z->c = z->l - m6; goto lab6; }
1215  z->bra = z->c;
1216  { int ret = slice_from_s(z, 1, s_39);
1217  if (ret < 0) return ret;
1218  }
1219  }
1220  lab7:
1221  lab6:
1222  ;
1223  }
1224  }
1225  goto lab1;
1226  lab2:
1227  z->c = z->l - m3;
1228  { int ret = r_residual_suffix(z);
1229  if (ret == 0) goto lab0;
1230  if (ret < 0) return ret;
1231  }
1232  }
1233  lab1:
1234  lab0:
1235  z->c = z->l - m2;
1236  }
1237  { int m8 = z->l - z->c; (void)m8;
1238  { int ret = r_un_double(z);
1239  if (ret < 0) return ret;
1240  }
1241  z->c = z->l - m8;
1242  }
1243  { int m9 = z->l - z->c; (void)m9;
1244  { int ret = r_un_accent(z);
1245  if (ret < 0) return ret;
1246  }
1247  z->c = z->l - m9;
1248  }
1249  z->c = z->lb;
1250  { int c10 = z->c;
1251  { int ret = r_postlude(z);
1252  if (ret < 0) return ret;
1253  }
1254  z->c = c10;
1255  }
1256  return 1;
1257 }
static int r_un_accent(struct SN_env *z)
static const symbol s_38[]
static int r_standard_suffix(struct SN_env *z)
static int r_un_double(struct SN_env *z)
static int r_verb_suffix(struct SN_env *z)
static const symbol s_37[]
static int r_i_verb_suffix(struct SN_env *z)
static int r_postlude(struct SN_env *z)
static int r_prelude(struct SN_env *z)
static const symbol s_39[]
static int r_mark_regions(struct SN_env *z)
static int r_residual_suffix(struct SN_env *z)
int lb
Definition: api.h:16
symbol * p
Definition: api.h:15
int ket
Definition: api.h:16
int c
Definition: api.h:16
int bra
Definition: api.h:16
int l
Definition: api.h:16
int eq_s_b(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:220
int slice_from_s(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:422

References SN_env::bra, SN_env::c, eq_s_b(), SN_env::ket, SN_env::l, SN_env::lb, SN_env::p, r_i_verb_suffix(), r_mark_regions(), r_postlude(), r_prelude(), r_residual_suffix(), r_standard_suffix(), r_un_accent(), r_un_double(), r_verb_suffix(), s_37, s_38, s_39, and slice_from_s().