PostgreSQL Source Code git master
stem_UTF_8_nepali.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_envnepali_UTF_8_create_env (void)
 
void nepali_UTF_8_close_env (struct SN_env *z)
 
int nepali_UTF_8_stem (struct SN_env *z)
 

Function Documentation

◆ nepali_UTF_8_close_env()

void nepali_UTF_8_close_env ( struct SN_env z)

Definition at line 384 of file stem_UTF_8_nepali.c.

384 {
385 SN_delete_env(z);
386}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ nepali_UTF_8_create_env()

struct SN_env * nepali_UTF_8_create_env ( void  )

Definition at line 380 of file stem_UTF_8_nepali.c.

380 {
381 return SN_new_env(sizeof(struct SN_env));
382}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ nepali_UTF_8_stem()

int nepali_UTF_8_stem ( struct SN_env z)

Definition at line 346 of file stem_UTF_8_nepali.c.

346 {
347 z->lb = z->c; z->c = z->l;
348 {
349 int v_1 = z->l - z->c;
350 {
351 int ret = r_remove_category_1(z);
352 if (ret < 0) return ret;
353 }
354 z->c = z->l - v_1;
355 }
356 while (1) {
357 int v_2 = z->l - z->c;
358 {
359 int v_3 = z->l - z->c;
360 {
361 int ret = r_remove_category_2(z);
362 if (ret < 0) return ret;
363 }
364 z->c = z->l - v_3;
365 }
366 {
367 int ret = r_remove_category_3(z);
368 if (ret == 0) goto lab0;
369 if (ret < 0) return ret;
370 }
371 continue;
372 lab0:
373 z->c = z->l - v_2;
374 break;
375 }
376 z->c = z->lb;
377 return 1;
378}
static int r_remove_category_1(struct SN_env *z)
static int r_remove_category_2(struct SN_env *z)
static int r_remove_category_3(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_remove_category_1(), r_remove_category_2(), and r_remove_category_3().