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 1187 of file stem_UTF_8_basque.c.

1187{ 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 1185 of file stem_UTF_8_basque.c.

1185{ 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 1146 of file stem_UTF_8_basque.c.

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