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

Function Documentation

◆ swedish_ISO_8859_1_close_env()

void swedish_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 292 of file stem_ISO_8859_1_swedish.c.

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

References SN_close_env().

◆ swedish_ISO_8859_1_create_env()

struct SN_env * swedish_ISO_8859_1_create_env ( void  )

Definition at line 290 of file stem_ISO_8859_1_swedish.c.

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

References SN_create_env().

◆ swedish_ISO_8859_1_stem()

int swedish_ISO_8859_1_stem ( struct SN_env z)

Definition at line 259 of file stem_ISO_8859_1_swedish.c.

259 {
260 { int c1 = z->c;
261 { int ret = r_mark_regions(z);
262 if (ret < 0) return ret;
263 }
264 z->c = c1;
265 }
266 z->lb = z->c; z->c = z->l;
267
268 { int m2 = z->l - z->c; (void)m2;
269 { int ret = r_main_suffix(z);
270 if (ret < 0) return ret;
271 }
272 z->c = z->l - m2;
273 }
274 { int m3 = z->l - z->c; (void)m3;
275 { int ret = r_consonant_pair(z);
276 if (ret < 0) return ret;
277 }
278 z->c = z->l - m3;
279 }
280 { int m4 = z->l - z->c; (void)m4;
281 { int ret = r_other_suffix(z);
282 if (ret < 0) return ret;
283 }
284 z->c = z->l - m4;
285 }
286 z->c = z->lb;
287 return 1;
288}
static int r_other_suffix(struct SN_env *z)
static int r_consonant_pair(struct SN_env *z)
static int r_main_suffix(struct SN_env *z)
static int r_mark_regions(struct SN_env *z)
int lb
Definition: api.h:16
int c
Definition: api.h:16
int l
Definition: api.h:16

References SN_env::c, SN_env::l, SN_env::lb, r_consonant_pair(), r_main_suffix(), r_mark_regions(), and r_other_suffix().