PostgreSQL Source Code git master
stem_ISO_8859_1_norwegian.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_envnorwegian_ISO_8859_1_create_env (void)
 
void norwegian_ISO_8859_1_close_env (struct SN_env *z)
 
int norwegian_ISO_8859_1_stem (struct SN_env *z)
 

Function Documentation

◆ norwegian_ISO_8859_1_close_env()

void norwegian_ISO_8859_1_close_env ( struct SN_env z)

Definition at line 347 of file stem_ISO_8859_1_norwegian.c.

347 {
348 SN_delete_env(z);
349}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ norwegian_ISO_8859_1_create_env()

struct SN_env * norwegian_ISO_8859_1_create_env ( void  )

Definition at line 339 of file stem_ISO_8859_1_norwegian.c.

339 {
340 struct SN_env * z = SN_new_env(sizeof(SN_local));
341 if (z) {
342 ((SN_local *)z)->i_p1 = 0;
343 }
344 return z;
345}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ norwegian_ISO_8859_1_stem()

int norwegian_ISO_8859_1_stem ( struct SN_env z)

Definition at line 301 of file stem_ISO_8859_1_norwegian.c.

301 {
302 {
303 int v_1 = z->c;
304 {
305 int ret = r_mark_regions(z);
306 if (ret < 0) return ret;
307 }
308 z->c = v_1;
309 }
310 z->lb = z->c; z->c = z->l;
311 {
312 int v_2 = z->l - z->c;
313 {
314 int ret = r_main_suffix(z);
315 if (ret < 0) return ret;
316 }
317 z->c = z->l - v_2;
318 }
319 {
320 int v_3 = z->l - z->c;
321 {
322 int ret = r_consonant_pair(z);
323 if (ret < 0) return ret;
324 }
325 z->c = z->l - v_3;
326 }
327 {
328 int v_4 = z->l - z->c;
329 {
330 int ret = r_other_suffix(z);
331 if (ret < 0) return ret;
332 }
333 z->c = z->l - v_4;
334 }
335 z->c = z->lb;
336 return 1;
337}
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:17
int c
Definition: api.h:17
int l
Definition: api.h:17

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