isomorfeus-ferret 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +612 -0
  3. data/README.md +44 -0
  4. data/ext/isomorfeus_ferret_ext/benchmark.c +223 -0
  5. data/ext/isomorfeus_ferret_ext/benchmark.h +45 -0
  6. data/ext/isomorfeus_ferret_ext/benchmarks_all.h +25 -0
  7. data/ext/isomorfeus_ferret_ext/bm_bitvector.c +123 -0
  8. data/ext/isomorfeus_ferret_ext/bm_hash.c +118 -0
  9. data/ext/isomorfeus_ferret_ext/bm_micro_string.c +40 -0
  10. data/ext/isomorfeus_ferret_ext/bm_store.c +93 -0
  11. data/ext/isomorfeus_ferret_ext/email.rl +21 -0
  12. data/ext/isomorfeus_ferret_ext/extconf.rb +5 -0
  13. data/ext/isomorfeus_ferret_ext/fio_tmpfile.h +53 -0
  14. data/ext/isomorfeus_ferret_ext/frb_analysis.c +2577 -0
  15. data/ext/isomorfeus_ferret_ext/frb_index.c +3457 -0
  16. data/ext/isomorfeus_ferret_ext/frb_lang.c +9 -0
  17. data/ext/isomorfeus_ferret_ext/frb_lang.h +17 -0
  18. data/ext/isomorfeus_ferret_ext/frb_qparser.c +629 -0
  19. data/ext/isomorfeus_ferret_ext/frb_search.c +4460 -0
  20. data/ext/isomorfeus_ferret_ext/frb_store.c +515 -0
  21. data/ext/isomorfeus_ferret_ext/frb_threading.h +30 -0
  22. data/ext/isomorfeus_ferret_ext/frb_utils.c +1127 -0
  23. data/ext/isomorfeus_ferret_ext/frt_analysis.c +1644 -0
  24. data/ext/isomorfeus_ferret_ext/frt_analysis.h +247 -0
  25. data/ext/isomorfeus_ferret_ext/frt_array.c +124 -0
  26. data/ext/isomorfeus_ferret_ext/frt_array.h +54 -0
  27. data/ext/isomorfeus_ferret_ext/frt_bitvector.c +95 -0
  28. data/ext/isomorfeus_ferret_ext/frt_bitvector.h +586 -0
  29. data/ext/isomorfeus_ferret_ext/frt_compound_io.c +374 -0
  30. data/ext/isomorfeus_ferret_ext/frt_config.h +44 -0
  31. data/ext/isomorfeus_ferret_ext/frt_document.c +134 -0
  32. data/ext/isomorfeus_ferret_ext/frt_document.h +52 -0
  33. data/ext/isomorfeus_ferret_ext/frt_except.c +95 -0
  34. data/ext/isomorfeus_ferret_ext/frt_except.h +188 -0
  35. data/ext/isomorfeus_ferret_ext/frt_field_index.c +233 -0
  36. data/ext/isomorfeus_ferret_ext/frt_field_index.h +42 -0
  37. data/ext/isomorfeus_ferret_ext/frt_filter.c +157 -0
  38. data/ext/isomorfeus_ferret_ext/frt_fs_store.c +502 -0
  39. data/ext/isomorfeus_ferret_ext/frt_global.c +427 -0
  40. data/ext/isomorfeus_ferret_ext/frt_global.h +290 -0
  41. data/ext/isomorfeus_ferret_ext/frt_hash.c +518 -0
  42. data/ext/isomorfeus_ferret_ext/frt_hash.h +466 -0
  43. data/ext/isomorfeus_ferret_ext/frt_hashset.c +191 -0
  44. data/ext/isomorfeus_ferret_ext/frt_hashset.h +206 -0
  45. data/ext/isomorfeus_ferret_ext/frt_helper.c +62 -0
  46. data/ext/isomorfeus_ferret_ext/frt_helper.h +13 -0
  47. data/ext/isomorfeus_ferret_ext/frt_ind.c +353 -0
  48. data/ext/isomorfeus_ferret_ext/frt_ind.h +54 -0
  49. data/ext/isomorfeus_ferret_ext/frt_index.c +6377 -0
  50. data/ext/isomorfeus_ferret_ext/frt_index.h +880 -0
  51. data/ext/isomorfeus_ferret_ext/frt_lang.c +104 -0
  52. data/ext/isomorfeus_ferret_ext/frt_lang.h +44 -0
  53. data/ext/isomorfeus_ferret_ext/frt_mempool.c +87 -0
  54. data/ext/isomorfeus_ferret_ext/frt_mempool.h +33 -0
  55. data/ext/isomorfeus_ferret_ext/frt_multimapper.c +349 -0
  56. data/ext/isomorfeus_ferret_ext/frt_multimapper.h +52 -0
  57. data/ext/isomorfeus_ferret_ext/frt_posh.c +1006 -0
  58. data/ext/isomorfeus_ferret_ext/frt_posh.h +973 -0
  59. data/ext/isomorfeus_ferret_ext/frt_priorityqueue.c +147 -0
  60. data/ext/isomorfeus_ferret_ext/frt_priorityqueue.h +147 -0
  61. data/ext/isomorfeus_ferret_ext/frt_q_boolean.c +1612 -0
  62. data/ext/isomorfeus_ferret_ext/frt_q_const_score.c +157 -0
  63. data/ext/isomorfeus_ferret_ext/frt_q_filtered_query.c +209 -0
  64. data/ext/isomorfeus_ferret_ext/frt_q_fuzzy.c +281 -0
  65. data/ext/isomorfeus_ferret_ext/frt_q_match_all.c +147 -0
  66. data/ext/isomorfeus_ferret_ext/frt_q_multi_term.c +672 -0
  67. data/ext/isomorfeus_ferret_ext/frt_q_parser.c +3084 -0
  68. data/ext/isomorfeus_ferret_ext/frt_q_phrase.c +1182 -0
  69. data/ext/isomorfeus_ferret_ext/frt_q_prefix.c +98 -0
  70. data/ext/isomorfeus_ferret_ext/frt_q_range.c +665 -0
  71. data/ext/isomorfeus_ferret_ext/frt_q_span.c +2386 -0
  72. data/ext/isomorfeus_ferret_ext/frt_q_term.c +311 -0
  73. data/ext/isomorfeus_ferret_ext/frt_q_wildcard.c +166 -0
  74. data/ext/isomorfeus_ferret_ext/frt_ram_store.c +460 -0
  75. data/ext/isomorfeus_ferret_ext/frt_scanner.c +899 -0
  76. data/ext/isomorfeus_ferret_ext/frt_scanner.h +28 -0
  77. data/ext/isomorfeus_ferret_ext/frt_scanner_mb.c +6705 -0
  78. data/ext/isomorfeus_ferret_ext/frt_scanner_utf8.c +4419 -0
  79. data/ext/isomorfeus_ferret_ext/frt_search.c +1824 -0
  80. data/ext/isomorfeus_ferret_ext/frt_search.h +924 -0
  81. data/ext/isomorfeus_ferret_ext/frt_similarity.c +150 -0
  82. data/ext/isomorfeus_ferret_ext/frt_similarity.h +79 -0
  83. data/ext/isomorfeus_ferret_ext/frt_sort.c +796 -0
  84. data/ext/isomorfeus_ferret_ext/frt_stopwords.c +395 -0
  85. data/ext/isomorfeus_ferret_ext/frt_store.c +680 -0
  86. data/ext/isomorfeus_ferret_ext/frt_store.h +789 -0
  87. data/ext/isomorfeus_ferret_ext/frt_term_vectors.c +72 -0
  88. data/ext/isomorfeus_ferret_ext/frt_threading.h +23 -0
  89. data/ext/isomorfeus_ferret_ext/frt_win32.h +54 -0
  90. data/ext/isomorfeus_ferret_ext/isomorfeus_ferret.c +409 -0
  91. data/ext/isomorfeus_ferret_ext/isomorfeus_ferret.h +95 -0
  92. data/ext/isomorfeus_ferret_ext/libstemmer.c +93 -0
  93. data/ext/isomorfeus_ferret_ext/libstemmer.h +73 -0
  94. data/ext/isomorfeus_ferret_ext/q_parser.y +1366 -0
  95. data/ext/isomorfeus_ferret_ext/scanner.h +28 -0
  96. data/ext/isomorfeus_ferret_ext/scanner.in +43 -0
  97. data/ext/isomorfeus_ferret_ext/scanner.rl +84 -0
  98. data/ext/isomorfeus_ferret_ext/scanner_mb.rl +200 -0
  99. data/ext/isomorfeus_ferret_ext/scanner_utf8.rl +85 -0
  100. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.c +324 -0
  101. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_danish.h +7 -0
  102. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.c +610 -0
  103. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_dutch.h +6 -0
  104. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.c +1104 -0
  105. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_english.h +6 -0
  106. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.c +749 -0
  107. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_finnish.h +7 -0
  108. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.c +1233 -0
  109. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_french.h +6 -0
  110. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.c +490 -0
  111. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_german.h +6 -0
  112. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.c +1217 -0
  113. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_hungarian.h +7 -0
  114. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.c +1052 -0
  115. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_italian.h +6 -0
  116. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.c +283 -0
  117. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_norwegian.h +6 -0
  118. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.c +735 -0
  119. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_porter.h +6 -0
  120. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.c +1003 -0
  121. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_portuguese.h +7 -0
  122. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.c +1079 -0
  123. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_spanish.h +6 -0
  124. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.c +293 -0
  125. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_1_swedish.h +6 -0
  126. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.c +984 -0
  127. data/ext/isomorfeus_ferret_ext/stem_ISO_8859_2_romanian.h +6 -0
  128. data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.c +686 -0
  129. data/ext/isomorfeus_ferret_ext/stem_KOI8_R_russian.h +6 -0
  130. data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.c +325 -0
  131. data/ext/isomorfeus_ferret_ext/stem_UTF_8_danish.h +6 -0
  132. data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.c +620 -0
  133. data/ext/isomorfeus_ferret_ext/stem_UTF_8_dutch.h +6 -0
  134. data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.c +1111 -0
  135. data/ext/isomorfeus_ferret_ext/stem_UTF_8_english.h +6 -0
  136. data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.c +754 -0
  137. data/ext/isomorfeus_ferret_ext/stem_UTF_8_finnish.h +6 -0
  138. data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.c +1242 -0
  139. data/ext/isomorfeus_ferret_ext/stem_UTF_8_french.h +6 -0
  140. data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.c +495 -0
  141. data/ext/isomorfeus_ferret_ext/stem_UTF_8_german.h +6 -0
  142. data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.c +1220 -0
  143. data/ext/isomorfeus_ferret_ext/stem_UTF_8_hungarian.h +6 -0
  144. data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.c +1059 -0
  145. data/ext/isomorfeus_ferret_ext/stem_UTF_8_italian.h +6 -0
  146. data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.c +285 -0
  147. data/ext/isomorfeus_ferret_ext/stem_UTF_8_norwegian.h +6 -0
  148. data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.c +741 -0
  149. data/ext/isomorfeus_ferret_ext/stem_UTF_8_porter.h +6 -0
  150. data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.c +1009 -0
  151. data/ext/isomorfeus_ferret_ext/stem_UTF_8_portuguese.h +6 -0
  152. data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.c +990 -0
  153. data/ext/isomorfeus_ferret_ext/stem_UTF_8_romanian.h +6 -0
  154. data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.c +680 -0
  155. data/ext/isomorfeus_ferret_ext/stem_UTF_8_russian.h +6 -0
  156. data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.c +1083 -0
  157. data/ext/isomorfeus_ferret_ext/stem_UTF_8_spanish.h +6 -0
  158. data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.c +294 -0
  159. data/ext/isomorfeus_ferret_ext/stem_UTF_8_swedish.h +6 -0
  160. data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.c +2191 -0
  161. data/ext/isomorfeus_ferret_ext/stem_UTF_8_turkish.h +6 -0
  162. data/ext/isomorfeus_ferret_ext/stem_api.c +66 -0
  163. data/ext/isomorfeus_ferret_ext/stem_api.h +26 -0
  164. data/ext/isomorfeus_ferret_ext/stem_header.h +57 -0
  165. data/ext/isomorfeus_ferret_ext/stem_modules.h +190 -0
  166. data/ext/isomorfeus_ferret_ext/stem_modules.txt +50 -0
  167. data/ext/isomorfeus_ferret_ext/stem_utilities.c +478 -0
  168. data/ext/isomorfeus_ferret_ext/test.c +850 -0
  169. data/ext/isomorfeus_ferret_ext/test.h +416 -0
  170. data/ext/isomorfeus_ferret_ext/test_1710.c +63 -0
  171. data/ext/isomorfeus_ferret_ext/test_analysis.c +1221 -0
  172. data/ext/isomorfeus_ferret_ext/test_array.c +272 -0
  173. data/ext/isomorfeus_ferret_ext/test_bitvector.c +600 -0
  174. data/ext/isomorfeus_ferret_ext/test_compound_io.c +170 -0
  175. data/ext/isomorfeus_ferret_ext/test_document.c +156 -0
  176. data/ext/isomorfeus_ferret_ext/test_except.c +244 -0
  177. data/ext/isomorfeus_ferret_ext/test_fields.c +522 -0
  178. data/ext/isomorfeus_ferret_ext/test_file_deleter.c +185 -0
  179. data/ext/isomorfeus_ferret_ext/test_filter.c +331 -0
  180. data/ext/isomorfeus_ferret_ext/test_fs_store.c +25 -0
  181. data/ext/isomorfeus_ferret_ext/test_global.c +299 -0
  182. data/ext/isomorfeus_ferret_ext/test_hash.c +485 -0
  183. data/ext/isomorfeus_ferret_ext/test_hashset.c +288 -0
  184. data/ext/isomorfeus_ferret_ext/test_helper.c +47 -0
  185. data/ext/isomorfeus_ferret_ext/test_highlighter.c +548 -0
  186. data/ext/isomorfeus_ferret_ext/test_index.c +2323 -0
  187. data/ext/isomorfeus_ferret_ext/test_lang.c +74 -0
  188. data/ext/isomorfeus_ferret_ext/test_mempool.c +102 -0
  189. data/ext/isomorfeus_ferret_ext/test_multimapper.c +64 -0
  190. data/ext/isomorfeus_ferret_ext/test_priorityqueue.c +213 -0
  191. data/ext/isomorfeus_ferret_ext/test_q_const_score.c +84 -0
  192. data/ext/isomorfeus_ferret_ext/test_q_filtered.c +61 -0
  193. data/ext/isomorfeus_ferret_ext/test_q_fuzzy.c +241 -0
  194. data/ext/isomorfeus_ferret_ext/test_q_parser.c +464 -0
  195. data/ext/isomorfeus_ferret_ext/test_q_span.c +575 -0
  196. data/ext/isomorfeus_ferret_ext/test_ram_store.c +77 -0
  197. data/ext/isomorfeus_ferret_ext/test_search.c +1874 -0
  198. data/ext/isomorfeus_ferret_ext/test_segments.c +167 -0
  199. data/ext/isomorfeus_ferret_ext/test_similarity.c +25 -0
  200. data/ext/isomorfeus_ferret_ext/test_sort.c +333 -0
  201. data/ext/isomorfeus_ferret_ext/test_store.c +591 -0
  202. data/ext/isomorfeus_ferret_ext/test_store.h +3 -0
  203. data/ext/isomorfeus_ferret_ext/test_term.c +351 -0
  204. data/ext/isomorfeus_ferret_ext/test_term_vectors.c +373 -0
  205. data/ext/isomorfeus_ferret_ext/test_test.c +83 -0
  206. data/ext/isomorfeus_ferret_ext/test_threading.c +188 -0
  207. data/ext/isomorfeus_ferret_ext/testhelper.c +561 -0
  208. data/ext/isomorfeus_ferret_ext/testhelper.h +25 -0
  209. data/ext/isomorfeus_ferret_ext/tests_all.h +87 -0
  210. data/ext/isomorfeus_ferret_ext/uchar-ucs4.rl +1854 -0
  211. data/ext/isomorfeus_ferret_ext/uchar-utf8.rl +1999 -0
  212. data/ext/isomorfeus_ferret_ext/url.rl +27 -0
  213. data/ext/isomorfeus_ferret_ext/word_list.h +15156 -0
  214. data/lib/isomorfeus/ferret/document.rb +132 -0
  215. data/lib/isomorfeus/ferret/field_symbol.rb +85 -0
  216. data/lib/isomorfeus/ferret/index/field_infos.rb +48 -0
  217. data/lib/isomorfeus/ferret/index/index.rb +970 -0
  218. data/lib/isomorfeus/ferret/monitor.rb +323 -0
  219. data/lib/isomorfeus/ferret/stdlib_patches.rb +151 -0
  220. data/lib/isomorfeus/ferret/version.rb +5 -0
  221. data/lib/isomorfeus-ferret.rb +8 -0
  222. metadata +307 -0
