esruby 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (763) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +22 -0
  4. data/bin/esruby +34 -0
  5. data/lib/esruby.rb +26 -0
  6. data/lib/esruby/build.rb +140 -0
  7. data/lib/esruby/build/configuration.rb +77 -0
  8. data/lib/esruby/gem.rb +5 -0
  9. data/lib/esruby/gem/specification.rb +35 -0
  10. data/resources/build_config.eruby +53 -0
  11. data/resources/cpp/esruby.cpp +64 -0
  12. data/resources/cpp/esruby.hpp +42 -0
  13. data/resources/cpp/main.cpp +9 -0
  14. data/resources/js/esruby.js +45 -0
  15. data/resources/mruby/AUTHORS +40 -0
  16. data/resources/mruby/CONTRIBUTING.md +68 -0
  17. data/resources/mruby/LEGAL +6 -0
  18. data/resources/mruby/MITL +20 -0
  19. data/resources/mruby/Makefile +17 -0
  20. data/resources/mruby/NEWS +13 -0
  21. data/resources/mruby/README.md +92 -0
  22. data/resources/mruby/Rakefile +152 -0
  23. data/resources/mruby/TODO +10 -0
  24. data/resources/mruby/appveyor.yml +38 -0
  25. data/resources/mruby/appveyor_config.rb +50 -0
  26. data/resources/mruby/benchmark/bm_ao_render.rb +314 -0
  27. data/resources/mruby/benchmark/bm_app_lc_fizzbuzz.rb +52 -0
  28. data/resources/mruby/benchmark/bm_fib.rb +7 -0
  29. data/resources/mruby/benchmark/bm_so_lists.rb +47 -0
  30. data/resources/mruby/benchmark/build_config_boxing.rb +28 -0
  31. data/resources/mruby/benchmark/build_config_cc.rb +13 -0
  32. data/resources/mruby/benchmark/plot.gpl +5 -0
  33. data/resources/mruby/bin/mirb +0 -0
  34. data/resources/mruby/bin/mrbc +0 -0
  35. data/resources/mruby/bin/mruby +0 -0
  36. data/resources/mruby/bin/mruby-strip +0 -0
  37. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/README.md +82 -0
  38. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrbgem.rake +63 -0
  39. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/regexp_pcre.rb +232 -0
  40. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/string_pcre.rb +333 -0
  41. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/132html +313 -0
  42. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/AUTHORS +45 -0
  43. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CMakeLists.txt +959 -0
  44. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/COPYING +5 -0
  45. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ChangeLog +4981 -0
  46. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CheckMan +67 -0
  47. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CleanTxt +113 -0
  48. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Detrail +35 -0
  49. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/HACKING +473 -0
  50. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/INSTALL +370 -0
  51. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/LICENCE +92 -0
  52. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.am +877 -0
  53. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.in +2917 -0
  54. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NEWS +611 -0
  55. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-AUTOTOOLS-BUILD +639 -0
  56. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-UNIX-USE +7 -0
  57. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/PrepareRelease +253 -0
  58. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/README +935 -0
  59. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunGrepTest +551 -0
  60. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest +1015 -0
  61. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest.bat +616 -0
  62. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/aclocal.m4 +1230 -0
  63. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.0 +21280 -0
  64. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.1 +21280 -0
  65. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/requests +273 -0
  66. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.0 +2421 -0
  67. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.1 +1144 -0
  68. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/COPYING-CMAKE-SCRIPTS +22 -0
  69. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindEditline.cmake +17 -0
  70. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindPackageHandleStandardArgs.cmake +58 -0
  71. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindReadline.cmake +29 -0
  72. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/compile +343 -0
  73. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config-cmake.h.in +54 -0
  74. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.guess +1552 -0
  75. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h +392 -0
  76. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.generic +392 -0
  77. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.in +343 -0
  78. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.sub +1804 -0
  79. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure +21280 -0
  80. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure.ac +1082 -0
  81. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/depcomp +708 -0
  82. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/dftables.c +212 -0
  83. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/index.html +180 -0
  84. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre-config.html +109 -0
  85. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre.html +204 -0
  86. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre16.html +383 -0
  87. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_assign_jit_stack.html +76 -0
  88. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile.html +108 -0
  89. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile2.html +112 -0
  90. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_config.html +91 -0
  91. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_named_substring.html +65 -0
  92. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_substring.html +61 -0
  93. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_dfa_exec.html +128 -0
  94. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_exec.html +110 -0
  95. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_study.html +46 -0
  96. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring.html +46 -0
  97. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring_list.html +46 -0
  98. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_fullinfo.html +108 -0
  99. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_named_substring.html +68 -0
  100. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringnumber.html +57 -0
  101. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringtable_entries.html +60 -0
  102. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring.html +64 -0
  103. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring_list.html +61 -0
  104. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_exec.html +108 -0
  105. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_alloc.html +55 -0
  106. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_free.html +48 -0
  107. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_maketables.html +48 -0
  108. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_pattern_to_host_byte_order.html +58 -0
  109. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_refcount.html +51 -0
  110. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_study.html +68 -0
  111. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_utf16_to_host_byte_order.html +57 -0
  112. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_version.html +46 -0
  113. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreapi.html +2786 -0
  114. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrebuild.html +517 -0
  115. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecallout.html +243 -0
  116. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecompat.html +216 -0
  117. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecpp.html +368 -0
  118. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcredemo.html +426 -0
  119. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcregrep.html +757 -0
  120. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrejit.html +458 -0
  121. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrelimits.html +86 -0
  122. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrematching.html +233 -0
  123. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepartial.html +474 -0
  124. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepattern.html +2953 -0
  125. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreperform.html +195 -0
  126. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreposix.html +292 -0
  127. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreprecompile.html +158 -0
  128. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresample.html +110 -0
  129. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrestack.html +225 -0
  130. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresyntax.html +521 -0
  131. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcretest.html +1082 -0
  132. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreunicode.html +270 -0
  133. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/index.html.src +180 -0
  134. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.1 +92 -0
  135. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.txt +86 -0
  136. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.3 +202 -0
  137. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.txt +9909 -0
  138. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre16.3 +390 -0
  139. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre32.3 +389 -0
  140. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_assign_jit_stack.3 +61 -0
  141. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile.3 +98 -0
  142. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile2.3 +106 -0
  143. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_config.3 +76 -0
  144. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_named_substring.3 +59 -0
  145. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_substring.3 +52 -0
  146. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_dfa_exec.3 +125 -0
  147. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_exec.3 +103 -0
  148. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_study.3 +31 -0
  149. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring.3 +31 -0
  150. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring_list.3 +31 -0
  151. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_fullinfo.3 +95 -0
  152. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_named_substring.3 +62 -0
  153. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringnumber.3 +45 -0
  154. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringtable_entries.3 +48 -0
  155. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring.3 +55 -0
  156. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring_list.3 +49 -0
  157. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_exec.3 +104 -0
  158. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_alloc.3 +45 -0
  159. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_free.3 +35 -0
  160. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_maketables.3 +33 -0
  161. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_pattern_to_host_byte_order.3 +46 -0
  162. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_refcount.3 +36 -0
  163. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_study.3 +56 -0
  164. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf16_to_host_byte_order.3 +46 -0
  165. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf32_to_host_byte_order.3 +46 -0
  166. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_version.3 +31 -0
  167. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreapi.3 +2823 -0
  168. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrebuild.3 +520 -0
  169. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecallout.3 +214 -0
  170. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecompat.3 +185 -0
  171. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecpp.3 +348 -0
  172. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.1 +679 -0
  173. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.txt +740 -0
  174. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrejit.3 +437 -0
  175. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrelimits.3 +67 -0
  176. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrematching.3 +206 -0
  177. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepartial.3 +445 -0
  178. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepattern.3 +2983 -0
  179. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreperform.3 +177 -0
  180. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreposix.3 +270 -0
  181. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreprecompile.3 +151 -0
  182. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresample.3 +99 -0
  183. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrestack.3 +215 -0
  184. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresyntax.3 +496 -0
  185. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.1 +1079 -0
  186. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.txt +1012 -0
  187. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreunicode.3 +255 -0
  188. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/perltest.txt +42 -0
  189. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/install-sh +527 -0
  190. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre.pc.in +12 -0
  191. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre16.pc.in +12 -0
  192. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre32.pc.in +12 -0
  193. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcrecpp.pc.in +12 -0
  194. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcreposix.pc.in +13 -0
  195. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ltmain.sh +9636 -0
  196. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ax_pthread.m4 +309 -0
  197. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/libtool.m4 +7844 -0
  198. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltoptions.m4 +369 -0
  199. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltsugar.m4 +123 -0
  200. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltversion.m4 +23 -0
  201. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/lt~obsolete.m4 +98 -0
  202. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/pcre_visibility.m4 +89 -0
  203. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp.bat +66 -0
  204. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_c.txt +20 -0
  205. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_l.txt +20 -0
  206. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/missing +331 -0
  207. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre-config.in +133 -0
  208. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h +653 -0
  209. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.generic +653 -0
  210. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.in +653 -0
  211. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_byte_order.c +45 -0
  212. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_chartables.c +45 -0
  213. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_compile.c +45 -0
  214. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_config.c +45 -0
  215. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_dfa_exec.c +45 -0
  216. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_exec.c +45 -0
  217. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_fullinfo.c +45 -0
  218. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_get.c +45 -0
  219. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_globals.c +45 -0
  220. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_jit_compile.c +45 -0
  221. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_maketables.c +45 -0
  222. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_newline.c +45 -0
  223. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ord2utf16.c +90 -0
  224. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_printint.c +45 -0
  225. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_refcount.c +45 -0
  226. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_string_utils.c +45 -0
  227. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_study.c +45 -0
  228. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_tables.c +45 -0
  229. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ucd.c +45 -0
  230. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_utf16_utils.c +130 -0
  231. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_valid_utf16.c +156 -0
  232. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_version.c +45 -0
  233. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_xclass.c +45 -0
  234. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_byte_order.c +45 -0
  235. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_chartables.c +45 -0
  236. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_compile.c +45 -0
  237. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_config.c +45 -0
  238. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_dfa_exec.c +45 -0
  239. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_exec.c +45 -0
  240. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_fullinfo.c +45 -0
  241. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_get.c +45 -0
  242. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_globals.c +45 -0
  243. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_jit_compile.c +45 -0
  244. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_maketables.c +45 -0
  245. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_newline.c +45 -0
  246. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ord2utf32.c +82 -0
  247. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_printint.c +45 -0
  248. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_refcount.c +45 -0
  249. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_string_utils.c +45 -0
  250. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_study.c +45 -0
  251. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_tables.c +45 -0
  252. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ucd.c +45 -0
  253. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_utf32_utils.c +141 -0
  254. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_valid_utf32.c +131 -0
  255. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_version.c +45 -0
  256. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_xclass.c +45 -0
  257. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_byte_order.c +318 -0
  258. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c +198 -0
  259. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c.dist +198 -0
  260. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_compile.c +8386 -0
  261. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_config.c +186 -0
  262. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_dfa_exec.c +3582 -0
  263. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_exec.c +7049 -0
  264. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_fullinfo.c +231 -0
  265. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_get.c +662 -0
  266. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_globals.c +84 -0
  267. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_internal.h +2744 -0
  268. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_compile.c +8560 -0
  269. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_test.c +1614 -0
  270. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_maketables.c +151 -0
  271. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_newline.c +210 -0
  272. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ord2utf8.c +94 -0
  273. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_printint.c +766 -0
  274. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_refcount.c +92 -0
  275. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.cc +199 -0
  276. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.h +172 -0
  277. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner_unittest.cc +159 -0
  278. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_string_utils.c +211 -0
  279. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.cc +43 -0
  280. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.h.in +179 -0
  281. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece_unittest.cc +150 -0
  282. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_study.c +1562 -0
  283. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_tables.c +655 -0
  284. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ucd.c +3298 -0
  285. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_valid_utf8.c +312 -0
  286. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_version.c +98 -0
  287. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_xclass.c +198 -0
  288. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.cc +922 -0
  289. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.h +710 -0
  290. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_internal.h +71 -0
  291. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_unittest.cc +1291 -0
  292. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpparg.h.in +174 -0
  293. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcredemo.c +406 -0
  294. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregexp.pas +845 -0
  295. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregrep.c +3180 -0
  296. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.c +419 -0
  297. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.h +146 -0
  298. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcretest.c +5488 -0
  299. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/perltest.pl +237 -0
  300. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfig.h +110 -0
  301. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfigInternal.h +484 -0
  302. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitExecAllocator.c +289 -0
  303. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.c +1766 -0
  304. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.h +985 -0
  305. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_Thumb2.c +2008 -0
  306. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_v5.c +2515 -0
  307. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_32.c +404 -0
  308. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_common.c +1881 -0
  309. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_32.c +269 -0
  310. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_64.c +421 -0
  311. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_common.c +2014 -0
  312. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_32.c +164 -0
  313. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_common.c +1348 -0
  314. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_32.c +547 -0
  315. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_64.c +810 -0
  316. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_common.c +2836 -0
  317. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitUtils.c +332 -0
  318. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepbinary +0 -0
  319. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepfilelist +3 -0
  320. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput +611 -0
  321. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput3 +15 -0
  322. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput8 +11 -0
  323. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputv +4 -0
  324. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputx +43 -0
  325. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greplist +7 -0
  326. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput +707 -0
  327. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput8 +12 -0
  328. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutputN +16 -1
  329. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greppatN4 +2 -0
  330. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16 +0 -0
  331. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-1 +0 -0
  332. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-2 +0 -0
  333. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-1 +0 -0
  334. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-2 +0 -0
  335. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32 +0 -0
  336. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-1 +0 -0
  337. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-2 +0 -0
  338. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-1 +0 -0
  339. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-2 +0 -0
  340. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved8 +0 -0
  341. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput1 +5306 -0
  342. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput10 +1337 -0
  343. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput11 +135 -0
  344. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput12 +89 -0
  345. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput13 +9 -0
  346. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput14 +329 -0
  347. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput15 +430 -0
  348. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput16 +35 -0
  349. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput17 +296 -0
  350. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput18 +296 -0
  351. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput19 +22 -0
  352. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput2 +3813 -0
  353. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput20 +19 -0
  354. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput21 +16 -0
  355. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput22 +13 -0
  356. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput23 +16 -0
  357. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput24 +77 -0
  358. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput25 +32 -0
  359. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput26 +80 -0
  360. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput3 +95 -0
  361. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput4 +624 -0
  362. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput5 +772 -0
  363. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput6 +1319 -0
  364. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput7 +672 -0
  365. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput8 +4801 -0
  366. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput9 +717 -0
  367. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinputEBC +121 -0
  368. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput1 +8798 -0
  369. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput10 +2726 -0
  370. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-16 +713 -0
  371. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-32 +713 -0
  372. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-8 +713 -0
  373. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput12 +181 -0
  374. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput13 +21 -0
  375. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput14 +476 -0
  376. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput15 +1269 -0
  377. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput16 +121 -0
  378. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput17 +505 -0
  379. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-16 +1022 -0
  380. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-32 +1019 -0
  381. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput19 +88 -0
  382. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput2 +12484 -0
  383. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput20 +27 -0
  384. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-16 +90 -0
  385. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-32 +90 -0
  386. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-16 +71 -0
  387. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-32 +71 -0
  388. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput23 +42 -0
  389. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput24 +145 -0
  390. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput25 +79 -0
  391. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput26 +148 -0
  392. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput3 +169 -0
  393. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput4 +1094 -0
  394. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput5 +1849 -0
  395. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput6 +2137 -0
  396. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput7 +1473 -0
  397. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput8 +8019 -0
  398. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput9 +1371 -0
  399. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutputEBC +182 -0
  400. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestinput3 +91 -0
  401. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestoutput3 +166 -0
  402. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ucp.h +197 -0
  403. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/run_test.rb +23 -0
  404. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/src/mruby_regexp_pcre.c +364 -0
  405. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/matchdata.rb +94 -0
  406. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/regexp.rb +264 -0
  407. data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/string.rb +201 -0
  408. data/resources/mruby/build_config.rb +152 -0
  409. data/resources/mruby/doc/guides/compile.md +488 -0
  410. data/resources/mruby/doc/guides/debugger.md +370 -0
  411. data/resources/mruby/doc/guides/gc-arena-howto.md +177 -0
  412. data/resources/mruby/doc/guides/mrbconf.md +146 -0
  413. data/resources/mruby/doc/guides/mrbgems.md +340 -0
  414. data/resources/mruby/doc/limitations.md +187 -0
  415. data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/README.md +4 -0
  416. data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/mrbgem.rake +23 -0
  417. data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/mrblib/example.rb +5 -0
  418. data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/src/example.c +20 -0
  419. data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/test/example.rb +7 -0
  420. data/resources/mruby/examples/mrbgems/c_extension_example/README.md +4 -0
  421. data/resources/mruby/examples/mrbgems/c_extension_example/mrbgem.rake +23 -0
  422. data/resources/mruby/examples/mrbgems/c_extension_example/src/example.c +20 -0
  423. data/resources/mruby/examples/mrbgems/c_extension_example/test/example.c +7 -0
  424. data/resources/mruby/examples/mrbgems/c_extension_example/test/example.rb +3 -0
  425. data/resources/mruby/examples/mrbgems/ruby_extension_example/README.md +4 -0
  426. data/resources/mruby/examples/mrbgems/ruby_extension_example/mrbgem.rake +25 -0
  427. data/resources/mruby/examples/mrbgems/ruby_extension_example/mrblib/example.rb +5 -0
  428. data/resources/mruby/examples/mrbgems/ruby_extension_example/test/example.rb +3 -0
  429. data/resources/mruby/examples/targets/build_config_ArduinoDue.rb +90 -0
  430. data/resources/mruby/examples/targets/build_config_IntelEdison.rb +69 -0
  431. data/resources/mruby/examples/targets/build_config_IntelGalileo.rb +106 -0
  432. data/resources/mruby/examples/targets/build_config_RX630.rb +81 -0
  433. data/resources/mruby/examples/targets/build_config_android_arm64-v8a.rb +26 -0
  434. data/resources/mruby/examples/targets/build_config_android_armeabi.rb +26 -0
  435. data/resources/mruby/examples/targets/build_config_android_armeabi_v7a_neon_hard.rb +28 -0
  436. data/resources/mruby/examples/targets/build_config_chipKITMax32.rb +86 -0
  437. data/resources/mruby/include/mrbconf.h +145 -0
  438. data/resources/mruby/include/mruby.h +1280 -0
  439. data/resources/mruby/include/mruby/array.h +279 -0
  440. data/resources/mruby/include/mruby/boxing_nan.h +102 -0
  441. data/resources/mruby/include/mruby/boxing_no.h +56 -0
  442. data/resources/mruby/include/mruby/boxing_word.h +136 -0
  443. data/resources/mruby/include/mruby/class.h +94 -0
  444. data/resources/mruby/include/mruby/common.h +72 -0
  445. data/resources/mruby/include/mruby/compile.h +194 -0
  446. data/resources/mruby/include/mruby/data.h +75 -0
  447. data/resources/mruby/include/mruby/debug.h +66 -0
  448. data/resources/mruby/include/mruby/dump.h +196 -0
  449. data/resources/mruby/include/mruby/error.h +75 -0
  450. data/resources/mruby/include/mruby/gc.h +91 -0
  451. data/resources/mruby/include/mruby/hash.h +182 -0
  452. data/resources/mruby/include/mruby/irep.h +62 -0
  453. data/resources/mruby/include/mruby/istruct.h +47 -0
  454. data/resources/mruby/include/mruby/khash.h +274 -0
  455. data/resources/mruby/include/mruby/numeric.h +161 -0
  456. data/resources/mruby/include/mruby/object.h +45 -0
  457. data/resources/mruby/include/mruby/opcode.h +161 -0
  458. data/resources/mruby/include/mruby/proc.h +131 -0
  459. data/resources/mruby/include/mruby/range.h +49 -0
  460. data/resources/mruby/include/mruby/re.h +16 -0
  461. data/resources/mruby/include/mruby/string.h +440 -0
  462. data/resources/mruby/include/mruby/throw.h +55 -0
  463. data/resources/mruby/include/mruby/value.h +309 -0
  464. data/resources/mruby/include/mruby/variable.h +138 -0
  465. data/resources/mruby/include/mruby/version.h +110 -0
  466. data/resources/mruby/lib/mruby-core-ext.rb +79 -0
  467. data/resources/mruby/lib/mruby/build.rb +355 -0
  468. data/resources/mruby/lib/mruby/build/command.rb +324 -0
  469. data/resources/mruby/lib/mruby/build/load_gems.rb +122 -0
  470. data/resources/mruby/lib/mruby/gem.rb +459 -0
  471. data/resources/mruby/lib/mruby/source.rb +30 -0
  472. data/resources/mruby/minirake +484 -0
  473. data/resources/mruby/mrbgems/default.gembox +82 -0
  474. data/resources/mruby/mrbgems/full-core.gembox +9 -0
  475. data/resources/mruby/mrbgems/mruby-array-ext/mrbgem.rake +6 -0
  476. data/resources/mruby/mrbgems/mruby-array-ext/mrblib/array.rb +935 -0
  477. data/resources/mruby/mrbgems/mruby-array-ext/src/array.c +246 -0
  478. data/resources/mruby/mrbgems/mruby-array-ext/test/array.rb +422 -0
  479. data/resources/mruby/mrbgems/mruby-bin-debugger/bintest/mrdb.rb +286 -0
  480. data/resources/mruby/mrbgems/mruby-bin-debugger/bintest/print.rb +701 -0
  481. data/resources/mruby/mrbgems/mruby-bin-debugger/mrbgem.rake +9 -0
  482. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +505 -0
  483. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.h +26 -0
  484. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +240 -0
  485. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.h +14 -0
  486. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +78 -0
  487. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.h +13 -0
  488. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +436 -0
  489. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +502 -0
  490. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdprint.c +58 -0
  491. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c +64 -0
  492. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c +759 -0
  493. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h +165 -0
  494. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdbconf.h +16 -0
  495. data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdberror.h +20 -0
  496. data/resources/mruby/mrbgems/mruby-bin-mirb/bintest/mirb.rb +12 -0
  497. data/resources/mruby/mrbgems/mruby-bin-mirb/mrbgem.rake +33 -0
  498. data/resources/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +611 -0
  499. data/resources/mruby/mrbgems/mruby-bin-mrbc/mrbgem.rake +16 -0
  500. data/resources/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c +336 -0
  501. data/resources/mruby/mrbgems/mruby-bin-mruby-config/mrbgem.rake +30 -0
  502. data/resources/mruby/mrbgems/mruby-bin-mruby-config/mruby-config +20 -0
  503. data/resources/mruby/mrbgems/mruby-bin-mruby-config/mruby-config.bat +42 -0
  504. data/resources/mruby/mrbgems/mruby-bin-mruby/bintest/mruby.rb +60 -0
  505. data/resources/mruby/mrbgems/mruby-bin-mruby/mrbgem.rake +12 -0
  506. data/resources/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +254 -0
  507. data/resources/mruby/mrbgems/mruby-bin-strip/bintest/mruby-strip.rb +73 -0
  508. data/resources/mruby/mrbgems/mruby-bin-strip/mrbgem.rake +6 -0
  509. data/resources/mruby/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c +155 -0
  510. data/resources/mruby/mrbgems/mruby-class-ext/mrbgem.rake +5 -0
  511. data/resources/mruby/mrbgems/mruby-class-ext/src/class.c +68 -0
  512. data/resources/mruby/mrbgems/mruby-class-ext/test/module.rb +55 -0
  513. data/resources/mruby/mrbgems/mruby-compar-ext/mrbgem.rake +5 -0
  514. data/resources/mruby/mrbgems/mruby-compar-ext/mrblib/compar.rb +31 -0
  515. data/resources/mruby/mrbgems/mruby-compiler/bintest/mrbc.rb +30 -0
  516. data/resources/mruby/mrbgems/mruby-compiler/core/codegen.c +3083 -0
  517. data/resources/mruby/mrbgems/mruby-compiler/core/keywords +50 -0
  518. data/resources/mruby/mrbgems/mruby-compiler/core/lex.def +211 -0
  519. data/resources/mruby/mrbgems/mruby-compiler/core/node.h +118 -0
  520. data/resources/mruby/mrbgems/mruby-compiler/core/parse.y +6661 -0
  521. data/resources/mruby/mrbgems/mruby-compiler/mrbgem.rake +40 -0
  522. data/resources/mruby/mrbgems/mruby-enum-ext/mrbgem.rake +5 -0
  523. data/resources/mruby/mrbgems/mruby-enum-ext/mrblib/enum.rb +813 -0
  524. data/resources/mruby/mrbgems/mruby-enum-ext/test/enum.rb +185 -0
  525. data/resources/mruby/mrbgems/mruby-enum-lazy/mrbgem.rake +7 -0
  526. data/resources/mruby/mrbgems/mruby-enum-lazy/mrblib/lazy.rb +178 -0
  527. data/resources/mruby/mrbgems/mruby-enum-lazy/test/lazy.rb +53 -0
  528. data/resources/mruby/mrbgems/mruby-enumerator/mrbgem.rake +7 -0
  529. data/resources/mruby/mrbgems/mruby-enumerator/mrblib/enumerator.rb +645 -0
  530. data/resources/mruby/mrbgems/mruby-enumerator/test/enumerator.rb +546 -0
  531. data/resources/mruby/mrbgems/mruby-error/mrbgem.rake +10 -0
  532. data/resources/mruby/mrbgems/mruby-error/src/exception.c +100 -0
  533. data/resources/mruby/mrbgems/mruby-error/test/exception.c +59 -0
  534. data/resources/mruby/mrbgems/mruby-error/test/exception.rb +55 -0
  535. data/resources/mruby/mrbgems/mruby-eval/mrbgem.rake +7 -0
  536. data/resources/mruby/mrbgems/mruby-eval/src/eval.c +346 -0
  537. data/resources/mruby/mrbgems/mruby-eval/test/eval.rb +101 -0
  538. data/resources/mruby/mrbgems/mruby-exit/mrbgem.rake +5 -0
  539. data/resources/mruby/mrbgems/mruby-exit/src/mruby-exit.c +24 -0
  540. data/resources/mruby/mrbgems/mruby-fiber/mrbgem.rake +5 -0
  541. data/resources/mruby/mrbgems/mruby-fiber/src/fiber.c +420 -0
  542. data/resources/mruby/mrbgems/mruby-fiber/test/fiber.rb +208 -0
  543. data/resources/mruby/mrbgems/mruby-hash-ext/mrbgem.rake +8 -0
  544. data/resources/mruby/mrbgems/mruby-hash-ext/mrblib/hash.rb +502 -0
  545. data/resources/mruby/mrbgems/mruby-hash-ext/src/hash-ext.c +128 -0
  546. data/resources/mruby/mrbgems/mruby-hash-ext/test/hash.rb +300 -0
  547. data/resources/mruby/mrbgems/mruby-inline-struct/mrbgem.rake +5 -0
  548. data/resources/mruby/mrbgems/mruby-inline-struct/test/inline.c +83 -0
  549. data/resources/mruby/mrbgems/mruby-inline-struct/test/inline.rb +151 -0
  550. data/resources/mruby/mrbgems/mruby-io/README.md +193 -0
  551. data/resources/mruby/mrbgems/mruby-io/include/mruby/ext/io.h +38 -0
  552. data/resources/mruby/mrbgems/mruby-io/mrbgem.rake +17 -0
  553. data/resources/mruby/mrbgems/mruby-io/mrblib/file.rb +208 -0
  554. data/resources/mruby/mrbgems/mruby-io/mrblib/file_constants.rb +29 -0
  555. data/resources/mruby/mrbgems/mruby-io/mrblib/io.rb +387 -0
  556. data/resources/mruby/mrbgems/mruby-io/mrblib/kernel.rb +15 -0
  557. data/resources/mruby/mrbgems/mruby-io/run_test.rb +26 -0
  558. data/resources/mruby/mrbgems/mruby-io/src/file.c +489 -0
  559. data/resources/mruby/mrbgems/mruby-io/src/file_test.c +381 -0
  560. data/resources/mruby/mrbgems/mruby-io/src/io.c +1320 -0
  561. data/resources/mruby/mrbgems/mruby-io/src/mruby_io_gem.c +20 -0
  562. data/resources/mruby/mrbgems/mruby-io/test/file.rb +197 -0
  563. data/resources/mruby/mrbgems/mruby-io/test/file_test.rb +117 -0
  564. data/resources/mruby/mrbgems/mruby-io/test/gc_filedes.sh +4 -0
  565. data/resources/mruby/mrbgems/mruby-io/test/io.rb +642 -0
  566. data/resources/mruby/mrbgems/mruby-io/test/mruby_io_test.c +256 -0
  567. data/resources/mruby/mrbgems/mruby-kernel-ext/mrbgem.rake +5 -0
  568. data/resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb +13 -0
  569. data/resources/mruby/mrbgems/mruby-kernel-ext/src/kernel.c +264 -0
  570. data/resources/mruby/mrbgems/mruby-kernel-ext/test/kernel.rb +86 -0
  571. data/resources/mruby/mrbgems/mruby-math/mrbgem.rake +5 -0
  572. data/resources/mruby/mrbgems/mruby-math/src/math.c +783 -0
  573. data/resources/mruby/mrbgems/mruby-math/test/math.rb +152 -0
  574. data/resources/mruby/mrbgems/mruby-method/README.md +59 -0
  575. data/resources/mruby/mrbgems/mruby-method/mrbgem.rake +7 -0
  576. data/resources/mruby/mrbgems/mruby-method/mrblib/kernel.rb +9 -0
  577. data/resources/mruby/mrbgems/mruby-method/mrblib/method.rb +20 -0
  578. data/resources/mruby/mrbgems/mruby-method/mrblib/unbound_method.rb +9 -0
  579. data/resources/mruby/mrbgems/mruby-method/src/method.c +418 -0
  580. data/resources/mruby/mrbgems/mruby-method/test/method.rb +425 -0
  581. data/resources/mruby/mrbgems/mruby-numeric-ext/mrbgem.rake +5 -0
  582. data/resources/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb +25 -0
  583. data/resources/mruby/mrbgems/mruby-numeric-ext/src/numeric_ext.c +102 -0
  584. data/resources/mruby/mrbgems/mruby-numeric-ext/test/numeric.rb +28 -0
  585. data/resources/mruby/mrbgems/mruby-object-ext/mrbgem.rake +5 -0
  586. data/resources/mruby/mrbgems/mruby-object-ext/mrblib/object.rb +19 -0
  587. data/resources/mruby/mrbgems/mruby-object-ext/src/object.c +112 -0
  588. data/resources/mruby/mrbgems/mruby-object-ext/test/nil.rb +11 -0
  589. data/resources/mruby/mrbgems/mruby-object-ext/test/object.rb +53 -0
  590. data/resources/mruby/mrbgems/mruby-objectspace/mrbgem.rake +5 -0
  591. data/resources/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +187 -0
  592. data/resources/mruby/mrbgems/mruby-objectspace/test/objectspace.rb +60 -0
  593. data/resources/mruby/mrbgems/mruby-pack/README.md +70 -0
  594. data/resources/mruby/mrbgems/mruby-pack/mrbgem.rake +7 -0
  595. data/resources/mruby/mrbgems/mruby-pack/packtest.rb +157 -0
  596. data/resources/mruby/mrbgems/mruby-pack/run_test.rb +26 -0
  597. data/resources/mruby/mrbgems/mruby-pack/src/pack.c +1281 -0
  598. data/resources/mruby/mrbgems/mruby-pack/test/pack.rb +165 -0
  599. data/resources/mruby/mrbgems/mruby-print/mrbgem.rake +5 -0
  600. data/resources/mruby/mrbgems/mruby-print/mrblib/print.rb +64 -0
  601. data/resources/mruby/mrbgems/mruby-print/src/print.c +64 -0
  602. data/resources/mruby/mrbgems/mruby-proc-ext/mrbgem.rake +5 -0
  603. data/resources/mruby/mrbgems/mruby-proc-ext/mrblib/proc.rb +42 -0
  604. data/resources/mruby/mrbgems/mruby-proc-ext/src/proc.c +173 -0
  605. data/resources/mruby/mrbgems/mruby-proc-ext/test/proc.c +62 -0
  606. data/resources/mruby/mrbgems/mruby-proc-ext/test/proc.rb +96 -0
  607. data/resources/mruby/mrbgems/mruby-random/mrbgem.rake +5 -0
  608. data/resources/mruby/mrbgems/mruby-random/src/mt19937ar.c +224 -0
  609. data/resources/mruby/mrbgems/mruby-random/src/mt19937ar.h +80 -0
  610. data/resources/mruby/mrbgems/mruby-random/src/random.c +349 -0
  611. data/resources/mruby/mrbgems/mruby-random/src/random.h +12 -0
  612. data/resources/mruby/mrbgems/mruby-random/test/random.rb +88 -0
  613. data/resources/mruby/mrbgems/mruby-range-ext/mrbgem.rake +5 -0
  614. data/resources/mruby/mrbgems/mruby-range-ext/mrblib/range.rb +31 -0
  615. data/resources/mruby/mrbgems/mruby-range-ext/src/range.c +176 -0
  616. data/resources/mruby/mrbgems/mruby-range-ext/test/range.rb +32 -0
  617. data/resources/mruby/mrbgems/mruby-socket/README.md +55 -0
  618. data/resources/mruby/mrbgems/mruby-socket/mrbgem.rake +17 -0
  619. data/resources/mruby/mrbgems/mruby-socket/mrblib/socket.rb +621 -0
  620. data/resources/mruby/mrbgems/mruby-socket/run_test.rb +28 -0
  621. data/resources/mruby/mrbgems/mruby-socket/src/const.cstub +453 -0
  622. data/resources/mruby/mrbgems/mruby-socket/src/const.def +163 -0
  623. data/resources/mruby/mrbgems/mruby-socket/src/gen.rb +17 -0
  624. data/resources/mruby/mrbgems/mruby-socket/src/socket.c +928 -0
  625. data/resources/mruby/mrbgems/mruby-socket/test/addrinfo.rb +91 -0
  626. data/resources/mruby/mrbgems/mruby-socket/test/basicsocket.rb +17 -0
  627. data/resources/mruby/mrbgems/mruby-socket/test/ipsocket.rb +44 -0
  628. data/resources/mruby/mrbgems/mruby-socket/test/socket.rb +38 -0
  629. data/resources/mruby/mrbgems/mruby-socket/test/sockettest.c +46 -0
  630. data/resources/mruby/mrbgems/mruby-socket/test/tcpsocket.rb +4 -0
  631. data/resources/mruby/mrbgems/mruby-socket/test/udpsocket.rb +16 -0
  632. data/resources/mruby/mrbgems/mruby-socket/test/unix.rb +130 -0
  633. data/resources/mruby/mrbgems/mruby-sprintf/mrbgem.rake +5 -0
  634. data/resources/mruby/mrbgems/mruby-sprintf/mrblib/string.rb +9 -0
  635. data/resources/mruby/mrbgems/mruby-sprintf/src/kernel.c +30 -0
  636. data/resources/mruby/mrbgems/mruby-sprintf/src/sprintf.c +1126 -0
  637. data/resources/mruby/mrbgems/mruby-sprintf/test/sprintf.rb +110 -0
  638. data/resources/mruby/mrbgems/mruby-string-ext/mrbgem.rake +6 -0
  639. data/resources/mruby/mrbgems/mruby-string-ext/mrblib/string.rb +368 -0
  640. data/resources/mruby/mrbgems/mruby-string-ext/src/string.c +804 -0
  641. data/resources/mruby/mrbgems/mruby-string-ext/test/string.rb +682 -0
  642. data/resources/mruby/mrbgems/mruby-struct/mrbgem.rake +5 -0
  643. data/resources/mruby/mrbgems/mruby-struct/mrblib/struct.rb +103 -0
  644. data/resources/mruby/mrbgems/mruby-struct/src/struct.c +726 -0
  645. data/resources/mruby/mrbgems/mruby-struct/test/struct.rb +205 -0
  646. data/resources/mruby/mrbgems/mruby-symbol-ext/mrbgem.rake +5 -0
  647. data/resources/mruby/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +78 -0
  648. data/resources/mruby/mrbgems/mruby-symbol-ext/src/symbol.c +64 -0
  649. data/resources/mruby/mrbgems/mruby-symbol-ext/test/symbol.rb +48 -0
  650. data/resources/mruby/mrbgems/mruby-test/README.md +7 -0
  651. data/resources/mruby/mrbgems/mruby-test/driver.c +175 -0
  652. data/resources/mruby/mrbgems/mruby-test/init_mrbtest.c +38 -0
  653. data/resources/mruby/mrbgems/mruby-test/mrbgem.rake +191 -0
  654. data/resources/mruby/mrbgems/mruby-time/mrbgem.rake +5 -0
  655. data/resources/mruby/mrbgems/mruby-time/mrblib/time.rb +9 -0
  656. data/resources/mruby/mrbgems/mruby-time/src/time.c +869 -0
  657. data/resources/mruby/mrbgems/mruby-time/test/time.rb +228 -0
  658. data/resources/mruby/mrbgems/mruby-toplevel-ext/mrbgem.rake +5 -0
  659. data/resources/mruby/mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb +11 -0
  660. data/resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb +24 -0
  661. data/resources/mruby/mrblib/00class.rb +29 -0
  662. data/resources/mruby/mrblib/10error.rb +59 -0
  663. data/resources/mruby/mrblib/array.rb +243 -0
  664. data/resources/mruby/mrblib/compar.rb +84 -0
  665. data/resources/mruby/mrblib/enum.rb +348 -0
  666. data/resources/mruby/mrblib/float.rb +9 -0
  667. data/resources/mruby/mrblib/hash.rb +358 -0
  668. data/resources/mruby/mrblib/init_mrblib.c +11 -0
  669. data/resources/mruby/mrblib/kernel.rb +50 -0
  670. data/resources/mruby/mrblib/mrblib.rake +21 -0
  671. data/resources/mruby/mrblib/numeric.rb +163 -0
  672. data/resources/mruby/mrblib/range.rb +67 -0
  673. data/resources/mruby/mrblib/string.rb +275 -0
  674. data/resources/mruby/mruby-source.gemspec +18 -0
  675. data/resources/mruby/src/array.c +1251 -0
  676. data/resources/mruby/src/backtrace.c +285 -0
  677. data/resources/mruby/src/class.c +2546 -0
  678. data/resources/mruby/src/codedump.c +477 -0
  679. data/resources/mruby/src/compar.c +13 -0
  680. data/resources/mruby/src/crc.c +39 -0
  681. data/resources/mruby/src/debug.c +217 -0
  682. data/resources/mruby/src/dump.c +1106 -0
  683. data/resources/mruby/src/enum.c +14 -0
  684. data/resources/mruby/src/error.c +513 -0
  685. data/resources/mruby/src/error.h +3 -0
  686. data/resources/mruby/src/etc.c +246 -0
  687. data/resources/mruby/src/fmt_fp.c +374 -0
  688. data/resources/mruby/src/gc.c +1835 -0
  689. data/resources/mruby/src/hash.c +916 -0
  690. data/resources/mruby/src/init.c +51 -0
  691. data/resources/mruby/src/kernel.c +1264 -0
  692. data/resources/mruby/src/load.c +706 -0
  693. data/resources/mruby/src/mruby_core.rake +20 -0
  694. data/resources/mruby/src/numeric.c +1574 -0
  695. data/resources/mruby/src/object.c +618 -0
  696. data/resources/mruby/src/opcode.h +2 -0
  697. data/resources/mruby/src/pool.c +209 -0
  698. data/resources/mruby/src/print.c +47 -0
  699. data/resources/mruby/src/proc.c +313 -0
  700. data/resources/mruby/src/range.c +446 -0
  701. data/resources/mruby/src/state.c +307 -0
  702. data/resources/mruby/src/string.c +3025 -0
  703. data/resources/mruby/src/symbol.c +494 -0
  704. data/resources/mruby/src/value_array.h +27 -0
  705. data/resources/mruby/src/variable.c +982 -0
  706. data/resources/mruby/src/version.c +17 -0
  707. data/resources/mruby/src/vm.c +3020 -0
  708. data/resources/mruby/tasks/benchmark.rake +91 -0
  709. data/resources/mruby/tasks/gitlab.rake +118 -0
  710. data/resources/mruby/tasks/libmruby.rake +24 -0
  711. data/resources/mruby/tasks/mrbgems.rake +98 -0
  712. data/resources/mruby/tasks/toolchains/android.rake +321 -0
  713. data/resources/mruby/tasks/toolchains/clang.rake +9 -0
  714. data/resources/mruby/tasks/toolchains/gcc.rake +66 -0
  715. data/resources/mruby/tasks/toolchains/openwrt.rake +38 -0
  716. data/resources/mruby/tasks/toolchains/visualcpp.rake +68 -0
  717. data/resources/mruby/test/assert.rb +249 -0
  718. data/resources/mruby/test/bintest.rb +33 -0
  719. data/resources/mruby/test/report.rb +4 -0
  720. data/resources/mruby/test/t/argumenterror.rb +16 -0
  721. data/resources/mruby/test/t/array.rb +394 -0
  722. data/resources/mruby/test/t/basicobject.rb +11 -0
  723. data/resources/mruby/test/t/bs_block.rb +521 -0
  724. data/resources/mruby/test/t/bs_literal.rb +38 -0
  725. data/resources/mruby/test/t/class.rb +451 -0
  726. data/resources/mruby/test/t/codegen.rb +197 -0
  727. data/resources/mruby/test/t/comparable.rb +80 -0
  728. data/resources/mruby/test/t/ensure.rb +54 -0
  729. data/resources/mruby/test/t/enumerable.rb +134 -0
  730. data/resources/mruby/test/t/exception.rb +422 -0
  731. data/resources/mruby/test/t/false.rb +31 -0
  732. data/resources/mruby/test/t/float.rb +209 -0
  733. data/resources/mruby/test/t/gc.rb +45 -0
  734. data/resources/mruby/test/t/hash.rb +375 -0
  735. data/resources/mruby/test/t/indexerror.rb +6 -0
  736. data/resources/mruby/test/t/integer.rb +277 -0
  737. data/resources/mruby/test/t/iterations.rb +61 -0
  738. data/resources/mruby/test/t/kernel.rb +600 -0
  739. data/resources/mruby/test/t/lang.rb +74 -0
  740. data/resources/mruby/test/t/literals.rb +337 -0
  741. data/resources/mruby/test/t/localjumperror.rb +13 -0
  742. data/resources/mruby/test/t/methods.rb +109 -0
  743. data/resources/mruby/test/t/module.rb +914 -0
  744. data/resources/mruby/test/t/nameerror.rb +28 -0
  745. data/resources/mruby/test/t/nil.rb +39 -0
  746. data/resources/mruby/test/t/nomethoderror.rb +22 -0
  747. data/resources/mruby/test/t/numeric.rb +43 -0
  748. data/resources/mruby/test/t/object.rb +11 -0
  749. data/resources/mruby/test/t/proc.rb +180 -0
  750. data/resources/mruby/test/t/range.rb +95 -0
  751. data/resources/mruby/test/t/rangeerror.rb +6 -0
  752. data/resources/mruby/test/t/regexperror.rb +4 -0
  753. data/resources/mruby/test/t/runtimeerror.rb +6 -0
  754. data/resources/mruby/test/t/standarderror.rb +6 -0
  755. data/resources/mruby/test/t/string.rb +728 -0
  756. data/resources/mruby/test/t/superclass.rb +47 -0
  757. data/resources/mruby/test/t/symbol.rb +30 -0
  758. data/resources/mruby/test/t/syntax.rb +468 -0
  759. data/resources/mruby/test/t/true.rb +31 -0
  760. data/resources/mruby/test/t/typeerror.rb +6 -0
  761. data/resources/mruby/test/t/unicode.rb +39 -0
  762. data/resources/mruby/travis_config.rb +53 -0
  763. metadata +806 -0
