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

Function Documentation

◆ hindi_UTF_8_close_env()

void hindi_UTF_8_close_env ( struct SN_env z)

Definition at line 321 of file stem_UTF_8_hindi.c.

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

References SN_close_env().

◆ hindi_UTF_8_create_env()

struct SN_env * hindi_UTF_8_create_env ( void  )

Definition at line 319 of file stem_UTF_8_hindi.c.

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

References SN_create_env().

◆ hindi_UTF_8_stem()

int hindi_UTF_8_stem ( struct SN_env z)

Definition at line 302 of file stem_UTF_8_hindi.c.

302 {
303 { int ret = skip_utf8(z->p, z->c, z->l, 1);
304 if (ret < 0) return 0;
305 z->c = ret;
306 }
307 z->lb = z->c; z->c = z->l;
308
309 z->ket = z->c;
310 if (!(find_among_b(z, a_0, 132))) return 0;
311 z->bra = z->c;
312 { int ret = slice_del(z);
313 if (ret < 0) return ret;
314 }
315 z->c = z->lb;
316 return 1;
317}
static const struct among a_0[132]
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 find_among_b(struct SN_env *z, const struct among *v, int v_size)
Definition: utilities.c:298
int slice_del(struct SN_env *z)
Definition: utilities.c:431
int skip_utf8(const symbol *p, int c, int limit, int n)
Definition: utilities.c:27

References a_0, SN_env::bra, SN_env::c, find_among_b(), SN_env::ket, SN_env::l, SN_env::lb, SN_env::p, skip_utf8(), and slice_del().