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

Function Documentation

◆ basque_UTF_8_close_env()

void basque_UTF_8_close_env ( struct SN_env z)

Definition at line 1183 of file stem_UTF_8_basque.c.

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

References SN_close_env().

◆ basque_UTF_8_create_env()

struct SN_env* basque_UTF_8_create_env ( void  )

Definition at line 1181 of file stem_UTF_8_basque.c.

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

References SN_create_env().

◆ basque_UTF_8_stem()

int basque_UTF_8_stem ( struct SN_env z)

Definition at line 1142 of file stem_UTF_8_basque.c.

1142  {
1143 
1144  { int ret = r_mark_regions(z);
1145  if (ret < 0) return ret;
1146  }
1147  z->lb = z->c; z->c = z->l;
1148 
1149  while(1) {
1150  int m1 = z->l - z->c; (void)m1;
1151  { int ret = r_aditzak(z);
1152  if (ret == 0) goto lab0;
1153  if (ret < 0) return ret;
1154  }
1155  continue;
1156  lab0:
1157  z->c = z->l - m1;
1158  break;
1159  }
1160  while(1) {
1161  int m2 = z->l - z->c; (void)m2;
1162  { int ret = r_izenak(z);
1163  if (ret == 0) goto lab1;
1164  if (ret < 0) return ret;
1165  }
1166  continue;
1167  lab1:
1168  z->c = z->l - m2;
1169  break;
1170  }
1171  { int m3 = z->l - z->c; (void)m3;
1172  { int ret = r_adjetiboak(z);
1173  if (ret < 0) return ret;
1174  }
1175  z->c = z->l - m3;
1176  }
1177  z->c = z->lb;
1178  return 1;
1179 }
static int r_aditzak(struct SN_env *z)
static int r_adjetiboak(struct SN_env *z)
static int r_izenak(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_aditzak(), r_adjetiboak(), r_izenak(), and r_mark_regions().