PostgreSQL Source Code git master
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 1164 of file stem_UTF_8_basque.c.

1164 {
1165 SN_delete_env(z);
1166}
void SN_delete_env(struct SN_env *z)
Definition: api.c:18

References SN_delete_env().

◆ basque_UTF_8_create_env()

struct SN_env * basque_UTF_8_create_env ( void  )

Definition at line 1154 of file stem_UTF_8_basque.c.

1154 {
1155 struct SN_env * z = SN_new_env(sizeof(SN_local));
1156 if (z) {
1157 ((SN_local *)z)->i_p2 = 0;
1158 ((SN_local *)z)->i_p1 = 0;
1159 ((SN_local *)z)->i_pV = 0;
1160 }
1161 return z;
1162}
struct SN_env * SN_new_env(int alloc_size)
Definition: api.c:5
Definition: api.h:15

References SN_new_env().

◆ basque_UTF_8_stem()

int basque_UTF_8_stem ( struct SN_env z)

Definition at line 1112 of file stem_UTF_8_basque.c.

1112 {
1113 {
1114 int ret = r_mark_regions(z);
1115 if (ret < 0) return ret;
1116 }
1117 z->lb = z->c; z->c = z->l;
1118 while (1) {
1119 int v_1 = z->l - z->c;
1120 {
1121 int ret = r_aditzak(z);
1122 if (ret == 0) goto lab0;
1123 if (ret < 0) return ret;
1124 }
1125 continue;
1126 lab0:
1127 z->c = z->l - v_1;
1128 break;
1129 }
1130 while (1) {
1131 int v_2 = z->l - z->c;
1132 {
1133 int ret = r_izenak(z);
1134 if (ret == 0) goto lab1;
1135 if (ret < 0) return ret;
1136 }
1137 continue;
1138 lab1:
1139 z->c = z->l - v_2;
1140 break;
1141 }
1142 {
1143 int v_3 = z->l - z->c;
1144 {
1145 int ret = r_adjetiboak(z);
1146 if (ret < 0) return ret;
1147 }
1148 z->c = z->l - v_3;
1149 }
1150 z->c = z->lb;
1151 return 1;
1152}
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:17
int c
Definition: api.h:17
int l
Definition: api.h:17

References SN_env::c, SN_env::l, SN_env::lb, r_aditzak(), r_adjetiboak(), r_izenak(), and r_mark_regions().