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,757 @@
1
+ <html>
2
+ <head>
3
+ <title>pcregrep specification</title>
4
+ </head>
5
+ <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6
+ <h1>pcregrep man page</h1>
7
+ <p>
8
+ Return to the <a href="index.html">PCRE index page</a>.
9
+ </p>
10
+ <p>
11
+ This page is part of the PCRE HTML documentation. It was generated automatically
12
+ from the original man page. If there is any nonsense in it, please consult the
13
+ man page, in case the conversion went wrong.
14
+ <br>
15
+ <ul>
16
+ <li><a name="TOC1" href="#SEC1">SYNOPSIS</a>
17
+ <li><a name="TOC2" href="#SEC2">DESCRIPTION</a>
18
+ <li><a name="TOC3" href="#SEC3">SUPPORT FOR COMPRESSED FILES</a>
19
+ <li><a name="TOC4" href="#SEC4">BINARY FILES</a>
20
+ <li><a name="TOC5" href="#SEC5">OPTIONS</a>
21
+ <li><a name="TOC6" href="#SEC6">ENVIRONMENT VARIABLES</a>
22
+ <li><a name="TOC7" href="#SEC7">NEWLINES</a>
23
+ <li><a name="TOC8" href="#SEC8">OPTIONS COMPATIBILITY</a>
24
+ <li><a name="TOC9" href="#SEC9">OPTIONS WITH DATA</a>
25
+ <li><a name="TOC10" href="#SEC10">MATCHING ERRORS</a>
26
+ <li><a name="TOC11" href="#SEC11">DIAGNOSTICS</a>
27
+ <li><a name="TOC12" href="#SEC12">SEE ALSO</a>
28
+ <li><a name="TOC13" href="#SEC13">AUTHOR</a>
29
+ <li><a name="TOC14" href="#SEC14">REVISION</a>
30
+ </ul>
31
+ <br><a name="SEC1" href="#TOC1">SYNOPSIS</a><br>
32
+ <P>
33
+ <b>pcregrep [options] [long options] [pattern] [path1 path2 ...]</b>
34
+ </P>
35
+ <br><a name="SEC2" href="#TOC1">DESCRIPTION</a><br>
36
+ <P>
37
+ <b>pcregrep</b> searches files for character patterns, in the same way as other
38
+ grep commands do, but it uses the PCRE regular expression library to support
39
+ patterns that are compatible with the regular expressions of Perl 5. See
40
+ <a href="pcrepattern.html"><b>pcrepattern</b>(3)</a>
41
+ for a full description of syntax and semantics of the regular expressions
42
+ that PCRE supports.
43
+ </P>
44
+ <P>
45
+ Patterns, whether supplied on the command line or in a separate file, are given
46
+ without delimiters. For example:
47
+ <pre>
48
+ pcregrep Thursday /etc/motd
49
+ </pre>
50
+ If you attempt to use delimiters (for example, by surrounding a pattern with
51
+ slashes, as is common in Perl scripts), they are interpreted as part of the
52
+ pattern. Quotes can of course be used to delimit patterns on the command line
53
+ because they are interpreted by the shell, and indeed quotes are required if a
54
+ pattern contains white space or shell metacharacters.
55
+ </P>
56
+ <P>
57
+ The first argument that follows any option settings is treated as the single
58
+ pattern to be matched when neither <b>-e</b> nor <b>-f</b> is present.
59
+ Conversely, when one or both of these options are used to specify patterns, all
60
+ arguments are treated as path names. At least one of <b>-e</b>, <b>-f</b>, or an
61
+ argument pattern must be provided.
62
+ </P>
63
+ <P>
64
+ If no files are specified, <b>pcregrep</b> reads the standard input. The
65
+ standard input can also be referenced by a name consisting of a single hyphen.
66
+ For example:
67
+ <pre>
68
+ pcregrep some-pattern /file1 - /file3
69
+ </pre>
70
+ By default, each line that matches a pattern is copied to the standard
71
+ output, and if there is more than one file, the file name is output at the
72
+ start of each line, followed by a colon. However, there are options that can
73
+ change how <b>pcregrep</b> behaves. In particular, the <b>-M</b> option makes it
74
+ possible to search for patterns that span line boundaries. What defines a line
75
+ boundary is controlled by the <b>-N</b> (<b>--newline</b>) option.
76
+ </P>
77
+ <P>
78
+ The amount of memory used for buffering files that are being scanned is
79
+ controlled by a parameter that can be set by the <b>--buffer-size</b> option.
80
+ The default value for this parameter is specified when <b>pcregrep</b> is built,
81
+ with the default default being 20K. A block of memory three times this size is
82
+ used (to allow for buffering "before" and "after" lines). An error occurs if a
83
+ line overflows the buffer.
84
+ </P>
85
+ <P>
86
+ Patterns can be no longer than 8K or BUFSIZ bytes, whichever is the greater.
87
+ BUFSIZ is defined in <b>&#60;stdio.h&#62;</b>. When there is more than one pattern
88
+ (specified by the use of <b>-e</b> and/or <b>-f</b>), each pattern is applied to
89
+ each line in the order in which they are defined, except that all the <b>-e</b>
90
+ patterns are tried before the <b>-f</b> patterns.
91
+ </P>
92
+ <P>
93
+ By default, as soon as one pattern matches a line, no further patterns are
94
+ considered. However, if <b>--colour</b> (or <b>--color</b>) is used to colour the
95
+ matching substrings, or if <b>--only-matching</b>, <b>--file-offsets</b>, or
96
+ <b>--line-offsets</b> is used to output only the part of the line that matched
97
+ (either shown literally, or as an offset), scanning resumes immediately
98
+ following the match, so that further matches on the same line can be found. If
99
+ there are multiple patterns, they are all tried on the remainder of the line,
100
+ but patterns that follow the one that matched are not tried on the earlier part
101
+ of the line.
102
+ </P>
103
+ <P>
104
+ This behaviour means that the order in which multiple patterns are specified
105
+ can affect the output when one of the above options is used. This is no longer
106
+ the same behaviour as GNU grep, which now manages to display earlier matches
107
+ for later patterns (as long as there is no overlap).
108
+ </P>
109
+ <P>
110
+ Patterns that can match an empty string are accepted, but empty string
111
+ matches are never recognized. An example is the pattern "(super)?(man)?", in
112
+ which all components are optional. This pattern finds all occurrences of both
113
+ "super" and "man"; the output differs from matching with "super|man" when only
114
+ the matching substrings are being shown.
115
+ </P>
116
+ <P>
117
+ If the <b>LC_ALL</b> or <b>LC_CTYPE</b> environment variable is set,
118
+ <b>pcregrep</b> uses the value to set a locale when calling the PCRE library.
119
+ The <b>--locale</b> option can be used to override this.
120
+ </P>
121
+ <br><a name="SEC3" href="#TOC1">SUPPORT FOR COMPRESSED FILES</a><br>
122
+ <P>
123
+ It is possible to compile <b>pcregrep</b> so that it uses <b>libz</b> or
124
+ <b>libbz2</b> to read files whose names end in <b>.gz</b> or <b>.bz2</b>,
125
+ respectively. You can find out whether your binary has support for one or both
126
+ of these file types by running it with the <b>--help</b> option. If the
127
+ appropriate support is not present, files are treated as plain text. The
128
+ standard input is always so treated.
129
+ </P>
130
+ <br><a name="SEC4" href="#TOC1">BINARY FILES</a><br>
131
+ <P>
132
+ By default, a file that contains a binary zero byte within the first 1024 bytes
133
+ is identified as a binary file, and is processed specially. (GNU grep also
134
+ identifies binary files in this manner.) See the <b>--binary-files</b> option
135
+ for a means of changing the way binary files are handled.
136
+ </P>
137
+ <br><a name="SEC5" href="#TOC1">OPTIONS</a><br>
138
+ <P>
139
+ The order in which some of the options appear can affect the output. For
140
+ example, both the <b>-h</b> and <b>-l</b> options affect the printing of file
141
+ names. Whichever comes later in the command line will be the one that takes
142
+ effect. Similarly, except where noted below, if an option is given twice, the
143
+ later setting is used. Numerical values for options may be followed by K or M,
144
+ to signify multiplication by 1024 or 1024*1024 respectively.
145
+ </P>
146
+ <P>
147
+ <b>--</b>
148
+ This terminates the list of options. It is useful if the next item on the
149
+ command line starts with a hyphen but is not an option. This allows for the
150
+ processing of patterns and filenames that start with hyphens.
151
+ </P>
152
+ <P>
153
+ <b>-A</b> <i>number</i>, <b>--after-context=</b><i>number</i>
154
+ Output <i>number</i> lines of context after each matching line. If filenames
155
+ and/or line numbers are being output, a hyphen separator is used instead of a
156
+ colon for the context lines. A line containing "--" is output between each
157
+ group of lines, unless they are in fact contiguous in the input file. The value
158
+ of <i>number</i> is expected to be relatively small. However, <b>pcregrep</b>
159
+ guarantees to have up to 8K of following text available for context output.
160
+ </P>
161
+ <P>
162
+ <b>-a</b>, <b>--text</b>
163
+ Treat binary files as text. This is equivalent to
164
+ <b>--binary-files</b>=<i>text</i>.
165
+ </P>
166
+ <P>
167
+ <b>-B</b> <i>number</i>, <b>--before-context=</b><i>number</i>
168
+ Output <i>number</i> lines of context before each matching line. If filenames
169
+ and/or line numbers are being output, a hyphen separator is used instead of a
170
+ colon for the context lines. A line containing "--" is output between each
171
+ group of lines, unless they are in fact contiguous in the input file. The value
172
+ of <i>number</i> is expected to be relatively small. However, <b>pcregrep</b>
173
+ guarantees to have up to 8K of preceding text available for context output.
174
+ </P>
175
+ <P>
176
+ <b>--binary-files=</b><i>word</i>
177
+ Specify how binary files are to be processed. If the word is "binary" (the
178
+ default), pattern matching is performed on binary files, but the only output is
179
+ "Binary file &#60;name&#62; matches" when a match succeeds. If the word is "text",
180
+ which is equivalent to the <b>-a</b> or <b>--text</b> option, binary files are
181
+ processed in the same way as any other file. In this case, when a match
182
+ succeeds, the output may be binary garbage, which can have nasty effects if
183
+ sent to a terminal. If the word is "without-match", which is equivalent to the
184
+ <b>-I</b> option, binary files are not processed at all; they are assumed not to
185
+ be of interest.
186
+ </P>
187
+ <P>
188
+ <b>--buffer-size=</b><i>number</i>
189
+ Set the parameter that controls how much memory is used for buffering files
190
+ that are being scanned.
191
+ </P>
192
+ <P>
193
+ <b>-C</b> <i>number</i>, <b>--context=</b><i>number</i>
194
+ Output <i>number</i> lines of context both before and after each matching line.
195
+ This is equivalent to setting both <b>-A</b> and <b>-B</b> to the same value.
196
+ </P>
197
+ <P>
198
+ <b>-c</b>, <b>--count</b>
199
+ Do not output individual lines from the files that are being scanned; instead
200
+ output the number of lines that would otherwise have been shown. If no lines
201
+ are selected, the number zero is output. If several files are are being
202
+ scanned, a count is output for each of them. However, if the
203
+ <b>--files-with-matches</b> option is also used, only those files whose counts
204
+ are greater than zero are listed. When <b>-c</b> is used, the <b>-A</b>,
205
+ <b>-B</b>, and <b>-C</b> options are ignored.
206
+ </P>
207
+ <P>
208
+ <b>--colour</b>, <b>--color</b>
209
+ If this option is given without any data, it is equivalent to "--colour=auto".
210
+ If data is required, it must be given in the same shell item, separated by an
211
+ equals sign.
212
+ </P>
213
+ <P>
214
+ <b>--colour=</b><i>value</i>, <b>--color=</b><i>value</i>
215
+ This option specifies under what circumstances the parts of a line that matched
216
+ a pattern should be coloured in the output. By default, the output is not
217
+ coloured. The value (which is optional, see above) may be "never", "always", or
218
+ "auto". In the latter case, colouring happens only if the standard output is
219
+ connected to a terminal. More resources are used when colouring is enabled,
220
+ because <b>pcregrep</b> has to search for all possible matches in a line, not
221
+ just one, in order to colour them all.
222
+ <br>
223
+ <br>
224
+ The colour that is used can be specified by setting the environment variable
225
+ PCREGREP_COLOUR or PCREGREP_COLOR. The value of this variable should be a
226
+ string of two numbers, separated by a semicolon. They are copied directly into
227
+ the control string for setting colour on a terminal, so it is your
228
+ responsibility to ensure that they make sense. If neither of the environment
229
+ variables is set, the default is "1;31", which gives red.
230
+ </P>
231
+ <P>
232
+ <b>-D</b> <i>action</i>, <b>--devices=</b><i>action</i>
233
+ If an input path is not a regular file or a directory, "action" specifies how
234
+ it is to be processed. Valid values are "read" (the default) or "skip"
235
+ (silently skip the path).
236
+ </P>
237
+ <P>
238
+ <b>-d</b> <i>action</i>, <b>--directories=</b><i>action</i>
239
+ If an input path is a directory, "action" specifies how it is to be processed.
240
+ Valid values are "read" (the default in non-Windows environments, for
241
+ compatibility with GNU grep), "recurse" (equivalent to the <b>-r</b> option), or
242
+ "skip" (silently skip the path, the default in Windows environments). In the
243
+ "read" case, directories are read as if they were ordinary files. In some
244
+ operating systems the effect of reading a directory like this is an immediate
245
+ end-of-file; in others it may provoke an error.
246
+ </P>
247
+ <P>
248
+ <b>-e</b> <i>pattern</i>, <b>--regex=</b><i>pattern</i>, <b>--regexp=</b><i>pattern</i>
249
+ Specify a pattern to be matched. This option can be used multiple times in
250
+ order to specify several patterns. It can also be used as a way of specifying a
251
+ single pattern that starts with a hyphen. When <b>-e</b> is used, no argument
252
+ pattern is taken from the command line; all arguments are treated as file
253
+ names. There is no limit to the number of patterns. They are applied to each
254
+ line in the order in which they are defined until one matches.
255
+ <br>
256
+ <br>
257
+ If <b>-f</b> is used with <b>-e</b>, the command line patterns are matched first,
258
+ followed by the patterns from the file(s), independent of the order in which
259
+ these options are specified. Note that multiple use of <b>-e</b> is not the same
260
+ as a single pattern with alternatives. For example, X|Y finds the first
261
+ character in a line that is X or Y, whereas if the two patterns are given
262
+ separately, with X first, <b>pcregrep</b> finds X if it is present, even if it
263
+ follows Y in the line. It finds Y only if there is no X in the line. This
264
+ matters only if you are using <b>-o</b> or <b>--colo(u)r</b> to show the part(s)
265
+ of the line that matched.
266
+ </P>
267
+ <P>
268
+ <b>--exclude</b>=<i>pattern</i>
269
+ Files (but not directories) whose names match the pattern are skipped without
270
+ being processed. This applies to all files, whether listed on the command line,
271
+ obtained from <b>--file-list</b>, or by scanning a directory. The pattern is a
272
+ PCRE regular expression, and is matched against the final component of the file
273
+ name, not the entire path. The <b>-F</b>, <b>-w</b>, and <b>-x</b> options do not
274
+ apply to this pattern. The option may be given any number of times in order to
275
+ specify multiple patterns. If a file name matches both an <b>--include</b>
276
+ and an <b>--exclude</b> pattern, it is excluded. There is no short form for this
277
+ option.
278
+ </P>
279
+ <P>
280
+ <b>--exclude-from=</b><i>filename</i>
281
+ Treat each non-empty line of the file as the data for an <b>--exclude</b>
282
+ option. What constitutes a newline when reading the file is the operating
283
+ system's default. The <b>--newline</b> option has no effect on this option. This
284
+ option may be given more than once in order to specify a number of files to
285
+ read.
286
+ </P>
287
+ <P>
288
+ <b>--exclude-dir</b>=<i>pattern</i>
289
+ Directories whose names match the pattern are skipped without being processed,
290
+ whatever the setting of the <b>--recursive</b> option. This applies to all
291
+ directories, whether listed on the command line, obtained from
292
+ <b>--file-list</b>, or by scanning a parent directory. The pattern is a PCRE
293
+ regular expression, and is matched against the final component of the directory
294
+ name, not the entire path. The <b>-F</b>, <b>-w</b>, and <b>-x</b> options do not
295
+ apply to this pattern. The option may be given any number of times in order to
296
+ specify more than one pattern. If a directory matches both <b>--include-dir</b>
297
+ and <b>--exclude-dir</b>, it is excluded. There is no short form for this
298
+ option.
299
+ </P>
300
+ <P>
301
+ <b>-F</b>, <b>--fixed-strings</b>
302
+ Interpret each data-matching pattern as a list of fixed strings, separated by
303
+ newlines, instead of as a regular expression. What constitutes a newline for
304
+ this purpose is controlled by the <b>--newline</b> option. The <b>-w</b> (match
305
+ as a word) and <b>-x</b> (match whole line) options can be used with <b>-F</b>.
306
+ They apply to each of the fixed strings. A line is selected if any of the fixed
307
+ strings are found in it (subject to <b>-w</b> or <b>-x</b>, if present). This
308
+ option applies only to the patterns that are matched against the contents of
309
+ files; it does not apply to patterns specified by any of the <b>--include</b> or
310
+ <b>--exclude</b> options.
311
+ </P>
312
+ <P>
313
+ <b>-f</b> <i>filename</i>, <b>--file=</b><i>filename</i>
314
+ Read patterns from the file, one per line, and match them against
315
+ each line of input. What constitutes a newline when reading the file is the
316
+ operating system's default. The <b>--newline</b> option has no effect on this
317
+ option. Trailing white space is removed from each line, and blank lines are
318
+ ignored. An empty file contains no patterns and therefore matches nothing. See
319
+ also the comments about multiple patterns versus a single pattern with
320
+ alternatives in the description of <b>-e</b> above.
321
+ <br>
322
+ <br>
323
+ If this option is given more than once, all the specified files are
324
+ read. A data line is output if any of the patterns match it. A filename can
325
+ be given as "-" to refer to the standard input. When <b>-f</b> is used, patterns
326
+ specified on the command line using <b>-e</b> may also be present; they are
327
+ tested before the file's patterns. However, no other pattern is taken from the
328
+ command line; all arguments are treated as the names of paths to be searched.
329
+ </P>
330
+ <P>
331
+ <b>--file-list</b>=<i>filename</i>
332
+ Read a list of files and/or directories that are to be scanned from the given
333
+ file, one per line. Trailing white space is removed from each line, and blank
334
+ lines are ignored. These paths are processed before any that are listed on the
335
+ command line. The filename can be given as "-" to refer to the standard input.
336
+ If <b>--file</b> and <b>--file-list</b> are both specified as "-", patterns are
337
+ read first. This is useful only when the standard input is a terminal, from
338
+ which further lines (the list of files) can be read after an end-of-file
339
+ indication. If this option is given more than once, all the specified files are
340
+ read.
341
+ </P>
342
+ <P>
343
+ <b>--file-offsets</b>
344
+ Instead of showing lines or parts of lines that match, show each match as an
345
+ offset from the start of the file and a length, separated by a comma. In this
346
+ mode, no context is shown. That is, the <b>-A</b>, <b>-B</b>, and <b>-C</b>
347
+ options are ignored. If there is more than one match in a line, each of them is
348
+ shown separately. This option is mutually exclusive with <b>--line-offsets</b>
349
+ and <b>--only-matching</b>.
350
+ </P>
351
+ <P>
352
+ <b>-H</b>, <b>--with-filename</b>
353
+ Force the inclusion of the filename at the start of output lines when searching
354
+ a single file. By default, the filename is not shown in this case. For matching
355
+ lines, the filename is followed by a colon; for context lines, a hyphen
356
+ separator is used. If a line number is also being output, it follows the file
357
+ name.
358
+ </P>
359
+ <P>
360
+ <b>-h</b>, <b>--no-filename</b>
361
+ Suppress the output filenames when searching multiple files. By default,
362
+ filenames are shown when multiple files are searched. For matching lines, the
363
+ filename is followed by a colon; for context lines, a hyphen separator is used.
364
+ If a line number is also being output, it follows the file name.
365
+ </P>
366
+ <P>
367
+ <b>--help</b>
368
+ Output a help message, giving brief details of the command options and file
369
+ type support, and then exit. Anything else on the command line is
370
+ ignored.
371
+ </P>
372
+ <P>
373
+ <b>-I</b>
374
+ Treat binary files as never matching. This is equivalent to
375
+ <b>--binary-files</b>=<i>without-match</i>.
376
+ </P>
377
+ <P>
378
+ <b>-i</b>, <b>--ignore-case</b>
379
+ Ignore upper/lower case distinctions during comparisons.
380
+ </P>
381
+ <P>
382
+ <b>--include</b>=<i>pattern</i>
383
+ If any <b>--include</b> patterns are specified, the only files that are
384
+ processed are those that match one of the patterns (and do not match an
385
+ <b>--exclude</b> pattern). This option does not affect directories, but it
386
+ applies to all files, whether listed on the command line, obtained from
387
+ <b>--file-list</b>, or by scanning a directory. The pattern is a PCRE regular
388
+ expression, and is matched against the final component of the file name, not
389
+ the entire path. The <b>-F</b>, <b>-w</b>, and <b>-x</b> options do not apply to
390
+ this pattern. The option may be given any number of times. If a file name
391
+ matches both an <b>--include</b> and an <b>--exclude</b> pattern, it is excluded.
392
+ There is no short form for this option.
393
+ </P>
394
+ <P>
395
+ <b>--include-from=</b><i>filename</i>
396
+ Treat each non-empty line of the file as the data for an <b>--include</b>
397
+ option. What constitutes a newline for this purpose is the operating system's
398
+ default. The <b>--newline</b> option has no effect on this option. This option
399
+ may be given any number of times; all the files are read.
400
+ </P>
401
+ <P>
402
+ <b>--include-dir</b>=<i>pattern</i>
403
+ If any <b>--include-dir</b> patterns are specified, the only directories that
404
+ are processed are those that match one of the patterns (and do not match an
405
+ <b>--exclude-dir</b> pattern). This applies to all directories, whether listed
406
+ on the command line, obtained from <b>--file-list</b>, or by scanning a parent
407
+ directory. The pattern is a PCRE regular expression, and is matched against the
408
+ final component of the directory name, not the entire path. The <b>-F</b>,
409
+ <b>-w</b>, and <b>-x</b> options do not apply to this pattern. The option may be
410
+ given any number of times. If a directory matches both <b>--include-dir</b> and
411
+ <b>--exclude-dir</b>, it is excluded. There is no short form for this option.
412
+ </P>
413
+ <P>
414
+ <b>-L</b>, <b>--files-without-match</b>
415
+ Instead of outputting lines from the files, just output the names of the files
416
+ that do not contain any lines that would have been output. Each file name is
417
+ output once, on a separate line.
418
+ </P>
419
+ <P>
420
+ <b>-l</b>, <b>--files-with-matches</b>
421
+ Instead of outputting lines from the files, just output the names of the files
422
+ containing lines that would have been output. Each file name is output
423
+ once, on a separate line. Searching normally stops as soon as a matching line
424
+ is found in a file. However, if the <b>-c</b> (count) option is also used,
425
+ matching continues in order to obtain the correct count, and those files that
426
+ have at least one match are listed along with their counts. Using this option
427
+ with <b>-c</b> is a way of suppressing the listing of files with no matches.
428
+ </P>
429
+ <P>
430
+ <b>--label</b>=<i>name</i>
431
+ This option supplies a name to be used for the standard input when file names
432
+ are being output. If not supplied, "(standard input)" is used. There is no
433
+ short form for this option.
434
+ </P>
435
+ <P>
436
+ <b>--line-buffered</b>
437
+ When this option is given, input is read and processed line by line, and the
438
+ output is flushed after each write. By default, input is read in large chunks,
439
+ unless <b>pcregrep</b> can determine that it is reading from a terminal (which
440
+ is currently possible only in Unix-like environments). Output to terminal is
441
+ normally automatically flushed by the operating system. This option can be
442
+ useful when the input or output is attached to a pipe and you do not want
443
+ <b>pcregrep</b> to buffer up large amounts of data. However, its use will affect
444
+ performance, and the <b>-M</b> (multiline) option ceases to work.
445
+ </P>
446
+ <P>
447
+ <b>--line-offsets</b>
448
+ Instead of showing lines or parts of lines that match, show each match as a
449
+ line number, the offset from the start of the line, and a length. The line
450
+ number is terminated by a colon (as usual; see the <b>-n</b> option), and the
451
+ offset and length are separated by a comma. In this mode, no context is shown.
452
+ That is, the <b>-A</b>, <b>-B</b>, and <b>-C</b> options are ignored. If there is
453
+ more than one match in a line, each of them is shown separately. This option is
454
+ mutually exclusive with <b>--file-offsets</b> and <b>--only-matching</b>.
455
+ </P>
456
+ <P>
457
+ <b>--locale</b>=<i>locale-name</i>
458
+ This option specifies a locale to be used for pattern matching. It overrides
459
+ the value in the <b>LC_ALL</b> or <b>LC_CTYPE</b> environment variables. If no
460
+ locale is specified, the PCRE library's default (usually the "C" locale) is
461
+ used. There is no short form for this option.
462
+ </P>
463
+ <P>
464
+ <b>--match-limit</b>=<i>number</i>
465
+ Processing some regular expression patterns can require a very large amount of
466
+ memory, leading in some cases to a program crash if not enough is available.
467
+ Other patterns may take a very long time to search for all possible matching
468
+ strings. The <b>pcre_exec()</b> function that is called by <b>pcregrep</b> to do
469
+ the matching has two parameters that can limit the resources that it uses.
470
+ <br>
471
+ <br>
472
+ The <b>--match-limit</b> option provides a means of limiting resource usage
473
+ when processing patterns that are not going to match, but which have a very
474
+ large number of possibilities in their search trees. The classic example is a
475
+ pattern that uses nested unlimited repeats. Internally, PCRE uses a function
476
+ called <b>match()</b> which it calls repeatedly (sometimes recursively). The
477
+ limit set by <b>--match-limit</b> is imposed on the number of times this
478
+ function is called during a match, which has the effect of limiting the amount
479
+ of backtracking that can take place.
480
+ <br>
481
+ <br>
482
+ The <b>--recursion-limit</b> option is similar to <b>--match-limit</b>, but
483
+ instead of limiting the total number of times that <b>match()</b> is called, it
484
+ limits the depth of recursive calls, which in turn limits the amount of memory
485
+ that can be used. The recursion depth is a smaller number than the total number
486
+ of calls, because not all calls to <b>match()</b> are recursive. This limit is
487
+ of use only if it is set smaller than <b>--match-limit</b>.
488
+ <br>
489
+ <br>
490
+ There are no short forms for these options. The default settings are specified
491
+ when the PCRE library is compiled, with the default default being 10 million.
492
+ </P>
493
+ <P>
494
+ <b>-M</b>, <b>--multiline</b>
495
+ Allow patterns to match more than one line. When this option is given, patterns
496
+ may usefully contain literal newline characters and internal occurrences of ^
497
+ and $ characters. The output for a successful match may consist of more than
498
+ one line, the last of which is the one in which the match ended. If the matched
499
+ string ends with a newline sequence the output ends at the end of that line.
500
+ <br>
501
+ <br>
502
+ When this option is set, the PCRE library is called in "multiline" mode.
503
+ There is a limit to the number of lines that can be matched, imposed by the way
504
+ that <b>pcregrep</b> buffers the input file as it scans it. However,
505
+ <b>pcregrep</b> ensures that at least 8K characters or the rest of the document
506
+ (whichever is the shorter) are available for forward matching, and similarly
507
+ the previous 8K characters (or all the previous characters, if fewer than 8K)
508
+ are guaranteed to be available for lookbehind assertions. This option does not
509
+ work when input is read line by line (see \fP--line-buffered\fP.)
510
+ </P>
511
+ <P>
512
+ <b>-N</b> <i>newline-type</i>, <b>--newline</b>=<i>newline-type</i>
513
+ The PCRE library supports five different conventions for indicating
514
+ the ends of lines. They are the single-character sequences CR (carriage return)
515
+ and LF (linefeed), the two-character sequence CRLF, an "anycrlf" convention,
516
+ which recognizes any of the preceding three types, and an "any" convention, in
517
+ which any Unicode line ending sequence is assumed to end a line. The Unicode
518
+ sequences are the three just mentioned, plus VT (vertical tab, U+000B), FF
519
+ (form feed, U+000C), NEL (next line, U+0085), LS (line separator, U+2028), and
520
+ PS (paragraph separator, U+2029).
521
+ <br>
522
+ <br>
523
+ When the PCRE library is built, a default line-ending sequence is specified.
524
+ This is normally the standard sequence for the operating system. Unless
525
+ otherwise specified by this option, <b>pcregrep</b> uses the library's default.
526
+ The possible values for this option are CR, LF, CRLF, ANYCRLF, or ANY. This
527
+ makes it possible to use <b>pcregrep</b> to scan files that have come from other
528
+ environments without having to modify their line endings. If the data that is
529
+ being scanned does not agree with the convention set by this option,
530
+ <b>pcregrep</b> may behave in strange ways. Note that this option does not
531
+ apply to files specified by the <b>-f</b>, <b>--exclude-from</b>, or
532
+ <b>--include-from</b> options, which are expected to use the operating system's
533
+ standard newline sequence.
534
+ </P>
535
+ <P>
536
+ <b>-n</b>, <b>--line-number</b>
537
+ Precede each output line by its line number in the file, followed by a colon
538
+ for matching lines or a hyphen for context lines. If the filename is also being
539
+ output, it precedes the line number. This option is forced if
540
+ <b>--line-offsets</b> is used.
541
+ </P>
542
+ <P>
543
+ <b>--no-jit</b>
544
+ If the PCRE library is built with support for just-in-time compiling (which
545
+ speeds up matching), <b>pcregrep</b> automatically makes use of this, unless it
546
+ was explicitly disabled at build time. This option can be used to disable the
547
+ use of JIT at run time. It is provided for testing and working round problems.
548
+ It should never be needed in normal use.
549
+ </P>
550
+ <P>
551
+ <b>-o</b>, <b>--only-matching</b>
552
+ Show only the part of the line that matched a pattern instead of the whole
553
+ line. In this mode, no context is shown. That is, the <b>-A</b>, <b>-B</b>, and
554
+ <b>-C</b> options are ignored. If there is more than one match in a line, each
555
+ of them is shown separately. If <b>-o</b> is combined with <b>-v</b> (invert the
556
+ sense of the match to find non-matching lines), no output is generated, but the
557
+ return code is set appropriately. If the matched portion of the line is empty,
558
+ nothing is output unless the file name or line number are being printed, in
559
+ which case they are shown on an otherwise empty line. This option is mutually
560
+ exclusive with <b>--file-offsets</b> and <b>--line-offsets</b>.
561
+ </P>
562
+ <P>
563
+ <b>-o</b><i>number</i>, <b>--only-matching</b>=<i>number</i>
564
+ Show only the part of the line that matched the capturing parentheses of the
565
+ given number. Up to 32 capturing parentheses are supported, and -o0 is
566
+ equivalent to <b>-o</b> without a number. Because these options can be given
567
+ without an argument (see above), if an argument is present, it must be given in
568
+ the same shell item, for example, -o3 or --only-matching=2. The comments given
569
+ for the non-argument case above also apply to this case. If the specified
570
+ capturing parentheses do not exist in the pattern, or were not set in the
571
+ match, nothing is output unless the file name or line number are being printed.
572
+ <br>
573
+ <br>
574
+ If this option is given multiple times, multiple substrings are output, in the
575
+ order the options are given. For example, -o3 -o1 -o3 causes the substrings
576
+ matched by capturing parentheses 3 and 1 and then 3 again to be output. By
577
+ default, there is no separator (but see the next option).
578
+ </P>
579
+ <P>
580
+ <b>--om-separator</b>=<i>text</i>
581
+ Specify a separating string for multiple occurrences of <b>-o</b>. The default
582
+ is an empty string. Separating strings are never coloured.
583
+ </P>
584
+ <P>
585
+ <b>-q</b>, <b>--quiet</b>
586
+ Work quietly, that is, display nothing except error messages. The exit
587
+ status indicates whether or not any matches were found.
588
+ </P>
589
+ <P>
590
+ <b>-r</b>, <b>--recursive</b>
591
+ If any given path is a directory, recursively scan the files it contains,
592
+ taking note of any <b>--include</b> and <b>--exclude</b> settings. By default, a
593
+ directory is read as a normal file; in some operating systems this gives an
594
+ immediate end-of-file. This option is a shorthand for setting the <b>-d</b>
595
+ option to "recurse".
596
+ </P>
597
+ <P>
598
+ <b>--recursion-limit</b>=<i>number</i>
599
+ See <b>--match-limit</b> above.
600
+ </P>
601
+ <P>
602
+ <b>-s</b>, <b>--no-messages</b>
603
+ Suppress error messages about non-existent or unreadable files. Such files are
604
+ quietly skipped. However, the return code is still 2, even if matches were
605
+ found in other files.
606
+ </P>
607
+ <P>
608
+ <b>-u</b>, <b>--utf-8</b>
609
+ Operate in UTF-8 mode. This option is available only if PCRE has been compiled
610
+ with UTF-8 support. All patterns (including those for any <b>--exclude</b> and
611
+ <b>--include</b> options) and all subject lines that are scanned must be valid
612
+ strings of UTF-8 characters.
613
+ </P>
614
+ <P>
615
+ <b>-V</b>, <b>--version</b>
616
+ Write the version numbers of <b>pcregrep</b> and the PCRE library to the
617
+ standard output and then exit. Anything else on the command line is
618
+ ignored.
619
+ </P>
620
+ <P>
621
+ <b>-v</b>, <b>--invert-match</b>
622
+ Invert the sense of the match, so that lines which do <i>not</i> match any of
623
+ the patterns are the ones that are found.
624
+ </P>
625
+ <P>
626
+ <b>-w</b>, <b>--word-regex</b>, <b>--word-regexp</b>
627
+ Force the patterns to match only whole words. This is equivalent to having \b
628
+ at the start and end of the pattern. This option applies only to the patterns
629
+ that are matched against the contents of files; it does not apply to patterns
630
+ specified by any of the <b>--include</b> or <b>--exclude</b> options.
631
+ </P>
632
+ <P>
633
+ <b>-x</b>, <b>--line-regex</b>, <b>--line-regexp</b>
634
+ Force the patterns to be anchored (each must start matching at the beginning of
635
+ a line) and in addition, require them to match entire lines. This is equivalent
636
+ to having ^ and $ characters at the start and end of each alternative branch in
637
+ every pattern. This option applies only to the patterns that are matched
638
+ against the contents of files; it does not apply to patterns specified by any
639
+ of the <b>--include</b> or <b>--exclude</b> options.
640
+ </P>
641
+ <br><a name="SEC6" href="#TOC1">ENVIRONMENT VARIABLES</a><br>
642
+ <P>
643
+ The environment variables <b>LC_ALL</b> and <b>LC_CTYPE</b> are examined, in that
644
+ order, for a locale. The first one that is set is used. This can be overridden
645
+ by the <b>--locale</b> option. If no locale is set, the PCRE library's default
646
+ (usually the "C" locale) is used.
647
+ </P>
648
+ <br><a name="SEC7" href="#TOC1">NEWLINES</a><br>
649
+ <P>
650
+ The <b>-N</b> (<b>--newline</b>) option allows <b>pcregrep</b> to scan files with
651
+ different newline conventions from the default. Any parts of the input files
652
+ that are written to the standard output are copied identically, with whatever
653
+ newline sequences they have in the input. However, the setting of this option
654
+ does not affect the interpretation of files specified by the <b>-f</b>,
655
+ <b>--exclude-from</b>, or <b>--include-from</b> options, which are assumed to use
656
+ the operating system's standard newline sequence, nor does it affect the way in
657
+ which <b>pcregrep</b> writes informational messages to the standard error and
658
+ output streams. For these it uses the string "\n" to indicate newlines,
659
+ relying on the C I/O library to convert this to an appropriate sequence.
660
+ </P>
661
+ <br><a name="SEC8" href="#TOC1">OPTIONS COMPATIBILITY</a><br>
662
+ <P>
663
+ Many of the short and long forms of <b>pcregrep</b>'s options are the same
664
+ as in the GNU <b>grep</b> program. Any long option of the form
665
+ <b>--xxx-regexp</b> (GNU terminology) is also available as <b>--xxx-regex</b>
666
+ (PCRE terminology). However, the <b>--file-list</b>, <b>--file-offsets</b>,
667
+ <b>--include-dir</b>, <b>--line-offsets</b>, <b>--locale</b>, <b>--match-limit</b>,
668
+ <b>-M</b>, <b>--multiline</b>, <b>-N</b>, <b>--newline</b>, <b>--om-separator</b>,
669
+ <b>--recursion-limit</b>, <b>-u</b>, and <b>--utf-8</b> options are specific to
670
+ <b>pcregrep</b>, as is the use of the <b>--only-matching</b> option with a
671
+ capturing parentheses number.
672
+ </P>
673
+ <P>
674
+ Although most of the common options work the same way, a few are different in
675
+ <b>pcregrep</b>. For example, the <b>--include</b> option's argument is a glob
676
+ for GNU <b>grep</b>, but a regular expression for <b>pcregrep</b>. If both the
677
+ <b>-c</b> and <b>-l</b> options are given, GNU grep lists only file names,
678
+ without counts, but <b>pcregrep</b> gives the counts.
679
+ </P>
680
+ <br><a name="SEC9" href="#TOC1">OPTIONS WITH DATA</a><br>
681
+ <P>
682
+ There are four different ways in which an option with data can be specified.
683
+ If a short form option is used, the data may follow immediately, or (with one
684
+ exception) in the next command line item. For example:
685
+ <pre>
686
+ -f/some/file
687
+ -f /some/file
688
+ </pre>
689
+ The exception is the <b>-o</b> option, which may appear with or without data.
690
+ Because of this, if data is present, it must follow immediately in the same
691
+ item, for example -o3.
692
+ </P>
693
+ <P>
694
+ If a long form option is used, the data may appear in the same command line
695
+ item, separated by an equals character, or (with two exceptions) it may appear
696
+ in the next command line item. For example:
697
+ <pre>
698
+ --file=/some/file
699
+ --file /some/file
700
+ </pre>
701
+ Note, however, that if you want to supply a file name beginning with ~ as data
702
+ in a shell command, and have the shell expand ~ to a home directory, you must
703
+ separate the file name from the option, because the shell does not treat ~
704
+ specially unless it is at the start of an item.
705
+ </P>
706
+ <P>
707
+ The exceptions to the above are the <b>--colour</b> (or <b>--color</b>) and
708
+ <b>--only-matching</b> options, for which the data is optional. If one of these
709
+ options does have data, it must be given in the first form, using an equals
710
+ character. Otherwise <b>pcregrep</b> will assume that it has no data.
711
+ </P>
712
+ <br><a name="SEC10" href="#TOC1">MATCHING ERRORS</a><br>
713
+ <P>
714
+ It is possible to supply a regular expression that takes a very long time to
715
+ fail to match certain lines. Such patterns normally involve nested indefinite
716
+ repeats, for example: (a+)*\d when matched against a line of a's with no final
717
+ digit. The PCRE matching function has a resource limit that causes it to abort
718
+ in these circumstances. If this happens, <b>pcregrep</b> outputs an error
719
+ message and the line that caused the problem to the standard error stream. If
720
+ there are more than 20 such errors, <b>pcregrep</b> gives up.
721
+ </P>
722
+ <P>
723
+ The <b>--match-limit</b> option of <b>pcregrep</b> can be used to set the overall
724
+ resource limit; there is a second option called <b>--recursion-limit</b> that
725
+ sets a limit on the amount of memory (usually stack) that is used (see the
726
+ discussion of these options above).
727
+ </P>
728
+ <br><a name="SEC11" href="#TOC1">DIAGNOSTICS</a><br>
729
+ <P>
730
+ Exit status is 0 if any matches were found, 1 if no matches were found, and 2
731
+ for syntax errors, overlong lines, non-existent or inaccessible files (even if
732
+ matches were found in other files) or too many matching errors. Using the
733
+ <b>-s</b> option to suppress error messages about inaccessible files does not
734
+ affect the return code.
735
+ </P>
736
+ <br><a name="SEC12" href="#TOC1">SEE ALSO</a><br>
737
+ <P>
738
+ <b>pcrepattern</b>(3), <b>pcresyntax</b>(3), <b>pcretest</b>(1).
739
+ </P>
740
+ <br><a name="SEC13" href="#TOC1">AUTHOR</a><br>
741
+ <P>
742
+ Philip Hazel
743
+ <br>
744
+ University Computing Service
745
+ <br>
746
+ Cambridge CB2 3QH, England.
747
+ <br>
748
+ </P>
749
+ <br><a name="SEC14" href="#TOC1">REVISION</a><br>
750
+ <P>
751
+ Last updated: 13 September 2012
752
+ <br>
753
+ Copyright &copy; 1997-2012 University of Cambridge.
754
+ <br>
755
+ <p>
756
+ Return to the <a href="index.html">PCRE index page</a>.
757
+ </p>