PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
stem_UTF_8_nepali.c
Go to the documentation of this file.
1/* Generated by Snowball 2.2.0 - https://snowballstem.org/ */
2
3#include "header.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8extern int nepali_UTF_8_stem(struct SN_env * z);
9#ifdef __cplusplus
10}
11#endif
12static int r_remove_category_3(struct SN_env * z);
13static int r_remove_category_2(struct SN_env * z);
14static int r_check_category_2(struct SN_env * z);
15static int r_remove_category_1(struct SN_env * z);
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20
21extern struct SN_env * nepali_UTF_8_create_env(void);
22extern void nepali_UTF_8_close_env(struct SN_env * z);
23
24
25#ifdef __cplusplus
26}
27#endif
28static const symbol s_0_0[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
29static const symbol s_0_1[9] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0x87 };
30static const symbol s_0_2[6] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA5, 0x87 };
31static const symbol s_0_3[9] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0x88 };
32static const symbol s_0_4[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
33static const symbol s_0_5[12] = { 0xE0, 0xA4, 0xB8, 0xE0, 0xA4, 0x81, 0xE0, 0xA4, 0x97, 0xE0, 0xA5, 0x88 };
34static const symbol s_0_6[6] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA5, 0x88 };
35static const symbol s_0_7[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
36static const symbol s_0_8[9] = { 0xE0, 0xA4, 0xB8, 0xE0, 0xA4, 0x81, 0xE0, 0xA4, 0x97 };
37static const symbol s_0_9[9] = { 0xE0, 0xA4, 0xB8, 0xE0, 0xA4, 0x82, 0xE0, 0xA4, 0x97 };
38static const symbol s_0_10[18] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAB, 0xE0, 0xA4, 0xA4 };
39static const symbol s_0_11[6] = { 0xE0, 0xA4, 0xB0, 0xE0, 0xA4, 0xA4 };
40static const symbol s_0_12[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
41static const symbol s_0_13[6] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA4, 0xBE };
42static const symbol s_0_14[18] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xB5, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xB0, 0xE0, 0xA4, 0xBE };
43static const symbol s_0_15[6] = { 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBF };
44static const symbol s_0_16[9] = { 0xE0, 0xA4, 0xAA, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xBF };
45
46static const struct among a_0[17] =
47{
48{ 6, s_0_0, -1, 2, 0},
49{ 9, s_0_1, -1, 1, 0},
50{ 6, s_0_2, -1, 1, 0},
51{ 9, s_0_3, -1, 1, 0},
52{ 6, s_0_4, -1, 2, 0},
53{ 12, s_0_5, -1, 1, 0},
54{ 6, s_0_6, -1, 1, 0},
55{ 6, s_0_7, -1, 2, 0},
56{ 9, s_0_8, -1, 1, 0},
57{ 9, s_0_9, -1, 1, 0},
58{ 18, s_0_10, -1, 1, 0},
59{ 6, s_0_11, -1, 1, 0},
60{ 6, s_0_12, -1, 2, 0},
61{ 6, s_0_13, -1, 1, 0},
62{ 18, s_0_14, -1, 1, 0},
63{ 6, s_0_15, -1, 2, 0},
64{ 9, s_0_16, -1, 1, 0}
65};
66
67static const symbol s_1_0[3] = { 0xE0, 0xA4, 0x81 };
68static const symbol s_1_1[3] = { 0xE0, 0xA4, 0x82 };
69static const symbol s_1_2[3] = { 0xE0, 0xA5, 0x88 };
70
71static const struct among a_1[3] =
72{
73{ 3, s_1_0, -1, -1, 0},
74{ 3, s_1_1, -1, -1, 0},
75{ 3, s_1_2, -1, -1, 0}
76};
77
78static const symbol s_2_0[3] = { 0xE0, 0xA4, 0x81 };
79static const symbol s_2_1[3] = { 0xE0, 0xA4, 0x82 };
80static const symbol s_2_2[3] = { 0xE0, 0xA5, 0x88 };
81
82static const struct among a_2[3] =
83{
84{ 3, s_2_0, -1, 1, 0},
85{ 3, s_2_1, -1, 1, 0},
86{ 3, s_2_2, -1, 2, 0}
87};
88
89static const symbol s_3_0[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
90static const symbol s_3_1[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
91static const symbol s_3_2[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
92static const symbol s_3_3[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x80 };
93static const symbol s_3_4[12] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x96, 0xE0, 0xA5, 0x80 };
94static const symbol s_3_5[6] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x80 };
95static const symbol s_3_6[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x80 };
96static const symbol s_3_7[6] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
97static const symbol s_3_8[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
98static const symbol s_3_9[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
99static const symbol s_3_10[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x81 };
100static const symbol s_3_11[6] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x81 };
101static const symbol s_3_12[9] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x81 };
102static const symbol s_3_13[9] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x82 };
103static const symbol s_3_14[6] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x87 };
104static const symbol s_3_15[6] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x87 };
105static const symbol s_3_16[6] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87 };
106static const symbol s_3_17[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
107static const symbol s_3_18[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
108static const symbol s_3_19[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x88 };
109static const symbol s_3_20[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x88 };
110static const symbol s_3_21[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x88 };
111static const symbol s_3_22[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x88 };
112static const symbol s_3_23[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
113static const symbol s_3_24[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
114static const symbol s_3_25[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
115static const symbol s_3_26[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
116static const symbol s_3_27[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA5, 0x8B };
117static const symbol s_3_28[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8B };
118static const symbol s_3_29[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8B };
119static const symbol s_3_30[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x8B };
120static const symbol s_3_31[6] = { 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
121static const symbol s_3_32[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
122static const symbol s_3_33[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
123static const symbol s_3_34[9] = { 0xE0, 0xA4, 0xAD, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
124static const symbol s_3_35[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
125static const symbol s_3_36[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
126static const symbol s_3_37[12] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8B };
127static const symbol s_3_38[6] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
128static const symbol s_3_39[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
129static const symbol s_3_40[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
130static const symbol s_3_41[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
131static const symbol s_3_42[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
132static const symbol s_3_43[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
133static const symbol s_3_44[6] = { 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
134static const symbol s_3_45[12] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
135static const symbol s_3_46[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
136static const symbol s_3_47[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
137static const symbol s_3_48[9] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
138static const symbol s_3_49[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
139static const symbol s_3_50[12] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
140static const symbol s_3_51[15] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
141static const symbol s_3_52[12] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
142static const symbol s_3_53[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
143static const symbol s_3_54[12] = { 0xE0, 0xA4, 0xB2, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
144static const symbol s_3_55[12] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
145static const symbol s_3_56[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D };
146static const symbol s_3_57[9] = { 0xE0, 0xA4, 0xAA, 0xE0, 0xA4, 0xB0, 0xE0, 0xA5, 0x8D };
147static const symbol s_3_58[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
148static const symbol s_3_59[15] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
149static const symbol s_3_60[12] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
150static const symbol s_3_61[12] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA5, 0x8B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
151static const symbol s_3_62[9] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
152static const symbol s_3_63[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
153static const symbol s_3_64[12] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
154static const symbol s_3_65[15] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
155static const symbol s_3_66[12] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
156static const symbol s_3_67[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
157static const symbol s_3_68[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
158static const symbol s_3_69[12] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xB8, 0xE0, 0xA5, 0x8D };
159static const symbol s_3_70[9] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F };
160static const symbol s_3_71[3] = { 0xE0, 0xA4, 0x9B };
161static const symbol s_3_72[6] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x9B };
162static const symbol s_3_73[6] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B };
163static const symbol s_3_74[9] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B };
164static const symbol s_3_75[15] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA5, 0x81, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x9B };
165static const symbol s_3_76[15] = { 0xE0, 0xA4, 0xB9, 0xE0, 0xA5, 0x81, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0x9B };
166static const symbol s_3_77[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0x9B };
167static const symbol s_3_78[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0x9B };
168static const symbol s_3_79[6] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x9B };
169static const symbol s_3_80[6] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x9B };
170static const symbol s_3_81[9] = { 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
171static const symbol s_3_82[12] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
172static const symbol s_3_83[9] = { 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
173static const symbol s_3_84[12] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
174static const symbol s_3_85[12] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0x8F, 0xE0, 0xA4, 0x95, 0xE0, 0xA4, 0xBE };
175static const symbol s_3_86[6] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBE };
176static const symbol s_3_87[9] = { 0xE0, 0xA4, 0x87, 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBE };
177static const symbol s_3_88[9] = { 0xE0, 0xA4, 0xBF, 0xE0, 0xA4, 0xA6, 0xE0, 0xA4, 0xBE };
178static const symbol s_3_89[12] = { 0xE0, 0xA4, 0xA6, 0xE0, 0xA5, 0x87, 0xE0, 0xA4, 0x96, 0xE0, 0xA4, 0xBF };
179static const symbol s_3_90[12] = { 0xE0, 0xA4, 0xAE, 0xE0, 0xA4, 0xBE, 0xE0, 0xA4, 0xA5, 0xE0, 0xA4, 0xBF };
180
181static const struct among a_3[91] =
182{
183{ 9, s_3_0, -1, 1, 0},
184{ 9, s_3_1, -1, 1, 0},
185{ 12, s_3_2, 1, 1, 0},
186{ 12, s_3_3, 1, 1, 0},
187{ 12, s_3_4, -1, 1, 0},
188{ 6, s_3_5, -1, 1, 0},
189{ 6, s_3_6, -1, 1, 0},
190{ 6, s_3_7, -1, 1, 0},
191{ 9, s_3_8, 7, 1, 0},
192{ 12, s_3_9, 8, 1, 0},
193{ 9, s_3_10, 7, 1, 0},
194{ 6, s_3_11, -1, 1, 0},
195{ 9, s_3_12, -1, 1, 0},
196{ 9, s_3_13, -1, 1, 0},
197{ 6, s_3_14, -1, 1, 0},
198{ 6, s_3_15, -1, 1, 0},
199{ 6, s_3_16, -1, 1, 0},
200{ 9, s_3_17, -1, 1, 0},
201{ 12, s_3_18, 17, 1, 0},
202{ 9, s_3_19, -1, 1, 0},
203{ 6, s_3_20, -1, 1, 0},
204{ 9, s_3_21, 20, 1, 0},
205{ 9, s_3_22, 20, 1, 0},
206{ 9, s_3_23, -1, 1, 0},
207{ 12, s_3_24, 23, 1, 0},
208{ 9, s_3_25, -1, 1, 0},
209{ 12, s_3_26, 25, 1, 0},
210{ 12, s_3_27, 25, 1, 0},
211{ 6, s_3_28, -1, 1, 0},
212{ 9, s_3_29, 28, 1, 0},
213{ 9, s_3_30, 28, 1, 0},
214{ 6, s_3_31, -1, 1, 0},
215{ 9, s_3_32, 31, 1, 0},
216{ 12, s_3_33, 31, 1, 0},
217{ 9, s_3_34, 31, 1, 0},
218{ 9, s_3_35, 31, 1, 0},
219{ 12, s_3_36, 35, 1, 0},
220{ 12, s_3_37, 35, 1, 0},
221{ 6, s_3_38, -1, 1, 0},
222{ 9, s_3_39, 38, 1, 0},
223{ 9, s_3_40, 38, 1, 0},
224{ 12, s_3_41, 40, 1, 0},
225{ 9, s_3_42, 38, 1, 0},
226{ 9, s_3_43, 38, 1, 0},
227{ 6, s_3_44, -1, 1, 0},
228{ 12, s_3_45, 44, 1, 0},
229{ 12, s_3_46, 44, 1, 0},
230{ 12, s_3_47, 44, 1, 0},
231{ 9, s_3_48, -1, 1, 0},
232{ 12, s_3_49, 48, 1, 0},
233{ 12, s_3_50, 48, 1, 0},
234{ 15, s_3_51, 50, 1, 0},
235{ 12, s_3_52, 48, 1, 0},
236{ 12, s_3_53, 48, 1, 0},
237{ 12, s_3_54, -1, 1, 0},
238{ 12, s_3_55, -1, 1, 0},
239{ 12, s_3_56, -1, 1, 0},
240{ 9, s_3_57, -1, 1, 0},
241{ 9, s_3_58, -1, 1, 0},
242{ 15, s_3_59, 58, 1, 0},
243{ 12, s_3_60, -1, 1, 0},
244{ 12, s_3_61, -1, 1, 0},
245{ 9, s_3_62, -1, 1, 0},
246{ 12, s_3_63, 62, 1, 0},
247{ 12, s_3_64, 62, 1, 0},
248{ 15, s_3_65, 64, 1, 0},
249{ 12, s_3_66, 62, 1, 0},
250{ 12, s_3_67, 62, 1, 0},
251{ 9, s_3_68, -1, 1, 0},
252{ 12, s_3_69, 68, 1, 0},
253{ 9, s_3_70, -1, 1, 0},
254{ 3, s_3_71, -1, 1, 0},
255{ 6, s_3_72, 71, 1, 0},
256{ 6, s_3_73, 71, 1, 0},
257{ 9, s_3_74, 73, 1, 0},
258{ 15, s_3_75, 74, 1, 0},
259{ 15, s_3_76, 71, 1, 0},
260{ 12, s_3_77, 71, 1, 0},
261{ 12, s_3_78, 71, 1, 0},
262{ 6, s_3_79, 71, 1, 0},
263{ 6, s_3_80, 71, 1, 0},
264{ 9, s_3_81, -1, 1, 0},
265{ 12, s_3_82, 81, 1, 0},
266{ 9, s_3_83, -1, 1, 0},
267{ 12, s_3_84, 83, 1, 0},
268{ 12, s_3_85, 83, 1, 0},
269{ 6, s_3_86, -1, 1, 0},
270{ 9, s_3_87, 86, 1, 0},
271{ 9, s_3_88, 86, 1, 0},
272{ 12, s_3_89, -1, 1, 0},
273{ 12, s_3_90, -1, 1, 0}
274};
275
276static const symbol s_0[] = { 0xE0, 0xA4, 0x8F };
277static const symbol s_1[] = { 0xE0, 0xA5, 0x87 };
278static const symbol s_2[] = { 0xE0, 0xA4, 0xAF, 0xE0, 0xA5, 0x8C };
279static const symbol s_3[] = { 0xE0, 0xA4, 0x9B, 0xE0, 0xA5, 0x8C };
280static const symbol s_4[] = { 0xE0, 0xA4, 0xA8, 0xE0, 0xA5, 0x8C };
281static const symbol s_5[] = { 0xE0, 0xA4, 0xA5, 0xE0, 0xA5, 0x87 };
282static const symbol s_6[] = { 0xE0, 0xA4, 0xA4, 0xE0, 0xA5, 0x8D, 0xE0, 0xA4, 0xB0 };
283
284static int r_remove_category_1(struct SN_env * z) {
285 int among_var;
286 z->ket = z->c;
287 among_var = find_among_b(z, a_0, 17);
288 if (!(among_var)) return 0;
289 z->bra = z->c;
290 switch (among_var) {
291 case 1:
292 { int ret = slice_del(z);
293 if (ret < 0) return ret;
294 }
295 break;
296 case 2:
297 { int m1 = z->l - z->c; (void)m1;
298 { int m2 = z->l - z->c; (void)m2;
299 if (!(eq_s_b(z, 3, s_0))) goto lab3;
300 goto lab2;
301 lab3:
302 z->c = z->l - m2;
303 if (!(eq_s_b(z, 3, s_1))) goto lab1;
304 }
305 lab2:
306 goto lab0;
307 lab1:
308 z->c = z->l - m1;
309 { int ret = slice_del(z);
310 if (ret < 0) return ret;
311 }
312 }
313 lab0:
314 break;
315 }
316 return 1;
317}
318
319static int r_check_category_2(struct SN_env * z) {
320 z->ket = z->c;
321 if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 4 || !((262 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
322 if (!(find_among_b(z, a_1, 3))) return 0;
323 z->bra = z->c;
324 return 1;
325}
326
327static int r_remove_category_2(struct SN_env * z) {
328 int among_var;
329 z->ket = z->c;
330 if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 4 || !((262 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
331 among_var = find_among_b(z, a_2, 3);
332 if (!(among_var)) return 0;
333 z->bra = z->c;
334 switch (among_var) {
335 case 1:
336 { int m1 = z->l - z->c; (void)m1;
337 if (!(eq_s_b(z, 6, s_2))) goto lab1;
338 goto lab0;
339 lab1:
340 z->c = z->l - m1;
341 if (!(eq_s_b(z, 6, s_3))) goto lab2;
342 goto lab0;
343 lab2:
344 z->c = z->l - m1;
345 if (!(eq_s_b(z, 6, s_4))) goto lab3;
346 goto lab0;
347 lab3:
348 z->c = z->l - m1;
349 if (!(eq_s_b(z, 6, s_5))) return 0;
350 }
351 lab0:
352 { int ret = slice_del(z);
353 if (ret < 0) return ret;
354 }
355 break;
356 case 2:
357 if (!(eq_s_b(z, 9, s_6))) return 0;
358 { int ret = slice_del(z);
359 if (ret < 0) return ret;
360 }
361 break;
362 }
363 return 1;
364}
365
366static int r_remove_category_3(struct SN_env * z) {
367 z->ket = z->c;
368 if (!(find_among_b(z, a_3, 91))) return 0;
369 z->bra = z->c;
370 { int ret = slice_del(z);
371 if (ret < 0) return ret;
372 }
373 return 1;
374}
375
376extern int nepali_UTF_8_stem(struct SN_env * z) {
377 z->lb = z->c; z->c = z->l;
378
379 { int m1 = z->l - z->c; (void)m1;
380 { int ret = r_remove_category_1(z);
381 if (ret < 0) return ret;
382 }
383 z->c = z->l - m1;
384 }
385 { int m2 = z->l - z->c; (void)m2;
386 while(1) {
387 int m3 = z->l - z->c; (void)m3;
388 { int m4 = z->l - z->c; (void)m4;
389 { int m5 = z->l - z->c; (void)m5;
390 { int ret = r_check_category_2(z);
391 if (ret == 0) goto lab2;
392 if (ret < 0) return ret;
393 }
394 z->c = z->l - m5;
395 { int ret = r_remove_category_2(z);
396 if (ret == 0) goto lab2;
397 if (ret < 0) return ret;
398 }
399 }
400 lab2:
401 z->c = z->l - m4;
402 }
403 { int ret = r_remove_category_3(z);
404 if (ret == 0) goto lab1;
405 if (ret < 0) return ret;
406 }
407 continue;
408 lab1:
409 z->c = z->l - m3;
410 break;
411 }
412 z->c = z->l - m2;
413 }
414 z->c = z->lb;
415 return 1;
416}
417
418extern struct SN_env * nepali_UTF_8_create_env(void) { return SN_create_env(0, 0); }
419
420extern void nepali_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
421
void SN_close_env(struct SN_env *z, int S_size)
Definition: api.c:34
struct SN_env * SN_create_env(int S_size, int I_size)
Definition: api.c:3
unsigned char symbol
Definition: api.h:2
static const symbol s_3_17[9]
int nepali_UTF_8_stem(struct SN_env *z)
static const symbol s_3_56[12]
static const symbol s_3_19[9]
static const symbol s_3_65[15]
static const symbol s_2[]
static const symbol s_3_14[6]
static const symbol s_3_86[6]
static const symbol s_3_50[12]
static const symbol s_3_53[12]
static const symbol s_3_42[9]
static const symbol s_0_0[6]
static const symbol s_3_90[12]
static const symbol s_3_31[6]
static const symbol s_4[]
static const symbol s_3_41[12]
static int r_remove_category_1(struct SN_env *z)
static const symbol s_3_38[6]
static const symbol s_3_5[6]
static const symbol s_3_44[6]
static const symbol s_3_54[12]
static const symbol s_3_39[9]
static const symbol s_3_10[9]
static const symbol s_3_45[12]
static const symbol s_3_29[9]
void nepali_UTF_8_close_env(struct SN_env *z)
static const symbol s_3_61[12]
static const symbol s_3_81[9]
static const symbol s_0_12[6]
static const symbol s_0_16[9]
static const symbol s_3_15[6]
static const symbol s_3_16[6]
static const symbol s_3_84[12]
static const symbol s_3_32[9]
static const symbol s_3_66[12]
static const symbol s_3_43[9]
static const symbol s_3_59[15]
static const symbol s_2_1[3]
static const symbol s_0_5[12]
static const symbol s_6[]
static const symbol s_3_67[12]
static int r_remove_category_2(struct SN_env *z)
static const symbol s_3_58[9]
static const symbol s_3_55[12]
static const symbol s_3_75[15]
static const symbol s_3_88[9]
static const symbol s_3_60[12]
static const symbol s_3[]
static const symbol s_3_27[12]
static const symbol s_0_9[9]
static const symbol s_3_20[6]
static const symbol s_3_64[12]
static const symbol s_0_1[9]
static const symbol s_3_7[6]
static int r_remove_category_3(struct SN_env *z)
static const symbol s_3_33[12]
static const symbol s_3_35[9]
static const symbol s_3_78[12]
static const symbol s_3_83[9]
static const symbol s_3_22[9]
static const symbol s_3_70[9]
static const symbol s_3_0[9]
static const symbol s_0_15[6]
static const symbol s_3_87[9]
static const symbol s_0_3[9]
static const symbol s_3_6[6]
static const symbol s_0_2[6]
static const symbol s_3_68[9]
static const symbol s_3_74[9]
static const symbol s_3_77[12]
static const symbol s_0_4[6]
static const symbol s_3_9[12]
static const struct among a_3[91]
static const symbol s_3_8[9]
static int r_check_category_2(struct SN_env *z)
static const symbol s_2_0[3]
static const symbol s_3_47[12]
static const symbol s_3_36[12]
static const symbol s_3_21[9]
static const symbol s_3_49[12]
static const symbol s_3_11[6]
static const symbol s_3_4[12]
static const symbol s_3_76[15]
static const symbol s_3_12[9]
static const symbol s_0_8[9]
static const symbol s_3_57[9]
static const symbol s_3_62[9]
static const symbol s_3_48[9]
static const symbol s_3_24[12]
static const symbol s_3_28[6]
static const struct among a_1[3]
static const symbol s_0_13[6]
static const symbol s_3_71[3]
static const symbol s_1[]
static const symbol s_3_18[12]
static const symbol s_3_82[12]
static const symbol s_1_2[3]
static const symbol s_0_7[6]
static const struct among a_2[3]
static const symbol s_3_72[6]
static const symbol s_2_2[3]
static const symbol s_3_37[12]
static const symbol s_3_13[9]
static const symbol s_1_0[3]
static const symbol s_0_6[6]
static const symbol s_3_25[9]
static const symbol s_3_52[12]
static const symbol s_1_1[3]
static const symbol s_3_34[9]
static const symbol s_3_26[12]
static const symbol s_3_23[9]
static const symbol s_3_51[15]
static const symbol s_3_30[9]
static const symbol s_0_14[18]
static const symbol s_0_10[18]
static const symbol s_3_73[6]
static const symbol s_3_69[12]
static const symbol s_3_79[6]
static const symbol s_3_85[12]
static const symbol s_3_80[6]
static const symbol s_3_40[9]
static const symbol s_3_2[12]
static const struct among a_0[17]
static const symbol s_5[]
static const symbol s_3_46[12]
static const symbol s_3_89[12]
static const symbol s_3_3[12]
static const symbol s_3_1[9]
static const symbol s_0_11[6]
static const symbol s_0[]
struct SN_env * nepali_UTF_8_create_env(void)
static const symbol s_3_63[12]
Definition: api.h:14
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
Definition: header.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 eq_s_b(struct SN_env *z, int s_size, const symbol *s)
Definition: utilities.c:220