@@ -0,0 +1,735 @@
1
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
2
+
3
+ #include "stem_header.h"
4
+
5
+ extern int porter_ISO_8859_1_stem(struct SN_env * z);
6
+
7
+ static int r_Step_5b(struct SN_env * z);
8
+ static int r_Step_5a(struct SN_env * z);
9
+ static int r_Step_4(struct SN_env * z);
10
+ static int r_Step_3(struct SN_env * z);
11
+ static int r_Step_2(struct SN_env * z);
12
+ static int r_Step_1c(struct SN_env * z);
13
+ static int r_Step_1b(struct SN_env * z);
14
+ static int r_Step_1a(struct SN_env * z);
15
+ static int r_R2(struct SN_env * z);
16
+ static int r_R1(struct SN_env * z);
17
+ static int r_shortv(struct SN_env * z);
18
+
19
+ extern struct SN_env * porter_ISO_8859_1_create_env(void);
20
+ extern void porter_ISO_8859_1_close_env(struct SN_env * z);
21
+
22
+ static const symbol s_0_0[1] = { 's' };
23
+ static const symbol s_0_1[3] = { 'i', 'e', 's' };
24
+ static const symbol s_0_2[4] = { 's', 's', 'e', 's' };
25
+ static const symbol s_0_3[2] = { 's', 's' };
26
+
27
+ static const struct among a_0[4] =
28
+ {
29
+ /* 0 */ { 1, s_0_0, -1, 3, 0},
30
+ /* 1 */ { 3, s_0_1, 0, 2, 0},
31
+ /* 2 */ { 4, s_0_2, 0, 1, 0},
32
+ /* 3 */ { 2, s_0_3, 0, -1, 0}
33
+ };
34
+
35
+ static const symbol s_1_1[2] = { 'b', 'b' };
36
+ static const symbol s_1_2[2] = { 'd', 'd' };
37
+ static const symbol s_1_3[2] = { 'f', 'f' };
38
+ static const symbol s_1_4[2] = { 'g', 'g' };
39
+ static const symbol s_1_5[2] = { 'b', 'l' };
40
+ static const symbol s_1_6[2] = { 'm', 'm' };
41
+ static const symbol s_1_7[2] = { 'n', 'n' };
42
+ static const symbol s_1_8[2] = { 'p', 'p' };
43
+ static const symbol s_1_9[2] = { 'r', 'r' };
44
+ static const symbol s_1_10[2] = { 'a', 't' };
45
+ static const symbol s_1_11[2] = { 't', 't' };
46
+ static const symbol s_1_12[2] = { 'i', 'z' };
47
+
48
+ static const struct among a_1[13] =
49
+ {
50
+ /* 0 */ { 0, 0, -1, 3, 0},
51
+ /* 1 */ { 2, s_1_1, 0, 2, 0},
52
+ /* 2 */ { 2, s_1_2, 0, 2, 0},
53
+ /* 3 */ { 2, s_1_3, 0, 2, 0},
54
+ /* 4 */ { 2, s_1_4, 0, 2, 0},
55
+ /* 5 */ { 2, s_1_5, 0, 1, 0},
56
+ /* 6 */ { 2, s_1_6, 0, 2, 0},
57
+ /* 7 */ { 2, s_1_7, 0, 2, 0},
58
+ /* 8 */ { 2, s_1_8, 0, 2, 0},
59
+ /* 9 */ { 2, s_1_9, 0, 2, 0},
60
+ /* 10 */ { 2, s_1_10, 0, 1, 0},
61
+ /* 11 */ { 2, s_1_11, 0, 2, 0},
62
+ /* 12 */ { 2, s_1_12, 0, 1, 0}
63
+ };
64
+
65
+ static const symbol s_2_0[2] = { 'e', 'd' };
66
+ static const symbol s_2_1[3] = { 'e', 'e', 'd' };
67
+ static const symbol s_2_2[3] = { 'i', 'n', 'g' };
68
+
69
+ static const struct among a_2[3] =
70
+ {
71
+ /* 0 */ { 2, s_2_0, -1, 2, 0},
72
+ /* 1 */ { 3, s_2_1, 0, 1, 0},
73
+ /* 2 */ { 3, s_2_2, -1, 2, 0}
74
+ };
75
+
76
+ static const symbol s_3_0[4] = { 'a', 'n', 'c', 'i' };
77
+ static const symbol s_3_1[4] = { 'e', 'n', 'c', 'i' };
78
+ static const symbol s_3_2[4] = { 'a', 'b', 'l', 'i' };
79
+ static const symbol s_3_3[3] = { 'e', 'l', 'i' };
80
+ static const symbol s_3_4[4] = { 'a', 'l', 'l', 'i' };
81
+ static const symbol s_3_5[5] = { 'o', 'u', 's', 'l', 'i' };
82
+ static const symbol s_3_6[5] = { 'e', 'n', 't', 'l', 'i' };
83
+ static const symbol s_3_7[5] = { 'a', 'l', 'i', 't', 'i' };
84
+ static const symbol s_3_8[6] = { 'b', 'i', 'l', 'i', 't', 'i' };
85
+ static const symbol s_3_9[5] = { 'i', 'v', 'i', 't', 'i' };
86
+ static const symbol s_3_10[6] = { 't', 'i', 'o', 'n', 'a', 'l' };
87
+ static const symbol s_3_11[7] = { 'a', 't', 'i', 'o', 'n', 'a', 'l' };
88
+ static const symbol s_3_12[5] = { 'a', 'l', 'i', 's', 'm' };
89
+ static const symbol s_3_13[5] = { 'a', 't', 'i', 'o', 'n' };
90
+ static const symbol s_3_14[7] = { 'i', 'z', 'a', 't', 'i', 'o', 'n' };
91
+ static const symbol s_3_15[4] = { 'i', 'z', 'e', 'r' };
92
+ static const symbol s_3_16[4] = { 'a', 't', 'o', 'r' };
93
+ static const symbol s_3_17[7] = { 'i', 'v', 'e', 'n', 'e', 's', 's' };
94
+ static const symbol s_3_18[7] = { 'f', 'u', 'l', 'n', 'e', 's', 's' };
95
+ static const symbol s_3_19[7] = { 'o', 'u', 's', 'n', 'e', 's', 's' };
96
+
97
+ static const struct among a_3[20] =
98
+ {
99
+ /* 0 */ { 4, s_3_0, -1, 3, 0},
100
+ /* 1 */ { 4, s_3_1, -1, 2, 0},
101
+ /* 2 */ { 4, s_3_2, -1, 4, 0},
102
+ /* 3 */ { 3, s_3_3, -1, 6, 0},
103
+ /* 4 */ { 4, s_3_4, -1, 9, 0},
104
+ /* 5 */ { 5, s_3_5, -1, 12, 0},
105
+ /* 6 */ { 5, s_3_6, -1, 5, 0},
106
+ /* 7 */ { 5, s_3_7, -1, 10, 0},
107
+ /* 8 */ { 6, s_3_8, -1, 14, 0},
108
+ /* 9 */ { 5, s_3_9, -1, 13, 0},
109
+ /* 10 */ { 6, s_3_10, -1, 1, 0},
110
+ /* 11 */ { 7, s_3_11, 10, 8, 0},
111
+ /* 12 */ { 5, s_3_12, -1, 10, 0},
112
+ /* 13 */ { 5, s_3_13, -1, 8, 0},
113
+ /* 14 */ { 7, s_3_14, 13, 7, 0},
114
+ /* 15 */ { 4, s_3_15, -1, 7, 0},
115
+ /* 16 */ { 4, s_3_16, -1, 8, 0},
116
+ /* 17 */ { 7, s_3_17, -1, 13, 0},
117
+ /* 18 */ { 7, s_3_18, -1, 11, 0},
118
+ /* 19 */ { 7, s_3_19, -1, 12, 0}
119
+ };
120
+
121
+ static const symbol s_4_0[5] = { 'i', 'c', 'a', 't', 'e' };
122
+ static const symbol s_4_1[5] = { 'a', 't', 'i', 'v', 'e' };
123
+ static const symbol s_4_2[5] = { 'a', 'l', 'i', 'z', 'e' };
124
+ static const symbol s_4_3[5] = { 'i', 'c', 'i', 't', 'i' };
125
+ static const symbol s_4_4[4] = { 'i', 'c', 'a', 'l' };
126
+ static const symbol s_4_5[3] = { 'f', 'u', 'l' };
127
+ static const symbol s_4_6[4] = { 'n', 'e', 's', 's' };
128
+
129
+ static const struct among a_4[7] =
130
+ {
131
+ /* 0 */ { 5, s_4_0, -1, 2, 0},
132
+ /* 1 */ { 5, s_4_1, -1, 3, 0},
133
+ /* 2 */ { 5, s_4_2, -1, 1, 0},
134
+ /* 3 */ { 5, s_4_3, -1, 2, 0},
135
+ /* 4 */ { 4, s_4_4, -1, 2, 0},
136
+ /* 5 */ { 3, s_4_5, -1, 3, 0},
137
+ /* 6 */ { 4, s_4_6, -1, 3, 0}
138
+ };
139
+
140
+ static const symbol s_5_0[2] = { 'i', 'c' };
141
+ static const symbol s_5_1[4] = { 'a', 'n', 'c', 'e' };
142
+ static const symbol s_5_2[4] = { 'e', 'n', 'c', 'e' };
143
+ static const symbol s_5_3[4] = { 'a', 'b', 'l', 'e' };
144
+ static const symbol s_5_4[4] = { 'i', 'b', 'l', 'e' };
145
+ static const symbol s_5_5[3] = { 'a', 't', 'e' };
146
+ static const symbol s_5_6[3] = { 'i', 'v', 'e' };
147
+ static const symbol s_5_7[3] = { 'i', 'z', 'e' };
148
+ static const symbol s_5_8[3] = { 'i', 't', 'i' };
149
+ static const symbol s_5_9[2] = { 'a', 'l' };
150
+ static const symbol s_5_10[3] = { 'i', 's', 'm' };
151
+ static const symbol s_5_11[3] = { 'i', 'o', 'n' };
152
+ static const symbol s_5_12[2] = { 'e', 'r' };
153
+ static const symbol s_5_13[3] = { 'o', 'u', 's' };
154
+ static const symbol s_5_14[3] = { 'a', 'n', 't' };
155
+ static const symbol s_5_15[3] = { 'e', 'n', 't' };
156
+ static const symbol s_5_16[4] = { 'm', 'e', 'n', 't' };
157
+ static const symbol s_5_17[5] = { 'e', 'm', 'e', 'n', 't' };
158
+ static const symbol s_5_18[2] = { 'o', 'u' };
159
+
160
+ static const struct among a_5[19] =
161
+ {
162
+ /* 0 */ { 2, s_5_0, -1, 1, 0},
163
+ /* 1 */ { 4, s_5_1, -1, 1, 0},
164
+ /* 2 */ { 4, s_5_2, -1, 1, 0},
165
+ /* 3 */ { 4, s_5_3, -1, 1, 0},
166
+ /* 4 */ { 4, s_5_4, -1, 1, 0},
167
+ /* 5 */ { 3, s_5_5, -1, 1, 0},
168
+ /* 6 */ { 3, s_5_6, -1, 1, 0},
169
+ /* 7 */ { 3, s_5_7, -1, 1, 0},
170
+ /* 8 */ { 3, s_5_8, -1, 1, 0},
171
+ /* 9 */ { 2, s_5_9, -1, 1, 0},
172
+ /* 10 */ { 3, s_5_10, -1, 1, 0},
173
+ /* 11 */ { 3, s_5_11, -1, 2, 0},
174
+ /* 12 */ { 2, s_5_12, -1, 1, 0},
175
+ /* 13 */ { 3, s_5_13, -1, 1, 0},
176
+ /* 14 */ { 3, s_5_14, -1, 1, 0},
177
+ /* 15 */ { 3, s_5_15, -1, 1, 0},
178
+ /* 16 */ { 4, s_5_16, 15, 1, 0},
179
+ /* 17 */ { 5, s_5_17, 16, 1, 0},
180
+ /* 18 */ { 2, s_5_18, -1, 1, 0}
181
+ };
182
+
183
+ static const unsigned char g_v[] = { 17, 65, 16, 1 };
184
+
185
+ static const unsigned char g_v_WXY[] = { 1, 17, 65, 208, 1 };
186
+
187
+ static const symbol s_0[] = { 's', 's' };
188
+ static const symbol s_1[] = { 'i' };
189
+ static const symbol s_2[] = { 'e', 'e' };
190
+ static const symbol s_3[] = { 'e' };
191
+ static const symbol s_4[] = { 'e' };
192
+ static const symbol s_5[] = { 'y' };
193
+ static const symbol s_6[] = { 'Y' };
194
+ static const symbol s_7[] = { 'i' };
195
+ static const symbol s_8[] = { 't', 'i', 'o', 'n' };
196
+ static const symbol s_9[] = { 'e', 'n', 'c', 'e' };
197
+ static const symbol s_10[] = { 'a', 'n', 'c', 'e' };
198
+ static const symbol s_11[] = { 'a', 'b', 'l', 'e' };
199
+ static const symbol s_12[] = { 'e', 'n', 't' };
200
+ static const symbol s_13[] = { 'e' };
201
+ static const symbol s_14[] = { 'i', 'z', 'e' };
202
+ static const symbol s_15[] = { 'a', 't', 'e' };
203
+ static const symbol s_16[] = { 'a', 'l' };
204
+ static const symbol s_17[] = { 'a', 'l' };
205
+ static const symbol s_18[] = { 'f', 'u', 'l' };
206
+ static const symbol s_19[] = { 'o', 'u', 's' };
207
+ static const symbol s_20[] = { 'i', 'v', 'e' };
208
+ static const symbol s_21[] = { 'b', 'l', 'e' };
209
+ static const symbol s_22[] = { 'a', 'l' };
210
+ static const symbol s_23[] = { 'i', 'c' };
211
+ static const symbol s_24[] = { 's' };
212
+ static const symbol s_25[] = { 't' };
213
+ static const symbol s_26[] = { 'e' };
214
+ static const symbol s_27[] = { 'l' };
215
+ static const symbol s_28[] = { 'l' };
216
+ static const symbol s_29[] = { 'y' };
217
+ static const symbol s_30[] = { 'Y' };
218
+ static const symbol s_31[] = { 'y' };
219
+ static const symbol s_32[] = { 'Y' };
220
+ static const symbol s_33[] = { 'Y' };
221
+ static const symbol s_34[] = { 'y' };
222
+
223
+ static int r_shortv(struct SN_env * z) {
224
+ if (out_grouping_b(z, g_v_WXY, 89, 121, 0)) return 0;
225
+ if (in_grouping_b(z, g_v, 97, 121, 0)) return 0;
226
+ if (out_grouping_b(z, g_v, 97, 121, 0)) return 0;
227
+ return 1;
228
+ }
229
+
230
+ static int r_R1(struct SN_env * z) {
231
+ if (!(z->I[0] <= z->c)) return 0;
232
+ return 1;
233
+ }
234
+
235
+ static int r_R2(struct SN_env * z) {
236
+ if (!(z->I[1] <= z->c)) return 0;
237
+ return 1;
238
+ }
239
+
240
+ static int r_Step_1a(struct SN_env * z) {
241
+ int among_var;
242
+ z->ket = z->c; /* [, line 25 */
243
+ if (z->c <= z->lb || z->p[z->c - 1] != 115) return 0;
244
+ among_var = find_among_b(z, a_0, 4); /* substring, line 25 */
245
+ if (!(among_var)) return 0;
246
+ z->bra = z->c; /* ], line 25 */
247
+ switch(among_var) {
248
+ case 0: return 0;
249
+ case 1:
250
+ { int ret = slice_from_s(z, 2, s_0); /* <-, line 26 */
251
+ if (ret < 0) return ret;
252
+ }
253
+ break;
254
+ case 2:
255
+ { int ret = slice_from_s(z, 1, s_1); /* <-, line 27 */
256
+ if (ret < 0) return ret;
257
+ }
258
+ break;
259
+ case 3:
260
+ { int ret = slice_del(z); /* delete, line 29 */
261
+ if (ret < 0) return ret;
262
+ }
263
+ break;
264
+ }
265
+ return 1;
266
+ }
267
+
268
+ static int r_Step_1b(struct SN_env * z) {
269
+ int among_var;
270
+ z->ket = z->c; /* [, line 34 */
271
+ if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 100 && z->p[z->c - 1] != 103)) return 0;
272
+ among_var = find_among_b(z, a_2, 3); /* substring, line 34 */
273
+ if (!(among_var)) return 0;
274
+ z->bra = z->c; /* ], line 34 */
275
+ switch(among_var) {
276
+ case 0: return 0;
277
+ case 1:
278
+ { int ret = r_R1(z);
279
+ if (ret == 0) return 0; /* call R1, line 35 */
280
+ if (ret < 0) return ret;
281
+ }
282
+ { int ret = slice_from_s(z, 2, s_2); /* <-, line 35 */
283
+ if (ret < 0) return ret;
284
+ }
285
+ break;
286
+ case 2:
287
+ { int m_test = z->l - z->c; /* test, line 38 */
288
+ { /* gopast */ /* grouping v, line 38 */
289
+ int ret = out_grouping_b(z, g_v, 97, 121, 1);
290
+ if (ret < 0) return 0;
291
+ z->c -= ret;
292
+ }
293
+ z->c = z->l - m_test;
294
+ }
295
+ { int ret = slice_del(z); /* delete, line 38 */
296
+ if (ret < 0) return ret;
297
+ }
298
+ { int m_test = z->l - z->c; /* test, line 39 */
299
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((68514004 >> (z->p[z->c - 1] & 0x1f)) & 1)) among_var = 3; else
300
+ among_var = find_among_b(z, a_1, 13); /* substring, line 39 */
301
+ if (!(among_var)) return 0;
302
+ z->c = z->l - m_test;
303
+ }
304
+ switch(among_var) {
305
+ case 0: return 0;
306
+ case 1:
307
+ { int c_keep = z->c;
308
+ int ret = insert_s(z, z->c, z->c, 1, s_3); /* <+, line 41 */
309
+ z->c = c_keep;
310
+ if (ret < 0) return ret;
311
+ }
312
+ break;
313
+ case 2:
314
+ z->ket = z->c; /* [, line 44 */
315
+ if (z->c <= z->lb) return 0;
316
+ z->c--; /* next, line 44 */
317
+ z->bra = z->c; /* ], line 44 */
318
+ { int ret = slice_del(z); /* delete, line 44 */
319
+ if (ret < 0) return ret;
320
+ }
321
+ break;
322
+ case 3:
323
+ if (z->c != z->I[0]) return 0; /* atmark, line 45 */
324
+ { int m_test = z->l - z->c; /* test, line 45 */
325
+ { int ret = r_shortv(z);
326
+ if (ret == 0) return 0; /* call shortv, line 45 */
327
+ if (ret < 0) return ret;
328
+ }
329
+ z->c = z->l - m_test;
330
+ }
331
+ { int c_keep = z->c;
332
+ int ret = insert_s(z, z->c, z->c, 1, s_4); /* <+, line 45 */
333
+ z->c = c_keep;
334
+ if (ret < 0) return ret;
335
+ }
336
+ break;
337
+ }
338
+ break;
339
+ }
340
+ return 1;
341
+ }
342
+
343
+ static int r_Step_1c(struct SN_env * z) {
344
+ z->ket = z->c; /* [, line 52 */
345
+ { int m1 = z->l - z->c; (void)m1; /* or, line 52 */
346
+ if (!(eq_s_b(z, 1, s_5))) goto lab1;
347
+ goto lab0;
348
+ lab1:
349
+ z->c = z->l - m1;
350
+ if (!(eq_s_b(z, 1, s_6))) return 0;
351
+ }
352
+ lab0:
353
+ z->bra = z->c; /* ], line 52 */
354
+ { /* gopast */ /* grouping v, line 53 */
355
+ int ret = out_grouping_b(z, g_v, 97, 121, 1);
356
+ if (ret < 0) return 0;
357
+ z->c -= ret;
358
+ }
359
+ { int ret = slice_from_s(z, 1, s_7); /* <-, line 54 */
360
+ if (ret < 0) return ret;
361
+ }
362
+ return 1;
363
+ }
364
+
365
+ static int r_Step_2(struct SN_env * z) {
366
+ int among_var;
367
+ z->ket = z->c; /* [, line 58 */
368
+ if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((815616 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
369
+ among_var = find_among_b(z, a_3, 20); /* substring, line 58 */
370
+ if (!(among_var)) return 0;
371
+ z->bra = z->c; /* ], line 58 */
372
+ { int ret = r_R1(z);
373
+ if (ret == 0) return 0; /* call R1, line 58 */
374
+ if (ret < 0) return ret;
375
+ }
376
+ switch(among_var) {
377
+ case 0: return 0;
378
+ case 1:
379
+ { int ret = slice_from_s(z, 4, s_8); /* <-, line 59 */
380
+ if (ret < 0) return ret;
381
+ }
382
+ break;
383
+ case 2:
384
+ { int ret = slice_from_s(z, 4, s_9); /* <-, line 60 */
385
+ if (ret < 0) return ret;
386
+ }
387
+ break;
388
+ case 3:
389
+ { int ret = slice_from_s(z, 4, s_10); /* <-, line 61 */
390
+ if (ret < 0) return ret;
391
+ }
392
+ break;
393
+ case 4:
394
+ { int ret = slice_from_s(z, 4, s_11); /* <-, line 62 */
395
+ if (ret < 0) return ret;
396
+ }
397
+ break;
398
+ case 5:
399
+ { int ret = slice_from_s(z, 3, s_12); /* <-, line 63 */
400
+ if (ret < 0) return ret;
401
+ }
402
+ break;
403
+ case 6:
404
+ { int ret = slice_from_s(z, 1, s_13); /* <-, line 64 */
405
+ if (ret < 0) return ret;
406
+ }
407
+ break;
408
+ case 7:
409
+ { int ret = slice_from_s(z, 3, s_14); /* <-, line 66 */
410
+ if (ret < 0) return ret;
411
+ }
412
+ break;
413
+ case 8:
414
+ { int ret = slice_from_s(z, 3, s_15); /* <-, line 68 */
415
+ if (ret < 0) return ret;
416
+ }
417
+ break;
418
+ case 9:
419
+ { int ret = slice_from_s(z, 2, s_16); /* <-, line 69 */
420
+ if (ret < 0) return ret;
421
+ }
422
+ break;
423
+ case 10:
424
+ { int ret = slice_from_s(z, 2, s_17); /* <-, line 71 */
425
+ if (ret < 0) return ret;
426
+ }
427
+ break;
428
+ case 11:
429
+ { int ret = slice_from_s(z, 3, s_18); /* <-, line 72 */
430
+ if (ret < 0) return ret;
431
+ }
432
+ break;
433
+ case 12:
434
+ { int ret = slice_from_s(z, 3, s_19); /* <-, line 74 */
435
+ if (ret < 0) return ret;
436
+ }
437
+ break;
438
+ case 13:
439
+ { int ret = slice_from_s(z, 3, s_20); /* <-, line 76 */
440
+ if (ret < 0) return ret;
441
+ }
442
+ break;
443
+ case 14:
444
+ { int ret = slice_from_s(z, 3, s_21); /* <-, line 77 */
445
+ if (ret < 0) return ret;
446
+ }
447
+ break;
448
+ }
449
+ return 1;
450
+ }
451
+
452
+ static int r_Step_3(struct SN_env * z) {
453
+ int among_var;
454
+ z->ket = z->c; /* [, line 82 */
455
+ if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((528928 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
456
+ among_var = find_among_b(z, a_4, 7); /* substring, line 82 */
457
+ if (!(among_var)) return 0;
458
+ z->bra = z->c; /* ], line 82 */
459
+ { int ret = r_R1(z);
460
+ if (ret == 0) return 0; /* call R1, line 82 */
461
+ if (ret < 0) return ret;
462
+ }
463
+ switch(among_var) {
464
+ case 0: return 0;
465
+ case 1:
466
+ { int ret = slice_from_s(z, 2, s_22); /* <-, line 83 */
467
+ if (ret < 0) return ret;
468
+ }
469
+ break;
470
+ case 2:
471
+ { int ret = slice_from_s(z, 2, s_23); /* <-, line 85 */
472
+ if (ret < 0) return ret;
473
+ }
474
+ break;
475
+ case 3:
476
+ { int ret = slice_del(z); /* delete, line 87 */
477
+ if (ret < 0) return ret;
478
+ }
479
+ break;
480
+ }
481
+ return 1;
482
+ }
483
+
484
+ static int r_Step_4(struct SN_env * z) {
485
+ int among_var;
486
+ z->ket = z->c; /* [, line 92 */
487
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((3961384 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
488
+ among_var = find_among_b(z, a_5, 19); /* substring, line 92 */
489
+ if (!(among_var)) return 0;
490
+ z->bra = z->c; /* ], line 92 */
491
+ { int ret = r_R2(z);
492
+ if (ret == 0) return 0; /* call R2, line 92 */
493
+ if (ret < 0) return ret;
494
+ }
495
+ switch(among_var) {
496
+ case 0: return 0;
497
+ case 1:
498
+ { int ret = slice_del(z); /* delete, line 95 */
499
+ if (ret < 0) return ret;
500
+ }
501
+ break;
502
+ case 2:
503
+ { int m1 = z->l - z->c; (void)m1; /* or, line 96 */
504
+ if (!(eq_s_b(z, 1, s_24))) goto lab1;
505
+ goto lab0;
506
+ lab1:
507
+ z->c = z->l - m1;
508
+ if (!(eq_s_b(z, 1, s_25))) return 0;
509
+ }
510
+ lab0:
511
+ { int ret = slice_del(z); /* delete, line 96 */
512
+ if (ret < 0) return ret;
513
+ }
514
+ break;
515
+ }
516
+ return 1;
517
+ }
518
+
519
+ static int r_Step_5a(struct SN_env * z) {
520
+ z->ket = z->c; /* [, line 101 */
521
+ if (!(eq_s_b(z, 1, s_26))) return 0;
522
+ z->bra = z->c; /* ], line 101 */
523
+ { int m1 = z->l - z->c; (void)m1; /* or, line 102 */
524
+ { int ret = r_R2(z);
525
+ if (ret == 0) goto lab1; /* call R2, line 102 */
526
+ if (ret < 0) return ret;
527
+ }
528
+ goto lab0;
529
+ lab1:
530
+ z->c = z->l - m1;
531
+ { int ret = r_R1(z);
532
+ if (ret == 0) return 0; /* call R1, line 102 */
533
+ if (ret < 0) return ret;
534
+ }
535
+ { int m2 = z->l - z->c; (void)m2; /* not, line 102 */
536
+ { int ret = r_shortv(z);
537
+ if (ret == 0) goto lab2; /* call shortv, line 102 */
538
+ if (ret < 0) return ret;
539
+ }
540
+ return 0;
541
+ lab2:
542
+ z->c = z->l - m2;
543
+ }
544
+ }
545
+ lab0:
546
+ { int ret = slice_del(z); /* delete, line 103 */
547
+ if (ret < 0) return ret;
548
+ }
549
+ return 1;
550
+ }
551
+
552
+ static int r_Step_5b(struct SN_env * z) {
553
+ z->ket = z->c; /* [, line 107 */
554
+ if (!(eq_s_b(z, 1, s_27))) return 0;
555
+ z->bra = z->c; /* ], line 107 */
556
+ { int ret = r_R2(z);
557
+ if (ret == 0) return 0; /* call R2, line 108 */
558
+ if (ret < 0) return ret;
559
+ }
560
+ if (!(eq_s_b(z, 1, s_28))) return 0;
561
+ { int ret = slice_del(z); /* delete, line 109 */
562
+ if (ret < 0) return ret;
563
+ }
564
+ return 1;
565
+ }
566
+
567
+ extern int porter_ISO_8859_1_stem(struct SN_env * z) {
568
+ z->B[0] = 0; /* unset Y_found, line 115 */
569
+ { int c1 = z->c; /* do, line 116 */
570
+ z->bra = z->c; /* [, line 116 */
571
+ if (!(eq_s(z, 1, s_29))) goto lab0;
572
+ z->ket = z->c; /* ], line 116 */
573
+ { int ret = slice_from_s(z, 1, s_30); /* <-, line 116 */
574
+ if (ret < 0) return ret;
575
+ }
576
+ z->B[0] = 1; /* set Y_found, line 116 */
577
+ lab0:
578
+ z->c = c1;
579
+ }
580
+ { int c2 = z->c; /* do, line 117 */
581
+ while(1) { /* repeat, line 117 */
582
+ int c3 = z->c;
583
+ while(1) { /* goto, line 117 */
584
+ int c4 = z->c;
585
+ if (in_grouping(z, g_v, 97, 121, 0)) goto lab3;
586
+ z->bra = z->c; /* [, line 117 */
587
+ if (!(eq_s(z, 1, s_31))) goto lab3;
588
+ z->ket = z->c; /* ], line 117 */
589
+ z->c = c4;
590
+ break;
591
+ lab3:
592
+ z->c = c4;
593
+ if (z->c >= z->l) goto lab2;
594
+ z->c++; /* goto, line 117 */
595
+ }
596
+ { int ret = slice_from_s(z, 1, s_32); /* <-, line 117 */
597
+ if (ret < 0) return ret;
598
+ }
599
+ z->B[0] = 1; /* set Y_found, line 117 */
600
+ continue;
601
+ lab2:
602
+ z->c = c3;
603
+ break;
604
+ }
605
+ z->c = c2;
606
+ }
607
+ z->I[0] = z->l;
608
+ z->I[1] = z->l;
609
+ { int c5 = z->c; /* do, line 121 */
610
+ { /* gopast */ /* grouping v, line 122 */
611
+ int ret = out_grouping(z, g_v, 97, 121, 1);
612
+ if (ret < 0) goto lab4;
613
+ z->c += ret;
614
+ }
615
+ { /* gopast */ /* non v, line 122 */
616
+ int ret = in_grouping(z, g_v, 97, 121, 1);
617
+ if (ret < 0) goto lab4;
618
+ z->c += ret;
619
+ }
620
+ z->I[0] = z->c; /* setmark p1, line 122 */
621
+ { /* gopast */ /* grouping v, line 123 */
622
+ int ret = out_grouping(z, g_v, 97, 121, 1);
623
+ if (ret < 0) goto lab4;
624
+ z->c += ret;
625
+ }
626
+ { /* gopast */ /* non v, line 123 */
627
+ int ret = in_grouping(z, g_v, 97, 121, 1);
628
+ if (ret < 0) goto lab4;
629
+ z->c += ret;
630
+ }
631
+ z->I[1] = z->c; /* setmark p2, line 123 */
632
+ lab4:
633
+ z->c = c5;
634
+ }
635
+ z->lb = z->c; z->c = z->l; /* backwards, line 126 */
636
+
637
+ { int m6 = z->l - z->c; (void)m6; /* do, line 127 */
638
+ { int ret = r_Step_1a(z);
639
+ if (ret == 0) goto lab5; /* call Step_1a, line 127 */
640
+ if (ret < 0) return ret;
641
+ }
642
+ lab5:
643
+ z->c = z->l - m6;
644
+ }
645
+ { int m7 = z->l - z->c; (void)m7; /* do, line 128 */
646
+ { int ret = r_Step_1b(z);
647
+ if (ret == 0) goto lab6; /* call Step_1b, line 128 */
648
+ if (ret < 0) return ret;
649
+ }
650
+ lab6:
651
+ z->c = z->l - m7;
652
+ }
653
+ { int m8 = z->l - z->c; (void)m8; /* do, line 129 */
654
+ { int ret = r_Step_1c(z);
655
+ if (ret == 0) goto lab7; /* call Step_1c, line 129 */
656
+ if (ret < 0) return ret;
657
+ }
658
+ lab7:
659
+ z->c = z->l - m8;
660
+ }
661
+ { int m9 = z->l - z->c; (void)m9; /* do, line 130 */
662
+ { int ret = r_Step_2(z);
663
+ if (ret == 0) goto lab8; /* call Step_2, line 130 */
664
+ if (ret < 0) return ret;
665
+ }
666
+ lab8:
667
+ z->c = z->l - m9;
668
+ }
669
+ { int m10 = z->l - z->c; (void)m10; /* do, line 131 */
670
+ { int ret = r_Step_3(z);
671
+ if (ret == 0) goto lab9; /* call Step_3, line 131 */
672
+ if (ret < 0) return ret;
673
+ }
674
+ lab9:
675
+ z->c = z->l - m10;
676
+ }
677
+ { int m11 = z->l - z->c; (void)m11; /* do, line 132 */
678
+ { int ret = r_Step_4(z);
679
+ if (ret == 0) goto lab10; /* call Step_4, line 132 */
680
+ if (ret < 0) return ret;
681
+ }
682
+ lab10:
683
+ z->c = z->l - m11;
684
+ }
685
+ { int m12 = z->l - z->c; (void)m12; /* do, line 133 */
686
+ { int ret = r_Step_5a(z);
687
+ if (ret == 0) goto lab11; /* call Step_5a, line 133 */
688
+ if (ret < 0) return ret;
689
+ }
690
+ lab11:
691
+ z->c = z->l - m12;
692
+ }
693
+ { int m13 = z->l - z->c; (void)m13; /* do, line 134 */
694
+ { int ret = r_Step_5b(z);
695
+ if (ret == 0) goto lab12; /* call Step_5b, line 134 */
696
+ if (ret < 0) return ret;
697
+ }
698
+ lab12:
699
+ z->c = z->l - m13;
700
+ }
701
+ z->c = z->lb;
702
+ { int c14 = z->c; /* do, line 137 */
703
+ if (!(z->B[0])) goto lab13; /* Boolean test Y_found, line 137 */
704
+ while(1) { /* repeat, line 137 */
705
+ int c15 = z->c;
706
+ while(1) { /* goto, line 137 */
707
+ int c16 = z->c;
708
+ z->bra = z->c; /* [, line 137 */
709
+ if (!(eq_s(z, 1, s_33))) goto lab15;
710
+ z->ket = z->c; /* ], line 137 */
711
+ z->c = c16;
712
+ break;
713
+ lab15:
714
+ z->c = c16;
715
+ if (z->c >= z->l) goto lab14;
716
+ z->c++; /* goto, line 137 */
717
+ }
718
+ { int ret = slice_from_s(z, 1, s_34); /* <-, line 137 */
719
+ if (ret < 0) return ret;
720
+ }
721
+ continue;
722
+ lab14:
723
+ z->c = c15;
724
+ break;
725
+ }
726
+ lab13:
727
+ z->c = c14;
728
+ }
729
+ return 1;
730
+ }
731
+
732
+ extern struct SN_env * porter_ISO_8859_1_create_env(void) { return SN_create_env(0, 2, 1); }
733
+
734
+ extern void porter_ISO_8859_1_close_env(struct SN_env * z) { SN_close_env(z, 0); }
735
+