@@ -0,0 +1,1012 @@
1
+ PCRETEST(1) PCRETEST(1)
2
+
3
+
4
+ NAME
5
+ pcretest - a program for testing Perl-compatible regular expressions.
6
+
7
+
8
+ SYNOPSIS
9
+
10
+ pcretest [options] [input file [output file]]
11
+
12
+ pcretest was written as a test program for the PCRE regular expression
13
+ library itself, but it can also be used for experimenting with regular
14
+ expressions. This document describes the features of the test program;
15
+ for details of the regular expressions themselves, see the pcrepattern
16
+ documentation. For details of the PCRE library function calls and their
17
+ options, see the pcreapi , pcre16 and pcre32 documentation.
18
+
19
+ The input for pcretest is a sequence of regular expression patterns and
20
+ strings to be matched, as described below. The output shows the result
21
+ of each match. Options on the command line and the patterns control
22
+ PCRE options and exactly what is output.
23
+
24
+ As PCRE has evolved, it has acquired many different features, and as a
25
+ result, pcretest now has rather a lot of obscure options for testing
26
+ every possible feature. Some of these options are specifically designed
27
+ for use in conjunction with the test script and data files that are
28
+ distributed as part of PCRE, and are unlikely to be of use otherwise.
29
+ They are all documented here, but without much justification.
30
+
31
+
32
+ PCRE's 8-BIT, 16-BIT AND 32-BIT LIBRARIES
33
+
34
+ From release 8.30, two separate PCRE libraries can be built. The origi-
35
+ nal one supports 8-bit character strings, whereas the newer 16-bit
36
+ library supports character strings encoded in 16-bit units. From
37
+ release 8.32, a third library can be built, supporting character
38
+ strings encoded in 32-bit units. The pcretest program can be used to
39
+ test all three libraries. However, it is itself still an 8-bit program,
40
+ reading 8-bit input and writing 8-bit output. When testing the 16-bit
41
+ or 32-bit library, the patterns and data strings are converted to 16-
42
+ or 32-bit format before being passed to the PCRE library functions.
43
+ Results are converted to 8-bit for output.
44
+
45
+ References to functions and structures of the form pcre[16|32]_xx below
46
+ mean "pcre_xx when using the 8-bit library or pcre16_xx when using the
47
+ 16-bit library".
48
+
49
+
50
+ COMMAND LINE OPTIONS
51
+
52
+ -8 If both the 8-bit library has been built, this option causes
53
+ the 8-bit library to be used (which is the default); if the
54
+ 8-bit library has not been built, this option causes an
55
+ error.
56
+
57
+ -16 If both the 8-bit or the 32-bit, and the 16-bit libraries
58
+ have been built, this option causes the 16-bit library to be
59
+ used. If only the 16-bit library has been built, this is the
60
+ default (so has no effect). If only the 8-bit or the 32-bit
61
+ library has been built, this option causes an error.
62
+
63
+ -32 If both the 8-bit or the 16-bit, and the 32-bit libraries
64
+ have been built, this option causes the 32-bit library to be
65
+ used. If only the 32-bit library has been built, this is the
66
+ default (so has no effect). If only the 8-bit or the 16-bit
67
+ library has been built, this option causes an error.
68
+
69
+ -b Behave as if each pattern has the /B (show byte code) modi-
70
+ fier; the internal form is output after compilation.
71
+
72
+ -C Output the version number of the PCRE library, and all avail-
73
+ able information about the optional features that are
74
+ included, and then exit. All other options are ignored.
75
+
76
+ -C option Output information about a specific build-time option, then
77
+ exit. This functionality is intended for use in scripts such
78
+ as RunTest. The following options output the value indicated:
79
+
80
+ ebcdic-nl the code for LF (= NL) in an EBCDIC environment:
81
+ 0x15 or 0x25
82
+ 0 if used in an ASCII environment
83
+ linksize the internal link size (2, 3, or 4)
84
+ newline the default newline setting:
85
+ CR, LF, CRLF, ANYCRLF, or ANY
86
+
87
+ The following options output 1 for true or zero for false:
88
+
89
+ ebcdic compiled for an EBCDIC environment
90
+ jit just-in-time support is available
91
+ pcre16 the 16-bit library was built
92
+ pcre32 the 32-bit library was built
93
+ pcre8 the 8-bit library was built
94
+ ucp Unicode property support is available
95
+ utf UTF-8 and/or UTF-16 and/or UTF-32 support is
96
+ available
97
+
98
+ -d Behave as if each pattern has the /D (debug) modifier; the
99
+ internal form and information about the compiled pattern is
100
+ output after compilation; -d is equivalent to -b -i.
101
+
102
+ -dfa Behave as if each data line contains the \D escape sequence;
103
+ this causes the alternative matching function,
104
+ pcre[16|32]_dfa_exec(), to be used instead of the standard
105
+ pcre[16|32]_exec() function (more detail is given below).
106
+
107
+ -help Output a brief summary these options and then exit.
108
+
109
+ -i Behave as if each pattern has the /I modifier; information
110
+ about the compiled pattern is given after compilation.
111
+
112
+ -M Behave as if each data line contains the \M escape sequence;
113
+ this causes PCRE to discover the minimum MATCH_LIMIT and
114
+ MATCH_LIMIT_RECURSION settings by calling pcre[16|32]_exec()
115
+ repeatedly with different limits.
116
+
117
+ -m Output the size of each compiled pattern after it has been
118
+ compiled. This is equivalent to adding /M to each regular
119
+ expression. The size is given in bytes for both libraries.
120
+
121
+ -o osize Set the number of elements in the output vector that is used
122
+ when calling pcre[16|32]_exec() or pcre[16|32]_dfa_exec() to
123
+ be osize. The default value is 45, which is enough for 14
124
+ capturing subexpressions for pcre[16|32]_exec() or 22 differ-
125
+ ent matches for pcre[16|32]_dfa_exec(). The vector size can
126
+ be changed for individual matching calls by including \O in
127
+ the data line (see below).
128
+
129
+ -p Behave as if each pattern has the /P modifier; the POSIX
130
+ wrapper API is used to call PCRE. None of the other options
131
+ has any effect when -p is set. This option can be used only
132
+ with the 8-bit library.
133
+
134
+ -q Do not output the version number of pcretest at the start of
135
+ execution.
136
+
137
+ -S size On Unix-like systems, set the size of the run-time stack to
138
+ size megabytes.
139
+
140
+ -s or -s+ Behave as if each pattern has the /S modifier; in other
141
+ words, force each pattern to be studied. If -s+ is used, all
142
+ the JIT compile options are passed to pcre[16|32]_study(),
143
+ causing just-in-time optimization to be set up if it is
144
+ available, for both full and partial matching. Specific JIT
145
+ compile options can be selected by following -s+ with a digit
146
+ in the range 1 to 7, which selects the JIT compile modes as
147
+ follows:
148
+
149
+ 1 normal match only
150
+ 2 soft partial match only
151
+ 3 normal match and soft partial match
152
+ 4 hard partial match only
153
+ 6 soft and hard partial match
154
+ 7 all three modes (default)
155
+
156
+ If -s++ is used instead of -s+ (with or without a following
157
+ digit), the text "(JIT)" is added to the first output line
158
+ after a match or no match when JIT-compiled code was actually
159
+ used.
160
+
161
+ Note that there are pattern options that can override -s,
162
+ either specifying no studying at all, or suppressing JIT com-
163
+ pilation.
164
+
165
+ If the /I or /D option is present on a pattern (requesting
166
+ output about the compiled pattern), information about the
167
+ result of studying is not included when studying is caused
168
+ only by -s and neither -i nor -d is present on the command
169
+ line. This behaviour means that the output from tests that
170
+ are run with and without -s should be identical, except when
171
+ options that output information about the actual running of a
172
+ match are set.
173
+
174
+ The -M, -t, and -tm options, which give information about
175
+ resources used, are likely to produce different output with
176
+ and without -s. Output may also differ if the /C option is
177
+ present on an individual pattern. This uses callouts to trace
178
+ the the matching process, and this may be different between
179
+ studied and non-studied patterns. If the pattern contains
180
+ (*MARK) items there may also be differences, for the same
181
+ reason. The -s command line option can be overridden for spe-
182
+ cific patterns that should never be studied (see the /S pat-
183
+ tern modifier below).
184
+
185
+ -t Run each compile, study, and match many times with a timer,
186
+ and output resulting time per compile or match (in millisec-
187
+ onds). Do not set -m with -t, because you will then get the
188
+ size output a zillion times, and the timing will be dis-
189
+ torted. You can control the number of iterations that are
190
+ used for timing by following -t with a number (as a separate
191
+ item on the command line). For example, "-t 1000" would iter-
192
+ ate 1000 times. The default is to iterate 500000 times.
193
+
194
+ -tm This is like -t except that it times only the matching phase,
195
+ not the compile or study phases.
196
+
197
+
198
+ DESCRIPTION
199
+
200
+ If pcretest is given two filename arguments, it reads from the first
201
+ and writes to the second. If it is given only one filename argument, it
202
+ reads from that file and writes to stdout. Otherwise, it reads from
203
+ stdin and writes to stdout, and prompts for each line of input, using
204
+ "re>" to prompt for regular expressions, and "data>" to prompt for data
205
+ lines.
206
+
207
+ When pcretest is built, a configuration option can specify that it
208
+ should be linked with the libreadline library. When this is done, if
209
+ the input is from a terminal, it is read using the readline() function.
210
+ This provides line-editing and history facilities. The output from the
211
+ -help option states whether or not readline() will be used.
212
+
213
+ The program handles any number of sets of input on a single input file.
214
+ Each set starts with a regular expression, and continues with any num-
215
+ ber of data lines to be matched against the pattern.
216
+
217
+ Each data line is matched separately and independently. If you want to
218
+ do multi-line matches, you have to use the \n escape sequence (or \r or
219
+ \r\n, etc., depending on the newline setting) in a single line of input
220
+ to encode the newline sequences. There is no limit on the length of
221
+ data lines; the input buffer is automatically extended if it is too
222
+ small.
223
+
224
+ An empty line signals the end of the data lines, at which point a new
225
+ regular expression is read. The regular expressions are given enclosed
226
+ in any non-alphanumeric delimiters other than backslash, for example:
227
+
228
+ /(a|bc)x+yz/
229
+
230
+ White space before the initial delimiter is ignored. A regular expres-
231
+ sion may be continued over several input lines, in which case the new-
232
+ line characters are included within it. It is possible to include the
233
+ delimiter within the pattern by escaping it, for example
234
+
235
+ /abc\/def/
236
+
237
+ If you do so, the escape and the delimiter form part of the pattern,
238
+ but since delimiters are always non-alphanumeric, this does not affect
239
+ its interpretation. If the terminating delimiter is immediately fol-
240
+ lowed by a backslash, for example,
241
+
242
+ /abc/\
243
+
244
+ then a backslash is added to the end of the pattern. This is done to
245
+ provide a way of testing the error condition that arises if a pattern
246
+ finishes with a backslash, because
247
+
248
+ /abc\/
249
+
250
+ is interpreted as the first line of a pattern that starts with "abc/",
251
+ causing pcretest to read the next line as a continuation of the regular
252
+ expression.
253
+
254
+
255
+ PATTERN MODIFIERS
256
+
257
+ A pattern may be followed by any number of modifiers, which are mostly
258
+ single characters, though some of these can be qualified by further
259
+ characters. Following Perl usage, these are referred to below as, for
260
+ example, "the /i modifier", even though the delimiter of the pattern
261
+ need not always be a slash, and no slash is used when writing modi-
262
+ fiers. White space may appear between the final pattern delimiter and
263
+ the first modifier, and between the modifiers themselves. For refer-
264
+ ence, here is a complete list of modifiers. They fall into several
265
+ groups that are described in detail in the following sections.
266
+
267
+ /8 set UTF mode
268
+ /? disable UTF validity check
269
+ /+ show remainder of subject after match
270
+ /= show all captures (not just those that are set)
271
+
272
+ /A set PCRE_ANCHORED
273
+ /B show compiled code
274
+ /C set PCRE_AUTO_CALLOUT
275
+ /D same as /B plus /I
276
+ /E set PCRE_DOLLAR_ENDONLY
277
+ /F flip byte order in compiled pattern
278
+ /f set PCRE_FIRSTLINE
279
+ /G find all matches (shorten string)
280
+ /g find all matches (use startoffset)
281
+ /I show information about pattern
282
+ /i set PCRE_CASELESS
283
+ /J set PCRE_DUPNAMES
284
+ /K show backtracking control names
285
+ /L set locale
286
+ /M show compiled memory size
287
+ /m set PCRE_MULTILINE
288
+ /N set PCRE_NO_AUTO_CAPTURE
289
+ /P use the POSIX wrapper
290
+ /S study the pattern after compilation
291
+ /s set PCRE_DOTALL
292
+ /T select character tables
293
+ /U set PCRE_UNGREEDY
294
+ /W set PCRE_UCP
295
+ /X set PCRE_EXTRA
296
+ /x set PCRE_EXTENDED
297
+ /Y set PCRE_NO_START_OPTIMIZE
298
+ /Z don't show lengths in /B output
299
+
300
+ /<any> set PCRE_NEWLINE_ANY
301
+ /<anycrlf> set PCRE_NEWLINE_ANYCRLF
302
+ /<cr> set PCRE_NEWLINE_CR
303
+ /<crlf> set PCRE_NEWLINE_CRLF
304
+ /<lf> set PCRE_NEWLINE_LF
305
+ /<bsr_anycrlf> set PCRE_BSR_ANYCRLF
306
+ /<bsr_unicode> set PCRE_BSR_UNICODE
307
+ /<JS> set PCRE_JAVASCRIPT_COMPAT
308
+
309
+
310
+ Perl-compatible modifiers
311
+
312
+ The /i, /m, /s, and /x modifiers set the PCRE_CASELESS, PCRE_MULTILINE,
313
+ PCRE_DOTALL, or PCRE_EXTENDED options, respectively, when
314
+ pcre[16|32]_compile() is called. These four modifier letters have the
315
+ same effect as they do in Perl. For example:
316
+
317
+ /caseless/i
318
+
319
+
320
+ Modifiers for other PCRE options
321
+
322
+ The following table shows additional modifiers for setting PCRE com-
323
+ pile-time options that do not correspond to anything in Perl:
324
+
325
+ /8 PCRE_UTF8 ) when using the 8-bit
326
+ /? PCRE_NO_UTF8_CHECK ) library
327
+
328
+ /8 PCRE_UTF16 ) when using the 16-bit
329
+ /? PCRE_NO_UTF16_CHECK ) library
330
+
331
+ /8 PCRE_UTF32 ) when using the 32-bit
332
+ /? PCRE_NO_UTF32_CHECK ) library
333
+
334
+ /A PCRE_ANCHORED
335
+ /C PCRE_AUTO_CALLOUT
336
+ /E PCRE_DOLLAR_ENDONLY
337
+ /f PCRE_FIRSTLINE
338
+ /J PCRE_DUPNAMES
339
+ /N PCRE_NO_AUTO_CAPTURE
340
+ /U PCRE_UNGREEDY
341
+ /W PCRE_UCP
342
+ /X PCRE_EXTRA
343
+ /Y PCRE_NO_START_OPTIMIZE
344
+ /<any> PCRE_NEWLINE_ANY
345
+ /<anycrlf> PCRE_NEWLINE_ANYCRLF
346
+ /<cr> PCRE_NEWLINE_CR
347
+ /<crlf> PCRE_NEWLINE_CRLF
348
+ /<lf> PCRE_NEWLINE_LF
349
+ /<bsr_anycrlf> PCRE_BSR_ANYCRLF
350
+ /<bsr_unicode> PCRE_BSR_UNICODE
351
+ /<JS> PCRE_JAVASCRIPT_COMPAT
352
+
353
+ The modifiers that are enclosed in angle brackets are literal strings
354
+ as shown, including the angle brackets, but the letters within can be
355
+ in either case. This example sets multiline matching with CRLF as the
356
+ line ending sequence:
357
+
358
+ /^abc/m<CRLF>
359
+
360
+ As well as turning on the PCRE_UTF8/16/32 option, the /8 modifier
361
+ causes all non-printing characters in output strings to be printed
362
+ using the \x{hh...} notation. Otherwise, those less than 0x100 are out-
363
+ put in hex without the curly brackets.
364
+
365
+ Full details of the PCRE options are given in the pcreapi documenta-
366
+ tion.
367
+
368
+ Finding all matches in a string
369
+
370
+ Searching for all possible matches within each subject string can be
371
+ requested by the /g or /G modifier. After finding a match, PCRE is
372
+ called again to search the remainder of the subject string. The differ-
373
+ ence between /g and /G is that the former uses the startoffset argument
374
+ to pcre[16|32]_exec() to start searching at a new point within the
375
+ entire string (which is in effect what Perl does), whereas the latter
376
+ passes over a shortened substring. This makes a difference to the
377
+ matching process if the pattern begins with a lookbehind assertion
378
+ (including \b or \B).
379
+
380
+ If any call to pcre[16|32]_exec() in a /g or /G sequence matches an
381
+ empty string, the next call is done with the PCRE_NOTEMPTY_ATSTART and
382
+ PCRE_ANCHORED flags set in order to search for another, non-empty,
383
+ match at the same point. If this second match fails, the start offset
384
+ is advanced, and the normal match is retried. This imitates the way
385
+ Perl handles such cases when using the /g modifier or the split() func-
386
+ tion. Normally, the start offset is advanced by one character, but if
387
+ the newline convention recognizes CRLF as a newline, and the current
388
+ character is CR followed by LF, an advance of two is used.
389
+
390
+ Other modifiers
391
+
392
+ There are yet more modifiers for controlling the way pcretest operates.
393
+
394
+ The /+ modifier requests that as well as outputting the substring that
395
+ matched the entire pattern, pcretest should in addition output the
396
+ remainder of the subject string. This is useful for tests where the
397
+ subject contains multiple copies of the same substring. If the + modi-
398
+ fier appears twice, the same action is taken for captured substrings.
399
+ In each case the remainder is output on the following line with a plus
400
+ character following the capture number. Note that this modifier must
401
+ not immediately follow the /S modifier because /S+ and /S++ have other
402
+ meanings.
403
+
404
+ The /= modifier requests that the values of all potential captured
405
+ parentheses be output after a match. By default, only those up to the
406
+ highest one actually used in the match are output (corresponding to the
407
+ return code from pcre[16|32]_exec()). Values in the offsets vector cor-
408
+ responding to higher numbers should be set to -1, and these are output
409
+ as "<unset>". This modifier gives a way of checking that this is hap-
410
+ pening.
411
+
412
+ The /B modifier is a debugging feature. It requests that pcretest out-
413
+ put a representation of the compiled code after compilation. Normally
414
+ this information contains length and offset values; however, if /Z is
415
+ also present, this data is replaced by spaces. This is a special fea-
416
+ ture for use in the automatic test scripts; it ensures that the same
417
+ output is generated for different internal link sizes.
418
+
419
+ The /D modifier is a PCRE debugging feature, and is equivalent to /BI,
420
+ that is, both the /B and the /I modifiers.
421
+
422
+ The /F modifier causes pcretest to flip the byte order of the 2-byte
423
+ and 4-byte fields in the compiled pattern. This facility is for testing
424
+ the feature in PCRE that allows it to execute patterns that were com-
425
+ piled on a host with a different endianness. This feature is not avail-
426
+ able when the POSIX interface to PCRE is being used, that is, when the
427
+ /P pattern modifier is specified. See also the section about saving and
428
+ reloading compiled patterns below.
429
+
430
+ The /I modifier requests that pcretest output information about the
431
+ compiled pattern (whether it is anchored, has a fixed first character,
432
+ and so on). It does this by calling pcre[16|32]_fullinfo() after com-
433
+ piling a pattern. If the pattern is studied, the results of that are
434
+ also output.
435
+
436
+ The /K modifier requests pcretest to show names from backtracking con-
437
+ trol verbs that are returned from calls to pcre[16|32]_exec(). It
438
+ causes pcretest to create a pcre[16|32]_extra block if one has not
439
+ already been created by a call to pcre[16|32]_study(), and to set the
440
+ PCRE_EXTRA_MARK flag and the mark field within it, every time that
441
+ pcre[16|32]_exec() is called. If the variable that the mark field
442
+ points to is non-NULL for a match, non-match, or partial match,
443
+ pcretest prints the string to which it points. For a match, this is
444
+ shown on a line by itself, tagged with "MK:". For a non-match it is
445
+ added to the message.
446
+
447
+ The /L modifier must be followed directly by the name of a locale, for
448
+ example,
449
+
450
+ /pattern/Lfr_FR
451
+
452
+ For this reason, it must be the last modifier. The given locale is set,
453
+ pcre[16|32]_maketables() is called to build a set of character tables
454
+ for the locale, and this is then passed to pcre[16|32]_compile() when
455
+ compiling the regular expression. Without an /L (or /T) modifier, NULL
456
+ is passed as the tables pointer; that is, /L applies only to the
457
+ expression on which it appears.
458
+
459
+ The /M modifier causes the size in bytes of the memory block used to
460
+ hold the compiled pattern to be output. This does not include the size
461
+ of the pcre[16|32] block; it is just the actual compiled data. If the
462
+ pattern is successfully studied with the PCRE_STUDY_JIT_COMPILE option,
463
+ the size of the JIT compiled code is also output.
464
+
465
+ The /S modifier causes pcre[16|32]_study() to be called after the
466
+ expression has been compiled, and the results used when the expression
467
+ is matched. There are a number of qualifying characters that may follow
468
+ /S. They may appear in any order.
469
+
470
+ If S is followed by an exclamation mark, pcre[16|32]_study() is called
471
+ with the PCRE_STUDY_EXTRA_NEEDED option, causing it always to return a
472
+ pcre_extra block, even when studying discovers no useful information.
473
+
474
+ If /S is followed by a second S character, it suppresses studying, even
475
+ if it was requested externally by the -s command line option. This
476
+ makes it possible to specify that certain patterns are always studied,
477
+ and others are never studied, independently of -s. This feature is used
478
+ in the test files in a few cases where the output is different when the
479
+ pattern is studied.
480
+
481
+ If the /S modifier is followed by a + character, the call to
482
+ pcre[16|32]_study() is made with all the JIT study options, requesting
483
+ just-in-time optimization support if it is available, for both normal
484
+ and partial matching. If you want to restrict the JIT compiling modes,
485
+ you can follow /S+ with a digit in the range 1 to 7:
486
+
487
+ 1 normal match only
488
+ 2 soft partial match only
489
+ 3 normal match and soft partial match
490
+ 4 hard partial match only
491
+ 6 soft and hard partial match
492
+ 7 all three modes (default)
493
+
494
+ If /S++ is used instead of /S+ (with or without a following digit), the
495
+ text "(JIT)" is added to the first output line after a match or no
496
+ match when JIT-compiled code was actually used.
497
+
498
+ Note that there is also an independent /+ modifier; it must not be
499
+ given immediately after /S or /S+ because this will be misinterpreted.
500
+
501
+ If JIT studying is successful, the compiled JIT code will automatically
502
+ be used when pcre[16|32]_exec() is run, except when incompatible run-
503
+ time options are specified. For more details, see the pcrejit documen-
504
+ tation. See also the \J escape sequence below for a way of setting the
505
+ size of the JIT stack.
506
+
507
+ Finally, if /S is followed by a minus character, JIT compilation is
508
+ suppressed, even if it was requested externally by the -s command line
509
+ option. This makes it possible to specify that JIT is never to be used
510
+ for certain patterns.
511
+
512
+ The /T modifier must be followed by a single digit. It causes a spe-
513
+ cific set of built-in character tables to be passed to pcre[16|32]_com-
514
+ pile(). It is used in the standard PCRE tests to check behaviour with
515
+ different character tables. The digit specifies the tables as follows:
516
+
517
+ 0 the default ASCII tables, as distributed in
518
+ pcre_chartables.c.dist
519
+ 1 a set of tables defining ISO 8859 characters
520
+
521
+ In table 1, some characters whose codes are greater than 128 are iden-
522
+ tified as letters, digits, spaces, etc.
523
+
524
+ Using the POSIX wrapper API
525
+
526
+ The /P modifier causes pcretest to call PCRE via the POSIX wrapper API
527
+ rather than its native API. This supports only the 8-bit library. When
528
+ /P is set, the following modifiers set options for the regcomp() func-
529
+ tion:
530
+
531
+ /i REG_ICASE
532
+ /m REG_NEWLINE
533
+ /N REG_NOSUB
534
+ /s REG_DOTALL )
535
+ /U REG_UNGREEDY ) These options are not part of
536
+ /W REG_UCP ) the POSIX standard
537
+ /8 REG_UTF8 )
538
+
539
+ The /+ modifier works as described above. All other modifiers are
540
+ ignored.
541
+
542
+
543
+ DATA LINES
544
+
545
+ Before each data line is passed to pcre[16|32]_exec(), leading and
546
+ trailing white space is removed, and it is then scanned for \ escapes.
547
+ Some of these are pretty esoteric features, intended for checking out
548
+ some of the more complicated features of PCRE. If you are just testing
549
+ "ordinary" regular expressions, you probably don't need any of these.
550
+ The following escapes are recognized:
551
+
552
+ \a alarm (BEL, \x07)
553
+ \b backspace (\x08)
554
+ \e escape (\x27)
555
+ \f form feed (\x0c)
556
+ \n newline (\x0a)
557
+ \qdd set the PCRE_MATCH_LIMIT limit to dd
558
+ (any number of digits)
559
+ \r carriage return (\x0d)
560
+ \t tab (\x09)
561
+ \v vertical tab (\x0b)
562
+ \nnn octal character (up to 3 octal digits); always
563
+ a byte unless > 255 in UTF-8 or 16-bit or 32-bit mode
564
+ \xhh hexadecimal byte (up to 2 hex digits)
565
+ \x{hh...} hexadecimal character (any number of hex digits)
566
+ \A pass the PCRE_ANCHORED option to pcre[16|32]_exec()
567
+ or pcre[16|32]_dfa_exec()
568
+ \B pass the PCRE_NOTBOL option to pcre[16|32]_exec()
569
+ or pcre[16|32]_dfa_exec()
570
+ \Cdd call pcre[16|32]_copy_substring() for substring dd
571
+ after a successful match (number less than 32)
572
+ \Cname call pcre[16|32]_copy_named_substring() for substring
573
+ "name" after a successful match (name termin-
574
+ ated by next non alphanumeric character)
575
+ \C+ show the current captured substrings at callout
576
+ time
577
+ \C- do not supply a callout function
578
+ \C!n return 1 instead of 0 when callout number n is
579
+ reached
580
+ \C!n!m return 1 instead of 0 when callout number n is
581
+ reached for the nth time
582
+ \C*n pass the number n (may be negative) as callout
583
+ data; this is used as the callout return value
584
+ \D use the pcre[16|32]_dfa_exec() match function
585
+ \F only shortest match for pcre[16|32]_dfa_exec()
586
+ \Gdd call pcre[16|32]_get_substring() for substring dd
587
+ after a successful match (number less than 32)
588
+ \Gname call pcre[16|32]_get_named_substring() for substring
589
+ "name" after a successful match (name termin-
590
+ ated by next non-alphanumeric character)
591
+ \Jdd set up a JIT stack of dd kilobytes maximum (any
592
+ number of digits)
593
+ \L call pcre[16|32]_get_substringlist() after a
594
+ successful match
595
+ \M discover the minimum MATCH_LIMIT and
596
+ MATCH_LIMIT_RECURSION settings
597
+ \N pass the PCRE_NOTEMPTY option to pcre[16|32]_exec()
598
+ or pcre[16|32]_dfa_exec(); if used twice, pass the
599
+ PCRE_NOTEMPTY_ATSTART option
600
+ \Odd set the size of the output vector passed to
601
+ pcre[16|32]_exec() to dd (any number of digits)
602
+ \P pass the PCRE_PARTIAL_SOFT option to pcre[16|32]_exec()
603
+ or pcre[16|32]_dfa_exec(); if used twice, pass the
604
+ PCRE_PARTIAL_HARD option
605
+ \Qdd set the PCRE_MATCH_LIMIT_RECURSION limit to dd
606
+ (any number of digits)
607
+ \R pass the PCRE_DFA_RESTART option to pcre[16|32]_dfa_exec()
608
+ \S output details of memory get/free calls during matching
609
+ \Y pass the PCRE_NO_START_OPTIMIZE option to
610
+ pcre[16|32]_exec()
611
+ or pcre[16|32]_dfa_exec()
612
+ \Z pass the PCRE_NOTEOL option to pcre[16|32]_exec()
613
+ or pcre[16|32]_dfa_exec()
614
+ \? pass the PCRE_NO_UTF[8|16|32]_CHECK option to
615
+ pcre[16|32]_exec() or pcre[16|32]_dfa_exec()
616
+ \>dd start the match at offset dd (optional "-"; then
617
+ any number of digits); this sets the startoffset
618
+ argument for pcre[16|32]_exec() or
619
+ pcre[16|32]_dfa_exec()
620
+ \<cr> pass the PCRE_NEWLINE_CR option to pcre[16|32]_exec()
621
+ or pcre[16|32]_dfa_exec()
622
+ \<lf> pass the PCRE_NEWLINE_LF option to pcre[16|32]_exec()
623
+ or pcre[16|32]_dfa_exec()
624
+ \<crlf> pass the PCRE_NEWLINE_CRLF option to pcre[16|32]_exec()
625
+ or pcre[16|32]_dfa_exec()
626
+ \<anycrlf> pass the PCRE_NEWLINE_ANYCRLF option to pcre[16|32]_exec()
627
+ or pcre[16|32]_dfa_exec()
628
+ \<any> pass the PCRE_NEWLINE_ANY option to pcre[16|32]_exec()
629
+ or pcre[16|32]_dfa_exec()
630
+
631
+ The use of \x{hh...} is not dependent on the use of the /8 modifier on
632
+ the pattern. It is recognized always. There may be any number of hexa-
633
+ decimal digits inside the braces; invalid values provoke error mes-
634
+ sages.
635
+
636
+ Note that \xhh specifies one byte rather than one character in UTF-8
637
+ mode; this makes it possible to construct invalid UTF-8 sequences for
638
+ testing purposes. On the other hand, \x{hh} is interpreted as a UTF-8
639
+ character in UTF-8 mode, generating more than one byte if the value is
640
+ greater than 127. When testing the 8-bit library not in UTF-8 mode,
641
+ \x{hh} generates one byte for values less than 256, and causes an error
642
+ for greater values.
643
+
644
+ In UTF-16 mode, all 4-digit \x{hhhh} values are accepted. This makes it
645
+ possible to construct invalid UTF-16 sequences for testing purposes.
646
+
647
+ In UTF-32 mode, all 4- to 8-digit \x{...} values are accepted. This
648
+ makes it possible to construct invalid UTF-32 sequences for testing
649
+ purposes.
650
+
651
+ The escapes that specify line ending sequences are literal strings,
652
+ exactly as shown. No more than one newline setting should be present in
653
+ any data line.
654
+
655
+ A backslash followed by anything else just escapes the anything else.
656
+ If the very last character is a backslash, it is ignored. This gives a
657
+ way of passing an empty line as data, since a real empty line termi-
658
+ nates the data input.
659
+
660
+ The \J escape provides a way of setting the maximum stack size that is
661
+ used by the just-in-time optimization code. It is ignored if JIT opti-
662
+ mization is not being used. Providing a stack that is larger than the
663
+ default 32K is necessary only for very complicated patterns.
664
+
665
+ If \M is present, pcretest calls pcre[16|32]_exec() several times, with
666
+ different values in the match_limit and match_limit_recursion fields of
667
+ the pcre[16|32]_extra data structure, until it finds the minimum num-
668
+ bers for each parameter that allow pcre[16|32]_exec() to complete with-
669
+ out error. Because this is testing a specific feature of the normal
670
+ interpretive pcre[16|32]_exec() execution, the use of any JIT optimiza-
671
+ tion that might have been set up by the /S+ qualifier of -s+ option is
672
+ disabled.
673
+
674
+ The match_limit number is a measure of the amount of backtracking that
675
+ takes place, and checking it out can be instructive. For most simple
676
+ matches, the number is quite small, but for patterns with very large
677
+ numbers of matching possibilities, it can become large very quickly
678
+ with increasing length of subject string. The match_limit_recursion
679
+ number is a measure of how much stack (or, if PCRE is compiled with
680
+ NO_RECURSE, how much heap) memory is needed to complete the match
681
+ attempt.
682
+
683
+ When \O is used, the value specified may be higher or lower than the
684
+ size set by the -O command line option (or defaulted to 45); \O applies
685
+ only to the call of pcre[16|32]_exec() for the line in which it
686
+ appears.
687
+
688
+ If the /P modifier was present on the pattern, causing the POSIX wrap-
689
+ per API to be used, the only option-setting sequences that have any
690
+ effect are \B, \N, and \Z, causing REG_NOTBOL, REG_NOTEMPTY, and
691
+ REG_NOTEOL, respectively, to be passed to regexec().
692
+
693
+
694
+ THE ALTERNATIVE MATCHING FUNCTION
695
+
696
+ By default, pcretest uses the standard PCRE matching function,
697
+ pcre[16|32]_exec() to match each data line. PCRE also supports an
698
+ alternative matching function, pcre[16|32]_dfa_test(), which operates
699
+ in a different way, and has some restrictions. The differences between
700
+ the two functions are described in the pcrematching documentation.
701
+
702
+ If a data line contains the \D escape sequence, or if the command line
703
+ contains the -dfa option, the alternative matching function is used.
704
+ This function finds all possible matches at a given point. If, however,
705
+ the \F escape sequence is present in the data line, it stops after the
706
+ first match is found. This is always the shortest possible match.
707
+
708
+
709
+ DEFAULT OUTPUT FROM PCRETEST
710
+
711
+ This section describes the output when the normal matching function,
712
+ pcre[16|32]_exec(), is being used.
713
+
714
+ When a match succeeds, pcretest outputs the list of captured substrings
715
+ that pcre[16|32]_exec() returns, starting with number 0 for the string
716
+ that matched the whole pattern. Otherwise, it outputs "No match" when
717
+ the return is PCRE_ERROR_NOMATCH, and "Partial match:" followed by the
718
+ partially matching substring when pcre[16|32]_exec() returns
719
+ PCRE_ERROR_PARTIAL. (Note that this is the entire substring that was
720
+ inspected during the partial match; it may include characters before
721
+ the actual match start if a lookbehind assertion, \K, \b, or \B was
722
+ involved.) For any other return, pcretest outputs the PCRE negative
723
+ error number and a short descriptive phrase. If the error is a failed
724
+ UTF string check, the offset of the start of the failing character and
725
+ the reason code are also output, provided that the size of the output
726
+ vector is at least two. Here is an example of an interactive pcretest
727
+ run.
728
+
729
+ $ pcretest
730
+ PCRE version 8.13 2011-04-30
731
+
732
+ re> /^abc(\d+)/
733
+ data> abc123
734
+ 0: abc123
735
+ 1: 123
736
+ data> xyz
737
+ No match
738
+
739
+ Unset capturing substrings that are not followed by one that is set are
740
+ not returned by pcre[16|32]_exec(), and are not shown by pcretest. In
741
+ the following example, there are two capturing substrings, but when the
742
+ first data line is matched, the second, unset substring is not shown.
743
+ An "internal" unset substring is shown as "<unset>", as for the second
744
+ data line.
745
+
746
+ re> /(a)|(b)/
747
+ data> a
748
+ 0: a
749
+ 1: a
750
+ data> b
751
+ 0: b
752
+ 1: <unset>
753
+ 2: b
754
+
755
+ If the strings contain any non-printing characters, they are output as
756
+ \xhh escapes if the value is less than 256 and UTF mode is not set.
757
+ Otherwise they are output as \x{hh...} escapes. See below for the defi-
758
+ nition of non-printing characters. If the pattern has the /+ modifier,
759
+ the output for substring 0 is followed by the the rest of the subject
760
+ string, identified by "0+" like this:
761
+
762
+ re> /cat/+
763
+ data> cataract
764
+ 0: cat
765
+ 0+ aract
766
+
767
+ If the pattern has the /g or /G modifier, the results of successive
768
+ matching attempts are output in sequence, like this:
769
+
770
+ re> /\Bi(\w\w)/g
771
+ data> Mississippi
772
+ 0: iss
773
+ 1: ss
774
+ 0: iss
775
+ 1: ss
776
+ 0: ipp
777
+ 1: pp
778
+
779
+ "No match" is output only if the first match attempt fails. Here is an
780
+ example of a failure message (the offset 4 that is specified by \>4 is
781
+ past the end of the subject string):
782
+
783
+ re> /xyz/
784
+ data> xyz\>4
785
+ Error -24 (bad offset value)
786
+
787
+ If any of the sequences \C, \G, or \L are present in a data line that
788
+ is successfully matched, the substrings extracted by the convenience
789
+ functions are output with C, G, or L after the string number instead of
790
+ a colon. This is in addition to the normal full list. The string length
791
+ (that is, the return from the extraction function) is given in paren-
792
+ theses after each string for \C and \G.
793
+
794
+ Note that whereas patterns can be continued over several lines (a plain
795
+ ">" prompt is used for continuations), data lines may not. However new-
796
+ lines can be included in data by means of the \n escape (or \r, \r\n,
797
+ etc., depending on the newline sequence setting).
798
+
799
+
800
+ OUTPUT FROM THE ALTERNATIVE MATCHING FUNCTION
801
+
802
+ When the alternative matching function, pcre[16|32]_dfa_exec(), is used
803
+ (by means of the \D escape sequence or the -dfa command line option),
804
+ the output consists of a list of all the matches that start at the
805
+ first point in the subject where there is at least one match. For exam-
806
+ ple:
807
+
808
+ re> /(tang|tangerine|tan)/
809
+ data> yellow tangerine\D
810
+ 0: tangerine
811
+ 1: tang
812
+ 2: tan
813
+
814
+ (Using the normal matching function on this data finds only "tang".)
815
+ The longest matching string is always given first (and numbered zero).
816
+ After a PCRE_ERROR_PARTIAL return, the output is "Partial match:", fol-
817
+ lowed by the partially matching substring. (Note that this is the
818
+ entire substring that was inspected during the partial match; it may
819
+ include characters before the actual match start if a lookbehind asser-
820
+ tion, \K, \b, or \B was involved.)
821
+
822
+ If /g is present on the pattern, the search for further matches resumes
823
+ at the end of the longest match. For example:
824
+
825
+ re> /(tang|tangerine|tan)/g
826
+ data> yellow tangerine and tangy sultana\D
827
+ 0: tangerine
828
+ 1: tang
829
+ 2: tan
830
+ 0: tang
831
+ 1: tan
832
+ 0: tan
833
+
834
+ Since the matching function does not support substring capture, the
835
+ escape sequences that are concerned with captured substrings are not
836
+ relevant.
837
+
838
+
839
+ RESTARTING AFTER A PARTIAL MATCH
840
+
841
+ When the alternative matching function has given the PCRE_ERROR_PARTIAL
842
+ return, indicating that the subject partially matched the pattern, you
843
+ can restart the match with additional subject data by means of the \R
844
+ escape sequence. For example:
845
+
846
+ re> /^\d?\d(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\d\d$/
847
+ data> 23ja\P\D
848
+ Partial match: 23ja
849
+ data> n05\R\D
850
+ 0: n05
851
+
852
+ For further information about partial matching, see the pcrepartial
853
+ documentation.
854
+
855
+
856
+ CALLOUTS
857
+
858
+ If the pattern contains any callout requests, pcretest's callout func-
859
+ tion is called during matching. This works with both matching func-
860
+ tions. By default, the called function displays the callout number, the
861
+ start and current positions in the text at the callout time, and the
862
+ next pattern item to be tested. For example:
863
+
864
+ --->pqrabcdef
865
+ 0 ^ ^ \d
866
+
867
+ This output indicates that callout number 0 occurred for a match
868
+ attempt starting at the fourth character of the subject string, when
869
+ the pointer was at the seventh character of the data, and when the next
870
+ pattern item was \d. Just one circumflex is output if the start and
871
+ current positions are the same.
872
+
873
+ Callouts numbered 255 are assumed to be automatic callouts, inserted as
874
+ a result of the /C pattern modifier. In this case, instead of showing
875
+ the callout number, the offset in the pattern, preceded by a plus, is
876
+ output. For example:
877
+
878
+ re> /\d?[A-E]\*/C
879
+ data> E*
880
+ --->E*
881
+ +0 ^ \d?
882
+ +3 ^ [A-E]
883
+ +8 ^^ \*
884
+ +10 ^ ^
885
+ 0: E*
886
+
887
+ If a pattern contains (*MARK) items, an additional line is output when-
888
+ ever a change of latest mark is passed to the callout function. For
889
+ example:
890
+
891
+ re> /a(*MARK:X)bc/C
892
+ data> abc
893
+ --->abc
894
+ +0 ^ a
895
+ +1 ^^ (*MARK:X)
896
+ +10 ^^ b
897
+ Latest Mark: X
898
+ +11 ^ ^ c
899
+ +12 ^ ^
900
+ 0: abc
901
+
902
+ The mark changes between matching "a" and "b", but stays the same for
903
+ the rest of the match, so nothing more is output. If, as a result of
904
+ backtracking, the mark reverts to being unset, the text "<unset>" is
905
+ output.
906
+
907
+ The callout function in pcretest returns zero (carry on matching) by
908
+ default, but you can use a \C item in a data line (as described above)
909
+ to change this and other parameters of the callout.
910
+
911
+ Inserting callouts can be helpful when using pcretest to check compli-
912
+ cated regular expressions. For further information about callouts, see
913
+ the pcrecallout documentation.
914
+
915
+
916
+ NON-PRINTING CHARACTERS
917
+
918
+ When pcretest is outputting text in the compiled version of a pattern,
919
+ bytes other than 32-126 are always treated as non-printing characters
920
+ are are therefore shown as hex escapes.
921
+
922
+ When pcretest is outputting text that is a matched part of a subject
923
+ string, it behaves in the same way, unless a different locale has been
924
+ set for the pattern (using the /L modifier). In this case, the
925
+ isprint() function to distinguish printing and non-printing characters.
926
+
927
+
928
+ SAVING AND RELOADING COMPILED PATTERNS
929
+
930
+ The facilities described in this section are not available when the
931
+ POSIX interface to PCRE is being used, that is, when the /P pattern
932
+ modifier is specified.
933
+
934
+ When the POSIX interface is not in use, you can cause pcretest to write
935
+ a compiled pattern to a file, by following the modifiers with > and a
936
+ file name. For example:
937
+
938
+ /pattern/im >/some/file
939
+
940
+ See the pcreprecompile documentation for a discussion about saving and
941
+ re-using compiled patterns. Note that if the pattern was successfully
942
+ studied with JIT optimization, the JIT data cannot be saved.
943
+
944
+ The data that is written is binary. The first eight bytes are the
945
+ length of the compiled pattern data followed by the length of the
946
+ optional study data, each written as four bytes in big-endian order
947
+ (most significant byte first). If there is no study data (either the
948
+ pattern was not studied, or studying did not return any data), the sec-
949
+ ond length is zero. The lengths are followed by an exact copy of the
950
+ compiled pattern. If there is additional study data, this (excluding
951
+ any JIT data) follows immediately after the compiled pattern. After
952
+ writing the file, pcretest expects to read a new pattern.
953
+
954
+ A saved pattern can be reloaded into pcretest by specifying < and a
955
+ file name instead of a pattern. The name of the file must not contain a
956
+ < character, as otherwise pcretest will interpret the line as a pattern
957
+ delimited by < characters. For example:
958
+
959
+ re> </some/file
960
+ Compiled pattern loaded from /some/file
961
+ No study data
962
+
963
+ If the pattern was previously studied with the JIT optimization, the
964
+ JIT information cannot be saved and restored, and so is lost. When the
965
+ pattern has been loaded, pcretest proceeds to read data lines in the
966
+ usual way.
967
+
968
+ You can copy a file written by pcretest to a different host and reload
969
+ it there, even if the new host has opposite endianness to the one on
970
+ which the pattern was compiled. For example, you can compile on an i86
971
+ machine and run on a SPARC machine. When a pattern is reloaded on a
972
+ host with different endianness, the confirmation message is changed to:
973
+
974
+ Compiled pattern (byte-inverted) loaded from /some/file
975
+
976
+ The test suite contains some saved pre-compiled patterns with different
977
+ endianness. These are reloaded using "<!" instead of just "<". This
978
+ suppresses the "(byte-inverted)" text so that the output is the same on
979
+ all hosts. It also forces debugging output once the pattern has been
980
+ reloaded.
981
+
982
+ File names for saving and reloading can be absolute or relative, but
983
+ note that the shell facility of expanding a file name that starts with
984
+ a tilde (~) is not available.
985
+
986
+ The ability to save and reload files in pcretest is intended for test-
987
+ ing and experimentation. It is not intended for production use because
988
+ only a single pattern can be written to a file. Furthermore, there is
989
+ no facility for supplying custom character tables for use with a
990
+ reloaded pattern. If the original pattern was compiled with custom
991
+ tables, an attempt to match a subject string using a reloaded pattern
992
+ is likely to cause pcretest to crash. Finally, if you attempt to load
993
+ a file that is not in the correct format, the result is undefined.
994
+
995
+
996
+ SEE ALSO
997
+
998
+ pcre(3), pcre16(3), pcre32(3), pcreapi(3), pcrecallout(3), pcrejit,
999
+ pcrematching(3), pcrepartial(d), pcrepattern(3), pcreprecompile(3).
1000
+
1001
+
1002
+ AUTHOR
1003
+
1004
+ Philip Hazel
1005
+ University Computing Service
1006
+ Cambridge CB2 3QH, England.
1007
+
1008
+
1009
+ REVISION
1010
+
1011
+ Last updated: 10 September 2012
1012
+ Copyright (c) 1997-2012 University of Cambridge.