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

Function Documentation

◆ danish_UTF_8_close_env()

void danish_UTF_8_close_env ( struct SN_env z)

Definition at line 317 of file stem_UTF_8_danish.c.

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

References SN_close_env().

◆ danish_UTF_8_create_env()

struct SN_env * danish_UTF_8_create_env ( void  )

Definition at line 315 of file stem_UTF_8_danish.c.

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

References SN_create_env().

◆ danish_UTF_8_stem()

int danish_UTF_8_stem ( struct SN_env z)

Definition at line 278 of file stem_UTF_8_danish.c.

278 {
279 { int c1 = z->c;
280 { int ret = r_mark_regions(z);
281 if (ret < 0) return ret;
282 }
283 z->c = c1;
284 }
285 z->lb = z->c; z->c = z->l;
286
287 { int m2 = z->l - z->c; (void)m2;
288 { int ret = r_main_suffix(z);
289 if (ret < 0) return ret;
290 }
291 z->c = z->l - m2;
292 }
293 { int m3 = z->l - z->c; (void)m3;
294 { int ret = r_consonant_pair(z);
295 if (ret < 0) return ret;
296 }
297 z->c = z->l - m3;
298 }
299 { int m4 = z->l - z->c; (void)m4;
300 { int ret = r_other_suffix(z);
301 if (ret < 0) return ret;
302 }
303 z->c = z->l - m4;
304 }
305 { int m5 = z->l - z->c; (void)m5;
306 { int ret = r_undouble(z);
307 if (ret < 0) return ret;
308 }
309 z->c = z->l - m5;
310 }
311 z->c = z->lb;
312 return 1;
313}
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_undouble(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(), r_other_suffix(), and r_undouble().