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,741 @@
1
+ /* This file was generated automatically by the Snowball to ANSI C compiler */
2
+
3
+ #include "stem_header.h"
4
+
5
+ extern int porter_UTF_8_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_UTF_8_create_env(void);
20
+ extern void porter_UTF_8_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_U(z, g_v_WXY, 89, 121, 0)) return 0;
225
+ if (in_grouping_b_U(z, g_v, 97, 121, 0)) return 0;
226
+ if (out_grouping_b_U(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_U(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
+ { int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
316
+ if (ret < 0) return 0;
317
+ z->c = ret; /* next, line 44 */
318
+ }
319
+ z->bra = z->c; /* ], line 44 */
320
+ { int ret = slice_del(z); /* delete, line 44 */
321
+ if (ret < 0) return ret;
322
+ }
323
+ break;
324
+ case 3:
325
+ if (z->c != z->I[0]) return 0; /* atmark, line 45 */
326
+ { int m_test = z->l - z->c; /* test, line 45 */
327
+ { int ret = r_shortv(z);
328
+ if (ret == 0) return 0; /* call shortv, line 45 */
329
+ if (ret < 0) return ret;
330
+ }
331
+ z->c = z->l - m_test;
332
+ }
333
+ { int c_keep = z->c;
334
+ int ret = insert_s(z, z->c, z->c, 1, s_4); /* <+, line 45 */
335
+ z->c = c_keep;
336
+ if (ret < 0) return ret;
337
+ }
338
+ break;
339
+ }
340
+ break;
341
+ }
342
+ return 1;
343
+ }
344
+
345
+ static int r_Step_1c(struct SN_env * z) {
346
+ z->ket = z->c; /* [, line 52 */
347
+ { int m1 = z->l - z->c; (void)m1; /* or, line 52 */
348
+ if (!(eq_s_b(z, 1, s_5))) goto lab1;
349
+ goto lab0;
350
+ lab1:
351
+ z->c = z->l - m1;
352
+ if (!(eq_s_b(z, 1, s_6))) return 0;
353
+ }
354
+ lab0:
355
+ z->bra = z->c; /* ], line 52 */
356
+ { /* gopast */ /* grouping v, line 53 */
357
+ int ret = out_grouping_b_U(z, g_v, 97, 121, 1);
358
+ if (ret < 0) return 0;
359
+ z->c -= ret;
360
+ }
361
+ { int ret = slice_from_s(z, 1, s_7); /* <-, line 54 */
362
+ if (ret < 0) return ret;
363
+ }
364
+ return 1;
365
+ }
366
+
367
+ static int r_Step_2(struct SN_env * z) {
368
+ int among_var;
369
+ z->ket = z->c; /* [, line 58 */
370
+ if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((815616 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
371
+ among_var = find_among_b(z, a_3, 20); /* substring, line 58 */
372
+ if (!(among_var)) return 0;
373
+ z->bra = z->c; /* ], line 58 */
374
+ { int ret = r_R1(z);
375
+ if (ret == 0) return 0; /* call R1, line 58 */
376
+ if (ret < 0) return ret;
377
+ }
378
+ switch(among_var) {
379
+ case 0: return 0;
380
+ case 1:
381
+ { int ret = slice_from_s(z, 4, s_8); /* <-, line 59 */
382
+ if (ret < 0) return ret;
383
+ }
384
+ break;
385
+ case 2:
386
+ { int ret = slice_from_s(z, 4, s_9); /* <-, line 60 */
387
+ if (ret < 0) return ret;
388
+ }
389
+ break;
390
+ case 3:
391
+ { int ret = slice_from_s(z, 4, s_10); /* <-, line 61 */
392
+ if (ret < 0) return ret;
393
+ }
394
+ break;
395
+ case 4:
396
+ { int ret = slice_from_s(z, 4, s_11); /* <-, line 62 */
397
+ if (ret < 0) return ret;
398
+ }
399
+ break;
400
+ case 5:
401
+ { int ret = slice_from_s(z, 3, s_12); /* <-, line 63 */
402
+ if (ret < 0) return ret;
403
+ }
404
+ break;
405
+ case 6:
406
+ { int ret = slice_from_s(z, 1, s_13); /* <-, line 64 */
407
+ if (ret < 0) return ret;
408
+ }
409
+ break;
410
+ case 7:
411
+ { int ret = slice_from_s(z, 3, s_14); /* <-, line 66 */
412
+ if (ret < 0) return ret;
413
+ }
414
+ break;
415
+ case 8:
416
+ { int ret = slice_from_s(z, 3, s_15); /* <-, line 68 */
417
+ if (ret < 0) return ret;
418
+ }
419
+ break;
420
+ case 9:
421
+ { int ret = slice_from_s(z, 2, s_16); /* <-, line 69 */
422
+ if (ret < 0) return ret;
423
+ }
424
+ break;
425
+ case 10:
426
+ { int ret = slice_from_s(z, 2, s_17); /* <-, line 71 */
427
+ if (ret < 0) return ret;
428
+ }
429
+ break;
430
+ case 11:
431
+ { int ret = slice_from_s(z, 3, s_18); /* <-, line 72 */
432
+ if (ret < 0) return ret;
433
+ }
434
+ break;
435
+ case 12:
436
+ { int ret = slice_from_s(z, 3, s_19); /* <-, line 74 */
437
+ if (ret < 0) return ret;
438
+ }
439
+ break;
440
+ case 13:
441
+ { int ret = slice_from_s(z, 3, s_20); /* <-, line 76 */
442
+ if (ret < 0) return ret;
443
+ }
444
+ break;
445
+ case 14:
446
+ { int ret = slice_from_s(z, 3, s_21); /* <-, line 77 */
447
+ if (ret < 0) return ret;
448
+ }
449
+ break;
450
+ }
451
+ return 1;
452
+ }
453
+
454
+ static int r_Step_3(struct SN_env * z) {
455
+ int among_var;
456
+ z->ket = z->c; /* [, line 82 */
457
+ if (z->c - 2 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((528928 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
458
+ among_var = find_among_b(z, a_4, 7); /* substring, line 82 */
459
+ if (!(among_var)) return 0;
460
+ z->bra = z->c; /* ], line 82 */
461
+ { int ret = r_R1(z);
462
+ if (ret == 0) return 0; /* call R1, line 82 */
463
+ if (ret < 0) return ret;
464
+ }
465
+ switch(among_var) {
466
+ case 0: return 0;
467
+ case 1:
468
+ { int ret = slice_from_s(z, 2, s_22); /* <-, line 83 */
469
+ if (ret < 0) return ret;
470
+ }
471
+ break;
472
+ case 2:
473
+ { int ret = slice_from_s(z, 2, s_23); /* <-, line 85 */
474
+ if (ret < 0) return ret;
475
+ }
476
+ break;
477
+ case 3:
478
+ { int ret = slice_del(z); /* delete, line 87 */
479
+ if (ret < 0) return ret;
480
+ }
481
+ break;
482
+ }
483
+ return 1;
484
+ }
485
+
486
+ static int r_Step_4(struct SN_env * z) {
487
+ int among_var;
488
+ z->ket = z->c; /* [, line 92 */
489
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((3961384 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
490
+ among_var = find_among_b(z, a_5, 19); /* substring, line 92 */
491
+ if (!(among_var)) return 0;
492
+ z->bra = z->c; /* ], line 92 */
493
+ { int ret = r_R2(z);
494
+ if (ret == 0) return 0; /* call R2, line 92 */
495
+ if (ret < 0) return ret;
496
+ }
497
+ switch(among_var) {
498
+ case 0: return 0;
499
+ case 1:
500
+ { int ret = slice_del(z); /* delete, line 95 */
501
+ if (ret < 0) return ret;
502
+ }
503
+ break;
504
+ case 2:
505
+ { int m1 = z->l - z->c; (void)m1; /* or, line 96 */
506
+ if (!(eq_s_b(z, 1, s_24))) goto lab1;
507
+ goto lab0;
508
+ lab1:
509
+ z->c = z->l - m1;
510
+ if (!(eq_s_b(z, 1, s_25))) return 0;
511
+ }
512
+ lab0:
513
+ { int ret = slice_del(z); /* delete, line 96 */
514
+ if (ret < 0) return ret;
515
+ }
516
+ break;
517
+ }
518
+ return 1;
519
+ }
520
+
521
+ static int r_Step_5a(struct SN_env * z) {
522
+ z->ket = z->c; /* [, line 101 */
523
+ if (!(eq_s_b(z, 1, s_26))) return 0;
524
+ z->bra = z->c; /* ], line 101 */
525
+ { int m1 = z->l - z->c; (void)m1; /* or, line 102 */
526
+ { int ret = r_R2(z);
527
+ if (ret == 0) goto lab1; /* call R2, line 102 */
528
+ if (ret < 0) return ret;
529
+ }
530
+ goto lab0;
531
+ lab1:
532
+ z->c = z->l - m1;
533
+ { int ret = r_R1(z);
534
+ if (ret == 0) return 0; /* call R1, line 102 */
535
+ if (ret < 0) return ret;
536
+ }
537
+ { int m2 = z->l - z->c; (void)m2; /* not, line 102 */
538
+ { int ret = r_shortv(z);
539
+ if (ret == 0) goto lab2; /* call shortv, line 102 */
540
+ if (ret < 0) return ret;
541
+ }
542
+ return 0;
543
+ lab2:
544
+ z->c = z->l - m2;
545
+ }
546
+ }
547
+ lab0:
548
+ { int ret = slice_del(z); /* delete, line 103 */
549
+ if (ret < 0) return ret;
550
+ }
551
+ return 1;
552
+ }
553
+
554
+ static int r_Step_5b(struct SN_env * z) {
555
+ z->ket = z->c; /* [, line 107 */
556
+ if (!(eq_s_b(z, 1, s_27))) return 0;
557
+ z->bra = z->c; /* ], line 107 */
558
+ { int ret = r_R2(z);
559
+ if (ret == 0) return 0; /* call R2, line 108 */
560
+ if (ret < 0) return ret;
561
+ }
562
+ if (!(eq_s_b(z, 1, s_28))) return 0;
563
+ { int ret = slice_del(z); /* delete, line 109 */
564
+ if (ret < 0) return ret;
565
+ }
566
+ return 1;
567
+ }
568
+
569
+ extern int porter_UTF_8_stem(struct SN_env * z) {
570
+ z->B[0] = 0; /* unset Y_found, line 115 */
571
+ { int c1 = z->c; /* do, line 116 */
572
+ z->bra = z->c; /* [, line 116 */
573
+ if (!(eq_s(z, 1, s_29))) goto lab0;
574
+ z->ket = z->c; /* ], line 116 */
575
+ { int ret = slice_from_s(z, 1, s_30); /* <-, line 116 */
576
+ if (ret < 0) return ret;
577
+ }
578
+ z->B[0] = 1; /* set Y_found, line 116 */
579
+ lab0:
580
+ z->c = c1;
581
+ }
582
+ { int c2 = z->c; /* do, line 117 */
583
+ while(1) { /* repeat, line 117 */
584
+ int c3 = z->c;
585
+ while(1) { /* goto, line 117 */
586
+ int c4 = z->c;
587
+ if (in_grouping_U(z, g_v, 97, 121, 0)) goto lab3;
588
+ z->bra = z->c; /* [, line 117 */
589
+ if (!(eq_s(z, 1, s_31))) goto lab3;
590
+ z->ket = z->c; /* ], line 117 */
591
+ z->c = c4;
592
+ break;
593
+ lab3:
594
+ z->c = c4;
595
+ { int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
596
+ if (ret < 0) goto lab2;
597
+ z->c = ret; /* goto, line 117 */
598
+ }
599
+ }
600
+ { int ret = slice_from_s(z, 1, s_32); /* <-, line 117 */
601
+ if (ret < 0) return ret;
602
+ }
603
+ z->B[0] = 1; /* set Y_found, line 117 */
604
+ continue;
605
+ lab2:
606
+ z->c = c3;
607
+ break;
608
+ }
609
+ z->c = c2;
610
+ }
611
+ z->I[0] = z->l;
612
+ z->I[1] = z->l;
613
+ { int c5 = z->c; /* do, line 121 */
614
+ { /* gopast */ /* grouping v, line 122 */
615
+ int ret = out_grouping_U(z, g_v, 97, 121, 1);
616
+ if (ret < 0) goto lab4;
617
+ z->c += ret;
618
+ }
619
+ { /* gopast */ /* non v, line 122 */
620
+ int ret = in_grouping_U(z, g_v, 97, 121, 1);
621
+ if (ret < 0) goto lab4;
622
+ z->c += ret;
623
+ }
624
+ z->I[0] = z->c; /* setmark p1, line 122 */
625
+ { /* gopast */ /* grouping v, line 123 */
626
+ int ret = out_grouping_U(z, g_v, 97, 121, 1);
627
+ if (ret < 0) goto lab4;
628
+ z->c += ret;
629
+ }
630
+ { /* gopast */ /* non v, line 123 */
631
+ int ret = in_grouping_U(z, g_v, 97, 121, 1);
632
+ if (ret < 0) goto lab4;
633
+ z->c += ret;
634
+ }
635
+ z->I[1] = z->c; /* setmark p2, line 123 */
636
+ lab4:
637
+ z->c = c5;
638
+ }
639
+ z->lb = z->c; z->c = z->l; /* backwards, line 126 */
640
+
641
+ { int m6 = z->l - z->c; (void)m6; /* do, line 127 */
642
+ { int ret = r_Step_1a(z);
643
+ if (ret == 0) goto lab5; /* call Step_1a, line 127 */
644
+ if (ret < 0) return ret;
645
+ }
646
+ lab5:
647
+ z->c = z->l - m6;
648
+ }
649
+ { int m7 = z->l - z->c; (void)m7; /* do, line 128 */
650
+ { int ret = r_Step_1b(z);
651
+ if (ret == 0) goto lab6; /* call Step_1b, line 128 */
652
+ if (ret < 0) return ret;
653
+ }
654
+ lab6:
655
+ z->c = z->l - m7;
656
+ }
657
+ { int m8 = z->l - z->c; (void)m8; /* do, line 129 */
658
+ { int ret = r_Step_1c(z);
659
+ if (ret == 0) goto lab7; /* call Step_1c, line 129 */
660
+ if (ret < 0) return ret;
661
+ }
662
+ lab7:
663
+ z->c = z->l - m8;
664
+ }
665
+ { int m9 = z->l - z->c; (void)m9; /* do, line 130 */
666
+ { int ret = r_Step_2(z);
667
+ if (ret == 0) goto lab8; /* call Step_2, line 130 */
668
+ if (ret < 0) return ret;
669
+ }
670
+ lab8:
671
+ z->c = z->l - m9;
672
+ }
673
+ { int m10 = z->l - z->c; (void)m10; /* do, line 131 */
674
+ { int ret = r_Step_3(z);
675
+ if (ret == 0) goto lab9; /* call Step_3, line 131 */
676
+ if (ret < 0) return ret;
677
+ }
678
+ lab9:
679
+ z->c = z->l - m10;
680
+ }
681
+ { int m11 = z->l - z->c; (void)m11; /* do, line 132 */
682
+ { int ret = r_Step_4(z);
683
+ if (ret == 0) goto lab10; /* call Step_4, line 132 */
684
+ if (ret < 0) return ret;
685
+ }
686
+ lab10:
687
+ z->c = z->l - m11;
688
+ }
689
+ { int m12 = z->l - z->c; (void)m12; /* do, line 133 */
690
+ { int ret = r_Step_5a(z);
691
+ if (ret == 0) goto lab11; /* call Step_5a, line 133 */
692
+ if (ret < 0) return ret;
693
+ }
694
+ lab11:
695
+ z->c = z->l - m12;
696
+ }
697
+ { int m13 = z->l - z->c; (void)m13; /* do, line 134 */
698
+ { int ret = r_Step_5b(z);
699
+ if (ret == 0) goto lab12; /* call Step_5b, line 134 */
700
+ if (ret < 0) return ret;
701
+ }
702
+ lab12:
703
+ z->c = z->l - m13;
704
+ }
705
+ z->c = z->lb;
706
+ { int c14 = z->c; /* do, line 137 */
707
+ if (!(z->B[0])) goto lab13; /* Boolean test Y_found, line 137 */
708
+ while(1) { /* repeat, line 137 */
709
+ int c15 = z->c;
710
+ while(1) { /* goto, line 137 */
711
+ int c16 = z->c;
712
+ z->bra = z->c; /* [, line 137 */
713
+ if (!(eq_s(z, 1, s_33))) goto lab15;
714
+ z->ket = z->c; /* ], line 137 */
715
+ z->c = c16;
716
+ break;
717
+ lab15:
718
+ z->c = c16;
719
+ { int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
720
+ if (ret < 0) goto lab14;
721
+ z->c = ret; /* goto, line 137 */
722
+ }
723
+ }
724
+ { int ret = slice_from_s(z, 1, s_34); /* <-, line 137 */
725
+ if (ret < 0) return ret;
726
+ }
727
+ continue;
728
+ lab14:
729
+ z->c = c15;
730
+ break;
731
+ }
732
+ lab13:
733
+ z->c = c14;
734
+ }
735
+ return 1;
736
+ }
737
+
738
+ extern struct SN_env * porter_UTF_8_create_env(void) { return SN_create_env(0, 2, 1); }
739
+
740
+ extern void porter_UTF_8_close_env(struct SN_env * z) { SN_close_env(z, 0); }
741
+