isomorfeus-ferret 0.12.4 → 0.12.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +612 -612
- data/README.md +80 -48
- data/ext/isomorfeus_ferret_ext/bm_hash.c +9 -6
- data/ext/isomorfeus_ferret_ext/bm_micro_string.c +4 -2
- data/ext/isomorfeus_ferret_ext/frb_store.c +34 -5
- data/ext/isomorfeus_ferret_ext/frt_posh.h +11 -19
- data/ext/isomorfeus_ferret_ext/frt_q_parser.c +1844 -1911
- data/ext/isomorfeus_ferret_ext/frt_q_phrase.c +7 -7
- data/ext/isomorfeus_ferret_ext/frt_scanner.c +1 -0
- data/ext/isomorfeus_ferret_ext/frt_scanner_mb.c +1 -0
- data/ext/isomorfeus_ferret_ext/frt_scanner_utf8.c +1 -0
- data/ext/isomorfeus_ferret_ext/frt_search.h +1 -1
- data/ext/isomorfeus_ferret_ext/libstemmer.c +14 -11
- data/ext/isomorfeus_ferret_ext/libstemmer.h +4 -9
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_basque.c +1167 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_basque.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_catalan.c +1433 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_catalan.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.c +120 -143
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.h +1 -2
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.c +217 -237
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.c +377 -432
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.c +298 -342
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.h +1 -2
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.c +530 -524
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.c +201 -214
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.c +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_indonesian.c +394 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_indonesian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_irish.c +457 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_irish.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.c +396 -439
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.c +104 -128
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.c +242 -273
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.c +406 -461
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.h +1 -2
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.c +405 -456
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.c +108 -126
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_hungarian.c +849 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_hungarian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.c +373 -405
- data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.c +288 -305
- data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_arabic.c +1651 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_arabic.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_armenian.c +546 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_armenian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_basque.c +1171 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_basque.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_catalan.c +1436 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_catalan.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.c +121 -141
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.c +221 -241
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.c +381 -431
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.c +300 -345
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.c +518 -511
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.c +201 -209
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_greek.c +3660 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_greek.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hindi.c +309 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hindi.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.c +306 -671
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_indonesian.c +394 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_indonesian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_irish.c +457 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_irish.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.c +400 -442
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_lithuanian.c +824 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_lithuanian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_nepali.c +408 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_nepali.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.c +105 -127
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.c +245 -276
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.c +409 -464
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.c +376 -408
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.c +272 -287
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_serbian.c +6530 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_serbian.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.c +407 -458
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.c +110 -125
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_tamil.c +1865 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_tamil.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.c +698 -806
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.h +1 -1
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_yiddish.c +1220 -0
- data/ext/isomorfeus_ferret_ext/stem_UTF_8_yiddish.h +6 -0
- data/ext/isomorfeus_ferret_ext/stem_api.c +1 -9
- data/ext/isomorfeus_ferret_ext/stem_api.h +1 -3
- data/ext/isomorfeus_ferret_ext/stem_header.h +30 -26
- data/ext/isomorfeus_ferret_ext/stem_modules.h +113 -26
- data/ext/isomorfeus_ferret_ext/stem_modules.txt +18 -5
- data/ext/isomorfeus_ferret_ext/stem_utilities.c +167 -132
- data/ext/isomorfeus_ferret_ext/test.c +7 -1
- data/ext/isomorfeus_ferret_ext/test_search.c +0 -1
- data/lib/isomorfeus/ferret/version.rb +1 -1
- metadata +39 -4
- data/ext/isomorfeus_ferret_ext/q_parser.y +0 -1366
@@ -1,4 +1,4 @@
|
|
1
|
-
/*
|
1
|
+
/* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
|
2
2
|
|
3
3
|
#include "stem_header.h"
|
4
4
|
|
@@ -52,43 +52,43 @@ static const symbol s_0_36[3] = { 'a', 's', 't' };
|
|
52
52
|
|
53
53
|
static const struct among a_0[37] =
|
54
54
|
{
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
55
|
+
{ 1, s_0_0, -1, 1, 0},
|
56
|
+
{ 4, s_0_1, 0, 1, 0},
|
57
|
+
{ 4, s_0_2, 0, 1, 0},
|
58
|
+
{ 7, s_0_3, 2, 1, 0},
|
59
|
+
{ 4, s_0_4, 0, 1, 0},
|
60
|
+
{ 2, s_0_5, -1, 1, 0},
|
61
|
+
{ 1, s_0_6, -1, 1, 0},
|
62
|
+
{ 3, s_0_7, 6, 1, 0},
|
63
|
+
{ 4, s_0_8, 6, 1, 0},
|
64
|
+
{ 4, s_0_9, 6, 1, 0},
|
65
|
+
{ 3, s_0_10, 6, 1, 0},
|
66
|
+
{ 4, s_0_11, 6, 1, 0},
|
67
|
+
{ 2, s_0_12, -1, 1, 0},
|
68
|
+
{ 5, s_0_13, 12, 1, 0},
|
69
|
+
{ 4, s_0_14, 12, 1, 0},
|
70
|
+
{ 5, s_0_15, 12, 1, 0},
|
71
|
+
{ 3, s_0_16, -1, 1, 0},
|
72
|
+
{ 2, s_0_17, -1, 1, 0},
|
73
|
+
{ 2, s_0_18, -1, 1, 0},
|
74
|
+
{ 5, s_0_19, 18, 1, 0},
|
75
|
+
{ 2, s_0_20, -1, 1, 0},
|
76
|
+
{ 1, s_0_21, -1, 2, 0},
|
77
|
+
{ 2, s_0_22, 21, 1, 0},
|
78
|
+
{ 5, s_0_23, 22, 1, 0},
|
79
|
+
{ 5, s_0_24, 22, 1, 0},
|
80
|
+
{ 5, s_0_25, 22, 1, 0},
|
81
|
+
{ 2, s_0_26, 21, 1, 0},
|
82
|
+
{ 4, s_0_27, 26, 1, 0},
|
83
|
+
{ 5, s_0_28, 26, 1, 0},
|
84
|
+
{ 3, s_0_29, 21, 1, 0},
|
85
|
+
{ 5, s_0_30, 29, 1, 0},
|
86
|
+
{ 6, s_0_31, 29, 1, 0},
|
87
|
+
{ 4, s_0_32, 21, 1, 0},
|
88
|
+
{ 2, s_0_33, -1, 1, 0},
|
89
|
+
{ 5, s_0_34, -1, 1, 0},
|
90
|
+
{ 3, s_0_35, -1, 1, 0},
|
91
|
+
{ 3, s_0_36, -1, 1, 0}
|
92
92
|
};
|
93
93
|
|
94
94
|
static const symbol s_1_0[2] = { 'd', 'd' };
|
@@ -101,13 +101,13 @@ static const symbol s_1_6[2] = { 't', 't' };
|
|
101
101
|
|
102
102
|
static const struct among a_1[7] =
|
103
103
|
{
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
104
|
+
{ 2, s_1_0, -1, -1, 0},
|
105
|
+
{ 2, s_1_1, -1, -1, 0},
|
106
|
+
{ 2, s_1_2, -1, -1, 0},
|
107
|
+
{ 2, s_1_3, -1, -1, 0},
|
108
|
+
{ 2, s_1_4, -1, -1, 0},
|
109
|
+
{ 2, s_1_5, -1, -1, 0},
|
110
|
+
{ 2, s_1_6, -1, -1, 0}
|
111
111
|
};
|
112
112
|
|
113
113
|
static const symbol s_2_0[2] = { 'i', 'g' };
|
@@ -118,11 +118,11 @@ static const symbol s_2_4[4] = { 'l', 0xF6, 's', 't' };
|
|
118
118
|
|
119
119
|
static const struct among a_2[5] =
|
120
120
|
{
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
121
|
+
{ 2, s_2_0, -1, 1, 0},
|
122
|
+
{ 3, s_2_1, 0, 1, 0},
|
123
|
+
{ 3, s_2_2, -1, 1, 0},
|
124
|
+
{ 5, s_2_3, -1, 3, 0},
|
125
|
+
{ 4, s_2_4, -1, 2, 0}
|
126
126
|
};
|
127
127
|
|
128
128
|
static const unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 32 };
|
@@ -133,54 +133,49 @@ static const symbol s_0[] = { 'l', 0xF6, 's' };
|
|
133
133
|
static const symbol s_1[] = { 'f', 'u', 'l', 'l' };
|
134
134
|
|
135
135
|
static int r_mark_regions(struct SN_env * z) {
|
136
|
-
z->I[
|
137
|
-
{ int
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
z->I[1] = z->c; /* setmark x, line 29 */
|
143
|
-
z->c = c_test;
|
136
|
+
z->I[1] = z->l;
|
137
|
+
{ int c_test1 = z->c;
|
138
|
+
z->c = z->c + 3;
|
139
|
+
if (z->c > z->l) return 0;
|
140
|
+
z->I[0] = z->c;
|
141
|
+
z->c = c_test1;
|
144
142
|
}
|
145
|
-
if (out_grouping(z, g_v, 97, 246, 1) < 0) return 0;
|
146
|
-
{
|
143
|
+
if (out_grouping(z, g_v, 97, 246, 1) < 0) return 0;
|
144
|
+
{
|
147
145
|
int ret = in_grouping(z, g_v, 97, 246, 1);
|
148
146
|
if (ret < 0) return 0;
|
149
147
|
z->c += ret;
|
150
148
|
}
|
151
|
-
z->I[
|
152
|
-
|
153
|
-
if (!(z->I[
|
154
|
-
z->I[
|
149
|
+
z->I[1] = z->c;
|
150
|
+
|
151
|
+
if (!(z->I[1] < z->I[0])) goto lab0;
|
152
|
+
z->I[1] = z->I[0];
|
155
153
|
lab0:
|
156
154
|
return 1;
|
157
155
|
}
|
158
156
|
|
159
157
|
static int r_main_suffix(struct SN_env * z) {
|
160
158
|
int among_var;
|
161
|
-
|
162
|
-
|
163
|
-
if (z->c < z->I[
|
164
|
-
z->
|
165
|
-
|
166
|
-
z->c
|
167
|
-
|
168
|
-
if (
|
169
|
-
|
170
|
-
|
171
|
-
z->bra = z->c; /* ], line 37 */
|
172
|
-
z->lb = mlimit;
|
159
|
+
|
160
|
+
{ int mlimit1;
|
161
|
+
if (z->c < z->I[1]) return 0;
|
162
|
+
mlimit1 = z->lb; z->lb = z->I[1];
|
163
|
+
z->ket = z->c;
|
164
|
+
if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1851442 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit1; return 0; }
|
165
|
+
among_var = find_among_b(z, a_0, 37);
|
166
|
+
if (!(among_var)) { z->lb = mlimit1; return 0; }
|
167
|
+
z->bra = z->c;
|
168
|
+
z->lb = mlimit1;
|
173
169
|
}
|
174
|
-
switch(among_var) {
|
175
|
-
case 0: return 0;
|
170
|
+
switch (among_var) {
|
176
171
|
case 1:
|
177
|
-
{ int ret = slice_del(z);
|
172
|
+
{ int ret = slice_del(z);
|
178
173
|
if (ret < 0) return ret;
|
179
174
|
}
|
180
175
|
break;
|
181
176
|
case 2:
|
182
177
|
if (in_grouping_b(z, g_s_ending, 98, 121, 0)) return 0;
|
183
|
-
{ int ret = slice_del(z);
|
178
|
+
{ int ret = slice_del(z);
|
184
179
|
if (ret < 0) return ret;
|
185
180
|
}
|
186
181
|
break;
|
@@ -189,105 +184,92 @@ static int r_main_suffix(struct SN_env * z) {
|
|
189
184
|
}
|
190
185
|
|
191
186
|
static int r_consonant_pair(struct SN_env * z) {
|
192
|
-
|
193
|
-
|
194
|
-
if (z->c < z->I[
|
195
|
-
z->
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1064976 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit; return 0; }
|
200
|
-
if (!(find_among_b(z, a_1, 7))) { z->lb = mlimit; return 0; } /* among, line 51 */
|
187
|
+
|
188
|
+
{ int mlimit1;
|
189
|
+
if (z->c < z->I[1]) return 0;
|
190
|
+
mlimit1 = z->lb; z->lb = z->I[1];
|
191
|
+
{ int m2 = z->l - z->c; (void)m2;
|
192
|
+
if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1064976 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit1; return 0; }
|
193
|
+
if (!(find_among_b(z, a_1, 7))) { z->lb = mlimit1; return 0; }
|
201
194
|
z->c = z->l - m2;
|
202
|
-
z->ket = z->c;
|
203
|
-
if (z->c <= z->lb) { z->lb =
|
204
|
-
z->c--;
|
205
|
-
z->bra = z->c;
|
206
|
-
{ int ret = slice_del(z);
|
195
|
+
z->ket = z->c;
|
196
|
+
if (z->c <= z->lb) { z->lb = mlimit1; return 0; }
|
197
|
+
z->c--;
|
198
|
+
z->bra = z->c;
|
199
|
+
{ int ret = slice_del(z);
|
207
200
|
if (ret < 0) return ret;
|
208
201
|
}
|
209
202
|
}
|
210
|
-
z->lb =
|
203
|
+
z->lb = mlimit1;
|
211
204
|
}
|
212
205
|
return 1;
|
213
206
|
}
|
214
207
|
|
215
208
|
static int r_other_suffix(struct SN_env * z) {
|
216
209
|
int among_var;
|
217
|
-
|
218
|
-
|
219
|
-
if (z->c < z->I[
|
220
|
-
z->
|
221
|
-
|
222
|
-
z->c
|
223
|
-
|
224
|
-
if (
|
225
|
-
|
226
|
-
|
227
|
-
z->bra = z->c; /* ], line 56 */
|
228
|
-
switch(among_var) {
|
229
|
-
case 0: { z->lb = mlimit; return 0; }
|
210
|
+
|
211
|
+
{ int mlimit1;
|
212
|
+
if (z->c < z->I[1]) return 0;
|
213
|
+
mlimit1 = z->lb; z->lb = z->I[1];
|
214
|
+
z->ket = z->c;
|
215
|
+
if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((1572992 >> (z->p[z->c - 1] & 0x1f)) & 1)) { z->lb = mlimit1; return 0; }
|
216
|
+
among_var = find_among_b(z, a_2, 5);
|
217
|
+
if (!(among_var)) { z->lb = mlimit1; return 0; }
|
218
|
+
z->bra = z->c;
|
219
|
+
switch (among_var) {
|
230
220
|
case 1:
|
231
|
-
{ int ret = slice_del(z);
|
221
|
+
{ int ret = slice_del(z);
|
232
222
|
if (ret < 0) return ret;
|
233
223
|
}
|
234
224
|
break;
|
235
225
|
case 2:
|
236
|
-
{ int ret = slice_from_s(z, 3, s_0);
|
226
|
+
{ int ret = slice_from_s(z, 3, s_0);
|
237
227
|
if (ret < 0) return ret;
|
238
228
|
}
|
239
229
|
break;
|
240
230
|
case 3:
|
241
|
-
{ int ret = slice_from_s(z, 4, s_1);
|
231
|
+
{ int ret = slice_from_s(z, 4, s_1);
|
242
232
|
if (ret < 0) return ret;
|
243
233
|
}
|
244
234
|
break;
|
245
235
|
}
|
246
|
-
z->lb =
|
236
|
+
z->lb = mlimit1;
|
247
237
|
}
|
248
238
|
return 1;
|
249
239
|
}
|
250
240
|
|
251
241
|
extern int swedish_ISO_8859_1_stem(struct SN_env * z) {
|
252
|
-
{ int c1 = z->c;
|
242
|
+
{ int c1 = z->c;
|
253
243
|
{ int ret = r_mark_regions(z);
|
254
|
-
if (ret == 0) goto lab0; /* call mark_regions, line 66 */
|
255
244
|
if (ret < 0) return ret;
|
256
245
|
}
|
257
|
-
lab0:
|
258
246
|
z->c = c1;
|
259
247
|
}
|
260
|
-
z->lb = z->c; z->c = z->l;
|
248
|
+
z->lb = z->c; z->c = z->l;
|
261
249
|
|
262
|
-
{ int m2 = z->l - z->c; (void)m2;
|
250
|
+
{ int m2 = z->l - z->c; (void)m2;
|
263
251
|
{ int ret = r_main_suffix(z);
|
264
|
-
if (ret == 0) goto lab1; /* call main_suffix, line 68 */
|
265
252
|
if (ret < 0) return ret;
|
266
253
|
}
|
267
|
-
lab1:
|
268
254
|
z->c = z->l - m2;
|
269
255
|
}
|
270
|
-
{ int m3 = z->l - z->c; (void)m3;
|
256
|
+
{ int m3 = z->l - z->c; (void)m3;
|
271
257
|
{ int ret = r_consonant_pair(z);
|
272
|
-
if (ret == 0) goto lab2; /* call consonant_pair, line 69 */
|
273
258
|
if (ret < 0) return ret;
|
274
259
|
}
|
275
|
-
lab2:
|
276
260
|
z->c = z->l - m3;
|
277
261
|
}
|
278
|
-
{ int m4 = z->l - z->c; (void)m4;
|
262
|
+
{ int m4 = z->l - z->c; (void)m4;
|
279
263
|
{ int ret = r_other_suffix(z);
|
280
|
-
if (ret == 0) goto lab3; /* call other_suffix, line 70 */
|
281
264
|
if (ret < 0) return ret;
|
282
265
|
}
|
283
|
-
lab3:
|
284
266
|
z->c = z->l - m4;
|
285
267
|
}
|
286
268
|
z->c = z->lb;
|
287
269
|
return 1;
|
288
270
|
}
|
289
271
|
|
290
|
-
extern struct SN_env * swedish_ISO_8859_1_create_env(void) { return SN_create_env(0, 2
|
272
|
+
extern struct SN_env * swedish_ISO_8859_1_create_env(void) { return SN_create_env(0, 2); }
|
291
273
|
|
292
274
|
extern void swedish_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
|
293
275
|
|