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.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +22 -0
- data/bin/esruby +34 -0
- data/lib/esruby.rb +26 -0
- data/lib/esruby/build.rb +140 -0
- data/lib/esruby/build/configuration.rb +77 -0
- data/lib/esruby/gem.rb +5 -0
- data/lib/esruby/gem/specification.rb +35 -0
- data/resources/build_config.eruby +53 -0
- data/resources/cpp/esruby.cpp +64 -0
- data/resources/cpp/esruby.hpp +42 -0
- data/resources/cpp/main.cpp +9 -0
- data/resources/js/esruby.js +45 -0
- data/resources/mruby/AUTHORS +40 -0
- data/resources/mruby/CONTRIBUTING.md +68 -0
- data/resources/mruby/LEGAL +6 -0
- data/resources/mruby/MITL +20 -0
- data/resources/mruby/Makefile +17 -0
- data/resources/mruby/NEWS +13 -0
- data/resources/mruby/README.md +92 -0
- data/resources/mruby/Rakefile +152 -0
- data/resources/mruby/TODO +10 -0
- data/resources/mruby/appveyor.yml +38 -0
- data/resources/mruby/appveyor_config.rb +50 -0
- data/resources/mruby/benchmark/bm_ao_render.rb +314 -0
- data/resources/mruby/benchmark/bm_app_lc_fizzbuzz.rb +52 -0
- data/resources/mruby/benchmark/bm_fib.rb +7 -0
- data/resources/mruby/benchmark/bm_so_lists.rb +47 -0
- data/resources/mruby/benchmark/build_config_boxing.rb +28 -0
- data/resources/mruby/benchmark/build_config_cc.rb +13 -0
- data/resources/mruby/benchmark/plot.gpl +5 -0
- data/resources/mruby/bin/mirb +0 -0
- data/resources/mruby/bin/mrbc +0 -0
- data/resources/mruby/bin/mruby +0 -0
- data/resources/mruby/bin/mruby-strip +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/README.md +82 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrbgem.rake +63 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/regexp_pcre.rb +232 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/string_pcre.rb +333 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/132html +313 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/AUTHORS +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CMakeLists.txt +959 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/COPYING +5 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ChangeLog +4981 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CheckMan +67 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CleanTxt +113 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Detrail +35 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/HACKING +473 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/INSTALL +370 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/LICENCE +92 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.am +877 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.in +2917 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NEWS +611 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-AUTOTOOLS-BUILD +639 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-UNIX-USE +7 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/PrepareRelease +253 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/README +935 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunGrepTest +551 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest +1015 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest.bat +616 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/aclocal.m4 +1230 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.0 +21280 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.1 +21280 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/requests +273 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.0 +2421 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.1 +1144 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/COPYING-CMAKE-SCRIPTS +22 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindEditline.cmake +17 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindPackageHandleStandardArgs.cmake +58 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindReadline.cmake +29 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/compile +343 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config-cmake.h.in +54 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.guess +1552 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h +392 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.generic +392 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.in +343 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.sub +1804 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure +21280 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure.ac +1082 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/depcomp +708 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/dftables.c +212 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/index.html +180 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre-config.html +109 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre.html +204 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre16.html +383 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_assign_jit_stack.html +76 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile.html +108 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile2.html +112 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_config.html +91 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_named_substring.html +65 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_substring.html +61 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_dfa_exec.html +128 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_exec.html +110 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_study.html +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring.html +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring_list.html +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_fullinfo.html +108 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_named_substring.html +68 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringnumber.html +57 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringtable_entries.html +60 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring.html +64 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring_list.html +61 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_exec.html +108 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_alloc.html +55 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_free.html +48 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_maketables.html +48 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_pattern_to_host_byte_order.html +58 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_refcount.html +51 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_study.html +68 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_utf16_to_host_byte_order.html +57 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_version.html +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreapi.html +2786 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrebuild.html +517 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecallout.html +243 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecompat.html +216 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecpp.html +368 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcredemo.html +426 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcregrep.html +757 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrejit.html +458 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrelimits.html +86 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrematching.html +233 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepartial.html +474 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepattern.html +2953 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreperform.html +195 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreposix.html +292 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreprecompile.html +158 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresample.html +110 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrestack.html +225 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresyntax.html +521 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcretest.html +1082 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreunicode.html +270 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/index.html.src +180 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.1 +92 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.txt +86 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.3 +202 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.txt +9909 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre16.3 +390 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre32.3 +389 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_assign_jit_stack.3 +61 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile.3 +98 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile2.3 +106 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_config.3 +76 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_named_substring.3 +59 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_substring.3 +52 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_dfa_exec.3 +125 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_exec.3 +103 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_study.3 +31 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring.3 +31 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring_list.3 +31 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_fullinfo.3 +95 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_named_substring.3 +62 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringnumber.3 +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringtable_entries.3 +48 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring.3 +55 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring_list.3 +49 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_exec.3 +104 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_alloc.3 +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_free.3 +35 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_maketables.3 +33 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_pattern_to_host_byte_order.3 +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_refcount.3 +36 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_study.3 +56 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf16_to_host_byte_order.3 +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf32_to_host_byte_order.3 +46 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_version.3 +31 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreapi.3 +2823 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrebuild.3 +520 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecallout.3 +214 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecompat.3 +185 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecpp.3 +348 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.1 +679 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.txt +740 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrejit.3 +437 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrelimits.3 +67 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrematching.3 +206 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepartial.3 +445 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepattern.3 +2983 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreperform.3 +177 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreposix.3 +270 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreprecompile.3 +151 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresample.3 +99 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrestack.3 +215 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresyntax.3 +496 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.1 +1079 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.txt +1012 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreunicode.3 +255 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/perltest.txt +42 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/install-sh +527 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre.pc.in +12 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre16.pc.in +12 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre32.pc.in +12 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcrecpp.pc.in +12 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcreposix.pc.in +13 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ltmain.sh +9636 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ax_pthread.m4 +309 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/libtool.m4 +7844 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltoptions.m4 +369 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltsugar.m4 +123 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltversion.m4 +23 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/lt~obsolete.m4 +98 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/pcre_visibility.m4 +89 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp.bat +66 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_c.txt +20 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_l.txt +20 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/missing +331 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre-config.in +133 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h +653 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.generic +653 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.in +653 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_byte_order.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_chartables.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_compile.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_config.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_dfa_exec.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_exec.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_fullinfo.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_get.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_globals.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_jit_compile.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_maketables.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_newline.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ord2utf16.c +90 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_printint.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_refcount.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_string_utils.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_study.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_tables.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ucd.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_utf16_utils.c +130 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_valid_utf16.c +156 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_version.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_xclass.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_byte_order.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_chartables.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_compile.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_config.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_dfa_exec.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_exec.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_fullinfo.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_get.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_globals.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_jit_compile.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_maketables.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_newline.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ord2utf32.c +82 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_printint.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_refcount.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_string_utils.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_study.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_tables.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ucd.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_utf32_utils.c +141 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_valid_utf32.c +131 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_version.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_xclass.c +45 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_byte_order.c +318 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c +198 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c.dist +198 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_compile.c +8386 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_config.c +186 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_dfa_exec.c +3582 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_exec.c +7049 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_fullinfo.c +231 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_get.c +662 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_globals.c +84 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_internal.h +2744 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_compile.c +8560 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_test.c +1614 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_maketables.c +151 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_newline.c +210 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ord2utf8.c +94 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_printint.c +766 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_refcount.c +92 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.cc +199 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.h +172 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner_unittest.cc +159 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_string_utils.c +211 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.cc +43 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.h.in +179 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece_unittest.cc +150 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_study.c +1562 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_tables.c +655 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ucd.c +3298 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_valid_utf8.c +312 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_version.c +98 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_xclass.c +198 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.cc +922 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.h +710 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_internal.h +71 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_unittest.cc +1291 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpparg.h.in +174 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcredemo.c +406 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregexp.pas +845 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregrep.c +3180 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.c +419 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.h +146 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcretest.c +5488 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/perltest.pl +237 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfig.h +110 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfigInternal.h +484 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitExecAllocator.c +289 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.c +1766 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.h +985 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_Thumb2.c +2008 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_v5.c +2515 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_32.c +404 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_common.c +1881 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_32.c +269 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_64.c +421 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_common.c +2014 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_32.c +164 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_common.c +1348 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_32.c +547 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_64.c +810 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_common.c +2836 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitUtils.c +332 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepbinary +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepfilelist +3 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput +611 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput3 +15 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput8 +11 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputv +4 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputx +43 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greplist +7 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput +707 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput8 +12 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutputN +16 -1
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greppatN4 +2 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16BE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved16LE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32BE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-1 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved32LE-2 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/saved8 +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput1 +5306 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput10 +1337 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput11 +135 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput12 +89 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput13 +9 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput14 +329 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput15 +430 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput16 +35 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput17 +296 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput18 +296 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput19 +22 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput2 +3813 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput20 +19 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput21 +16 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput22 +13 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput23 +16 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput24 +77 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput25 +32 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput26 +80 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput3 +95 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput4 +624 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput5 +772 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput6 +1319 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput7 +672 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput8 +4801 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput9 +717 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinputEBC +121 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput1 +8798 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput10 +2726 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-16 +713 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-32 +713 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-8 +713 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput12 +181 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput13 +21 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput14 +476 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput15 +1269 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput16 +121 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput17 +505 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-16 +1022 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-32 +1019 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput19 +88 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput2 +12484 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput20 +27 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-16 +90 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-32 +90 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-16 +71 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-32 +71 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput23 +42 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput24 +145 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput25 +79 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput26 +148 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput3 +169 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput4 +1094 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput5 +1849 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput6 +2137 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput7 +1473 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput8 +8019 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput9 +1371 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutputEBC +182 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestinput3 +91 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestoutput3 +166 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ucp.h +197 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/run_test.rb +23 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/src/mruby_regexp_pcre.c +364 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/matchdata.rb +94 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/regexp.rb +264 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/string.rb +201 -0
- data/resources/mruby/build_config.rb +152 -0
- data/resources/mruby/doc/guides/compile.md +488 -0
- data/resources/mruby/doc/guides/debugger.md +370 -0
- data/resources/mruby/doc/guides/gc-arena-howto.md +177 -0
- data/resources/mruby/doc/guides/mrbconf.md +146 -0
- data/resources/mruby/doc/guides/mrbgems.md +340 -0
- data/resources/mruby/doc/limitations.md +187 -0
- data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/README.md +4 -0
- data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/mrbgem.rake +23 -0
- data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/mrblib/example.rb +5 -0
- data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/src/example.c +20 -0
- data/resources/mruby/examples/mrbgems/c_and_ruby_extension_example/test/example.rb +7 -0
- data/resources/mruby/examples/mrbgems/c_extension_example/README.md +4 -0
- data/resources/mruby/examples/mrbgems/c_extension_example/mrbgem.rake +23 -0
- data/resources/mruby/examples/mrbgems/c_extension_example/src/example.c +20 -0
- data/resources/mruby/examples/mrbgems/c_extension_example/test/example.c +7 -0
- data/resources/mruby/examples/mrbgems/c_extension_example/test/example.rb +3 -0
- data/resources/mruby/examples/mrbgems/ruby_extension_example/README.md +4 -0
- data/resources/mruby/examples/mrbgems/ruby_extension_example/mrbgem.rake +25 -0
- data/resources/mruby/examples/mrbgems/ruby_extension_example/mrblib/example.rb +5 -0
- data/resources/mruby/examples/mrbgems/ruby_extension_example/test/example.rb +3 -0
- data/resources/mruby/examples/targets/build_config_ArduinoDue.rb +90 -0
- data/resources/mruby/examples/targets/build_config_IntelEdison.rb +69 -0
- data/resources/mruby/examples/targets/build_config_IntelGalileo.rb +106 -0
- data/resources/mruby/examples/targets/build_config_RX630.rb +81 -0
- data/resources/mruby/examples/targets/build_config_android_arm64-v8a.rb +26 -0
- data/resources/mruby/examples/targets/build_config_android_armeabi.rb +26 -0
- data/resources/mruby/examples/targets/build_config_android_armeabi_v7a_neon_hard.rb +28 -0
- data/resources/mruby/examples/targets/build_config_chipKITMax32.rb +86 -0
- data/resources/mruby/include/mrbconf.h +145 -0
- data/resources/mruby/include/mruby.h +1280 -0
- data/resources/mruby/include/mruby/array.h +279 -0
- data/resources/mruby/include/mruby/boxing_nan.h +102 -0
- data/resources/mruby/include/mruby/boxing_no.h +56 -0
- data/resources/mruby/include/mruby/boxing_word.h +136 -0
- data/resources/mruby/include/mruby/class.h +94 -0
- data/resources/mruby/include/mruby/common.h +72 -0
- data/resources/mruby/include/mruby/compile.h +194 -0
- data/resources/mruby/include/mruby/data.h +75 -0
- data/resources/mruby/include/mruby/debug.h +66 -0
- data/resources/mruby/include/mruby/dump.h +196 -0
- data/resources/mruby/include/mruby/error.h +75 -0
- data/resources/mruby/include/mruby/gc.h +91 -0
- data/resources/mruby/include/mruby/hash.h +182 -0
- data/resources/mruby/include/mruby/irep.h +62 -0
- data/resources/mruby/include/mruby/istruct.h +47 -0
- data/resources/mruby/include/mruby/khash.h +274 -0
- data/resources/mruby/include/mruby/numeric.h +161 -0
- data/resources/mruby/include/mruby/object.h +45 -0
- data/resources/mruby/include/mruby/opcode.h +161 -0
- data/resources/mruby/include/mruby/proc.h +131 -0
- data/resources/mruby/include/mruby/range.h +49 -0
- data/resources/mruby/include/mruby/re.h +16 -0
- data/resources/mruby/include/mruby/string.h +440 -0
- data/resources/mruby/include/mruby/throw.h +55 -0
- data/resources/mruby/include/mruby/value.h +309 -0
- data/resources/mruby/include/mruby/variable.h +138 -0
- data/resources/mruby/include/mruby/version.h +110 -0
- data/resources/mruby/lib/mruby-core-ext.rb +79 -0
- data/resources/mruby/lib/mruby/build.rb +355 -0
- data/resources/mruby/lib/mruby/build/command.rb +324 -0
- data/resources/mruby/lib/mruby/build/load_gems.rb +122 -0
- data/resources/mruby/lib/mruby/gem.rb +459 -0
- data/resources/mruby/lib/mruby/source.rb +30 -0
- data/resources/mruby/minirake +484 -0
- data/resources/mruby/mrbgems/default.gembox +82 -0
- data/resources/mruby/mrbgems/full-core.gembox +9 -0
- data/resources/mruby/mrbgems/mruby-array-ext/mrbgem.rake +6 -0
- data/resources/mruby/mrbgems/mruby-array-ext/mrblib/array.rb +935 -0
- data/resources/mruby/mrbgems/mruby-array-ext/src/array.c +246 -0
- data/resources/mruby/mrbgems/mruby-array-ext/test/array.rb +422 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/bintest/mrdb.rb +286 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/bintest/print.rb +701 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/mrbgem.rake +9 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +505 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.h +26 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c +240 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.h +14 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +78 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.h +13 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c +436 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +502 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdprint.c +58 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdrun.c +64 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c +759 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.h +165 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdbconf.h +16 -0
- data/resources/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdberror.h +20 -0
- data/resources/mruby/mrbgems/mruby-bin-mirb/bintest/mirb.rb +12 -0
- data/resources/mruby/mrbgems/mruby-bin-mirb/mrbgem.rake +33 -0
- data/resources/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +611 -0
- data/resources/mruby/mrbgems/mruby-bin-mrbc/mrbgem.rake +16 -0
- data/resources/mruby/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c +336 -0
- data/resources/mruby/mrbgems/mruby-bin-mruby-config/mrbgem.rake +30 -0
- data/resources/mruby/mrbgems/mruby-bin-mruby-config/mruby-config +20 -0
- data/resources/mruby/mrbgems/mruby-bin-mruby-config/mruby-config.bat +42 -0
- data/resources/mruby/mrbgems/mruby-bin-mruby/bintest/mruby.rb +60 -0
- data/resources/mruby/mrbgems/mruby-bin-mruby/mrbgem.rake +12 -0
- data/resources/mruby/mrbgems/mruby-bin-mruby/tools/mruby/mruby.c +254 -0
- data/resources/mruby/mrbgems/mruby-bin-strip/bintest/mruby-strip.rb +73 -0
- data/resources/mruby/mrbgems/mruby-bin-strip/mrbgem.rake +6 -0
- data/resources/mruby/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c +155 -0
- data/resources/mruby/mrbgems/mruby-class-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-class-ext/src/class.c +68 -0
- data/resources/mruby/mrbgems/mruby-class-ext/test/module.rb +55 -0
- data/resources/mruby/mrbgems/mruby-compar-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-compar-ext/mrblib/compar.rb +31 -0
- data/resources/mruby/mrbgems/mruby-compiler/bintest/mrbc.rb +30 -0
- data/resources/mruby/mrbgems/mruby-compiler/core/codegen.c +3083 -0
- data/resources/mruby/mrbgems/mruby-compiler/core/keywords +50 -0
- data/resources/mruby/mrbgems/mruby-compiler/core/lex.def +211 -0
- data/resources/mruby/mrbgems/mruby-compiler/core/node.h +118 -0
- data/resources/mruby/mrbgems/mruby-compiler/core/parse.y +6661 -0
- data/resources/mruby/mrbgems/mruby-compiler/mrbgem.rake +40 -0
- data/resources/mruby/mrbgems/mruby-enum-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-enum-ext/mrblib/enum.rb +813 -0
- data/resources/mruby/mrbgems/mruby-enum-ext/test/enum.rb +185 -0
- data/resources/mruby/mrbgems/mruby-enum-lazy/mrbgem.rake +7 -0
- data/resources/mruby/mrbgems/mruby-enum-lazy/mrblib/lazy.rb +178 -0
- data/resources/mruby/mrbgems/mruby-enum-lazy/test/lazy.rb +53 -0
- data/resources/mruby/mrbgems/mruby-enumerator/mrbgem.rake +7 -0
- data/resources/mruby/mrbgems/mruby-enumerator/mrblib/enumerator.rb +645 -0
- data/resources/mruby/mrbgems/mruby-enumerator/test/enumerator.rb +546 -0
- data/resources/mruby/mrbgems/mruby-error/mrbgem.rake +10 -0
- data/resources/mruby/mrbgems/mruby-error/src/exception.c +100 -0
- data/resources/mruby/mrbgems/mruby-error/test/exception.c +59 -0
- data/resources/mruby/mrbgems/mruby-error/test/exception.rb +55 -0
- data/resources/mruby/mrbgems/mruby-eval/mrbgem.rake +7 -0
- data/resources/mruby/mrbgems/mruby-eval/src/eval.c +346 -0
- data/resources/mruby/mrbgems/mruby-eval/test/eval.rb +101 -0
- data/resources/mruby/mrbgems/mruby-exit/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-exit/src/mruby-exit.c +24 -0
- data/resources/mruby/mrbgems/mruby-fiber/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-fiber/src/fiber.c +420 -0
- data/resources/mruby/mrbgems/mruby-fiber/test/fiber.rb +208 -0
- data/resources/mruby/mrbgems/mruby-hash-ext/mrbgem.rake +8 -0
- data/resources/mruby/mrbgems/mruby-hash-ext/mrblib/hash.rb +502 -0
- data/resources/mruby/mrbgems/mruby-hash-ext/src/hash-ext.c +128 -0
- data/resources/mruby/mrbgems/mruby-hash-ext/test/hash.rb +300 -0
- data/resources/mruby/mrbgems/mruby-inline-struct/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-inline-struct/test/inline.c +83 -0
- data/resources/mruby/mrbgems/mruby-inline-struct/test/inline.rb +151 -0
- data/resources/mruby/mrbgems/mruby-io/README.md +193 -0
- data/resources/mruby/mrbgems/mruby-io/include/mruby/ext/io.h +38 -0
- data/resources/mruby/mrbgems/mruby-io/mrbgem.rake +17 -0
- data/resources/mruby/mrbgems/mruby-io/mrblib/file.rb +208 -0
- data/resources/mruby/mrbgems/mruby-io/mrblib/file_constants.rb +29 -0
- data/resources/mruby/mrbgems/mruby-io/mrblib/io.rb +387 -0
- data/resources/mruby/mrbgems/mruby-io/mrblib/kernel.rb +15 -0
- data/resources/mruby/mrbgems/mruby-io/run_test.rb +26 -0
- data/resources/mruby/mrbgems/mruby-io/src/file.c +489 -0
- data/resources/mruby/mrbgems/mruby-io/src/file_test.c +381 -0
- data/resources/mruby/mrbgems/mruby-io/src/io.c +1320 -0
- data/resources/mruby/mrbgems/mruby-io/src/mruby_io_gem.c +20 -0
- data/resources/mruby/mrbgems/mruby-io/test/file.rb +197 -0
- data/resources/mruby/mrbgems/mruby-io/test/file_test.rb +117 -0
- data/resources/mruby/mrbgems/mruby-io/test/gc_filedes.sh +4 -0
- data/resources/mruby/mrbgems/mruby-io/test/io.rb +642 -0
- data/resources/mruby/mrbgems/mruby-io/test/mruby_io_test.c +256 -0
- data/resources/mruby/mrbgems/mruby-kernel-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-kernel-ext/mrblib/kernel.rb +13 -0
- data/resources/mruby/mrbgems/mruby-kernel-ext/src/kernel.c +264 -0
- data/resources/mruby/mrbgems/mruby-kernel-ext/test/kernel.rb +86 -0
- data/resources/mruby/mrbgems/mruby-math/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-math/src/math.c +783 -0
- data/resources/mruby/mrbgems/mruby-math/test/math.rb +152 -0
- data/resources/mruby/mrbgems/mruby-method/README.md +59 -0
- data/resources/mruby/mrbgems/mruby-method/mrbgem.rake +7 -0
- data/resources/mruby/mrbgems/mruby-method/mrblib/kernel.rb +9 -0
- data/resources/mruby/mrbgems/mruby-method/mrblib/method.rb +20 -0
- data/resources/mruby/mrbgems/mruby-method/mrblib/unbound_method.rb +9 -0
- data/resources/mruby/mrbgems/mruby-method/src/method.c +418 -0
- data/resources/mruby/mrbgems/mruby-method/test/method.rb +425 -0
- data/resources/mruby/mrbgems/mruby-numeric-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb +25 -0
- data/resources/mruby/mrbgems/mruby-numeric-ext/src/numeric_ext.c +102 -0
- data/resources/mruby/mrbgems/mruby-numeric-ext/test/numeric.rb +28 -0
- data/resources/mruby/mrbgems/mruby-object-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-object-ext/mrblib/object.rb +19 -0
- data/resources/mruby/mrbgems/mruby-object-ext/src/object.c +112 -0
- data/resources/mruby/mrbgems/mruby-object-ext/test/nil.rb +11 -0
- data/resources/mruby/mrbgems/mruby-object-ext/test/object.rb +53 -0
- data/resources/mruby/mrbgems/mruby-objectspace/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-objectspace/src/mruby_objectspace.c +187 -0
- data/resources/mruby/mrbgems/mruby-objectspace/test/objectspace.rb +60 -0
- data/resources/mruby/mrbgems/mruby-pack/README.md +70 -0
- data/resources/mruby/mrbgems/mruby-pack/mrbgem.rake +7 -0
- data/resources/mruby/mrbgems/mruby-pack/packtest.rb +157 -0
- data/resources/mruby/mrbgems/mruby-pack/run_test.rb +26 -0
- data/resources/mruby/mrbgems/mruby-pack/src/pack.c +1281 -0
- data/resources/mruby/mrbgems/mruby-pack/test/pack.rb +165 -0
- data/resources/mruby/mrbgems/mruby-print/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-print/mrblib/print.rb +64 -0
- data/resources/mruby/mrbgems/mruby-print/src/print.c +64 -0
- data/resources/mruby/mrbgems/mruby-proc-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-proc-ext/mrblib/proc.rb +42 -0
- data/resources/mruby/mrbgems/mruby-proc-ext/src/proc.c +173 -0
- data/resources/mruby/mrbgems/mruby-proc-ext/test/proc.c +62 -0
- data/resources/mruby/mrbgems/mruby-proc-ext/test/proc.rb +96 -0
- data/resources/mruby/mrbgems/mruby-random/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-random/src/mt19937ar.c +224 -0
- data/resources/mruby/mrbgems/mruby-random/src/mt19937ar.h +80 -0
- data/resources/mruby/mrbgems/mruby-random/src/random.c +349 -0
- data/resources/mruby/mrbgems/mruby-random/src/random.h +12 -0
- data/resources/mruby/mrbgems/mruby-random/test/random.rb +88 -0
- data/resources/mruby/mrbgems/mruby-range-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-range-ext/mrblib/range.rb +31 -0
- data/resources/mruby/mrbgems/mruby-range-ext/src/range.c +176 -0
- data/resources/mruby/mrbgems/mruby-range-ext/test/range.rb +32 -0
- data/resources/mruby/mrbgems/mruby-socket/README.md +55 -0
- data/resources/mruby/mrbgems/mruby-socket/mrbgem.rake +17 -0
- data/resources/mruby/mrbgems/mruby-socket/mrblib/socket.rb +621 -0
- data/resources/mruby/mrbgems/mruby-socket/run_test.rb +28 -0
- data/resources/mruby/mrbgems/mruby-socket/src/const.cstub +453 -0
- data/resources/mruby/mrbgems/mruby-socket/src/const.def +163 -0
- data/resources/mruby/mrbgems/mruby-socket/src/gen.rb +17 -0
- data/resources/mruby/mrbgems/mruby-socket/src/socket.c +928 -0
- data/resources/mruby/mrbgems/mruby-socket/test/addrinfo.rb +91 -0
- data/resources/mruby/mrbgems/mruby-socket/test/basicsocket.rb +17 -0
- data/resources/mruby/mrbgems/mruby-socket/test/ipsocket.rb +44 -0
- data/resources/mruby/mrbgems/mruby-socket/test/socket.rb +38 -0
- data/resources/mruby/mrbgems/mruby-socket/test/sockettest.c +46 -0
- data/resources/mruby/mrbgems/mruby-socket/test/tcpsocket.rb +4 -0
- data/resources/mruby/mrbgems/mruby-socket/test/udpsocket.rb +16 -0
- data/resources/mruby/mrbgems/mruby-socket/test/unix.rb +130 -0
- data/resources/mruby/mrbgems/mruby-sprintf/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-sprintf/mrblib/string.rb +9 -0
- data/resources/mruby/mrbgems/mruby-sprintf/src/kernel.c +30 -0
- data/resources/mruby/mrbgems/mruby-sprintf/src/sprintf.c +1126 -0
- data/resources/mruby/mrbgems/mruby-sprintf/test/sprintf.rb +110 -0
- data/resources/mruby/mrbgems/mruby-string-ext/mrbgem.rake +6 -0
- data/resources/mruby/mrbgems/mruby-string-ext/mrblib/string.rb +368 -0
- data/resources/mruby/mrbgems/mruby-string-ext/src/string.c +804 -0
- data/resources/mruby/mrbgems/mruby-string-ext/test/string.rb +682 -0
- data/resources/mruby/mrbgems/mruby-struct/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-struct/mrblib/struct.rb +103 -0
- data/resources/mruby/mrbgems/mruby-struct/src/struct.c +726 -0
- data/resources/mruby/mrbgems/mruby-struct/test/struct.rb +205 -0
- data/resources/mruby/mrbgems/mruby-symbol-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-symbol-ext/mrblib/symbol.rb +78 -0
- data/resources/mruby/mrbgems/mruby-symbol-ext/src/symbol.c +64 -0
- data/resources/mruby/mrbgems/mruby-symbol-ext/test/symbol.rb +48 -0
- data/resources/mruby/mrbgems/mruby-test/README.md +7 -0
- data/resources/mruby/mrbgems/mruby-test/driver.c +175 -0
- data/resources/mruby/mrbgems/mruby-test/init_mrbtest.c +38 -0
- data/resources/mruby/mrbgems/mruby-test/mrbgem.rake +191 -0
- data/resources/mruby/mrbgems/mruby-time/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-time/mrblib/time.rb +9 -0
- data/resources/mruby/mrbgems/mruby-time/src/time.c +869 -0
- data/resources/mruby/mrbgems/mruby-time/test/time.rb +228 -0
- data/resources/mruby/mrbgems/mruby-toplevel-ext/mrbgem.rake +5 -0
- data/resources/mruby/mrbgems/mruby-toplevel-ext/mrblib/toplevel.rb +11 -0
- data/resources/mruby/mrbgems/mruby-toplevel-ext/test/toplevel.rb +24 -0
- data/resources/mruby/mrblib/00class.rb +29 -0
- data/resources/mruby/mrblib/10error.rb +59 -0
- data/resources/mruby/mrblib/array.rb +243 -0
- data/resources/mruby/mrblib/compar.rb +84 -0
- data/resources/mruby/mrblib/enum.rb +348 -0
- data/resources/mruby/mrblib/float.rb +9 -0
- data/resources/mruby/mrblib/hash.rb +358 -0
- data/resources/mruby/mrblib/init_mrblib.c +11 -0
- data/resources/mruby/mrblib/kernel.rb +50 -0
- data/resources/mruby/mrblib/mrblib.rake +21 -0
- data/resources/mruby/mrblib/numeric.rb +163 -0
- data/resources/mruby/mrblib/range.rb +67 -0
- data/resources/mruby/mrblib/string.rb +275 -0
- data/resources/mruby/mruby-source.gemspec +18 -0
- data/resources/mruby/src/array.c +1251 -0
- data/resources/mruby/src/backtrace.c +285 -0
- data/resources/mruby/src/class.c +2546 -0
- data/resources/mruby/src/codedump.c +477 -0
- data/resources/mruby/src/compar.c +13 -0
- data/resources/mruby/src/crc.c +39 -0
- data/resources/mruby/src/debug.c +217 -0
- data/resources/mruby/src/dump.c +1106 -0
- data/resources/mruby/src/enum.c +14 -0
- data/resources/mruby/src/error.c +513 -0
- data/resources/mruby/src/error.h +3 -0
- data/resources/mruby/src/etc.c +246 -0
- data/resources/mruby/src/fmt_fp.c +374 -0
- data/resources/mruby/src/gc.c +1835 -0
- data/resources/mruby/src/hash.c +916 -0
- data/resources/mruby/src/init.c +51 -0
- data/resources/mruby/src/kernel.c +1264 -0
- data/resources/mruby/src/load.c +706 -0
- data/resources/mruby/src/mruby_core.rake +20 -0
- data/resources/mruby/src/numeric.c +1574 -0
- data/resources/mruby/src/object.c +618 -0
- data/resources/mruby/src/opcode.h +2 -0
- data/resources/mruby/src/pool.c +209 -0
- data/resources/mruby/src/print.c +47 -0
- data/resources/mruby/src/proc.c +313 -0
- data/resources/mruby/src/range.c +446 -0
- data/resources/mruby/src/state.c +307 -0
- data/resources/mruby/src/string.c +3025 -0
- data/resources/mruby/src/symbol.c +494 -0
- data/resources/mruby/src/value_array.h +27 -0
- data/resources/mruby/src/variable.c +982 -0
- data/resources/mruby/src/version.c +17 -0
- data/resources/mruby/src/vm.c +3020 -0
- data/resources/mruby/tasks/benchmark.rake +91 -0
- data/resources/mruby/tasks/gitlab.rake +118 -0
- data/resources/mruby/tasks/libmruby.rake +24 -0
- data/resources/mruby/tasks/mrbgems.rake +98 -0
- data/resources/mruby/tasks/toolchains/android.rake +321 -0
- data/resources/mruby/tasks/toolchains/clang.rake +9 -0
- data/resources/mruby/tasks/toolchains/gcc.rake +66 -0
- data/resources/mruby/tasks/toolchains/openwrt.rake +38 -0
- data/resources/mruby/tasks/toolchains/visualcpp.rake +68 -0
- data/resources/mruby/test/assert.rb +249 -0
- data/resources/mruby/test/bintest.rb +33 -0
- data/resources/mruby/test/report.rb +4 -0
- data/resources/mruby/test/t/argumenterror.rb +16 -0
- data/resources/mruby/test/t/array.rb +394 -0
- data/resources/mruby/test/t/basicobject.rb +11 -0
- data/resources/mruby/test/t/bs_block.rb +521 -0
- data/resources/mruby/test/t/bs_literal.rb +38 -0
- data/resources/mruby/test/t/class.rb +451 -0
- data/resources/mruby/test/t/codegen.rb +197 -0
- data/resources/mruby/test/t/comparable.rb +80 -0
- data/resources/mruby/test/t/ensure.rb +54 -0
- data/resources/mruby/test/t/enumerable.rb +134 -0
- data/resources/mruby/test/t/exception.rb +422 -0
- data/resources/mruby/test/t/false.rb +31 -0
- data/resources/mruby/test/t/float.rb +209 -0
- data/resources/mruby/test/t/gc.rb +45 -0
- data/resources/mruby/test/t/hash.rb +375 -0
- data/resources/mruby/test/t/indexerror.rb +6 -0
- data/resources/mruby/test/t/integer.rb +277 -0
- data/resources/mruby/test/t/iterations.rb +61 -0
- data/resources/mruby/test/t/kernel.rb +600 -0
- data/resources/mruby/test/t/lang.rb +74 -0
- data/resources/mruby/test/t/literals.rb +337 -0
- data/resources/mruby/test/t/localjumperror.rb +13 -0
- data/resources/mruby/test/t/methods.rb +109 -0
- data/resources/mruby/test/t/module.rb +914 -0
- data/resources/mruby/test/t/nameerror.rb +28 -0
- data/resources/mruby/test/t/nil.rb +39 -0
- data/resources/mruby/test/t/nomethoderror.rb +22 -0
- data/resources/mruby/test/t/numeric.rb +43 -0
- data/resources/mruby/test/t/object.rb +11 -0
- data/resources/mruby/test/t/proc.rb +180 -0
- data/resources/mruby/test/t/range.rb +95 -0
- data/resources/mruby/test/t/rangeerror.rb +6 -0
- data/resources/mruby/test/t/regexperror.rb +4 -0
- data/resources/mruby/test/t/runtimeerror.rb +6 -0
- data/resources/mruby/test/t/standarderror.rb +6 -0
- data/resources/mruby/test/t/string.rb +728 -0
- data/resources/mruby/test/t/superclass.rb +47 -0
- data/resources/mruby/test/t/symbol.rb +30 -0
- data/resources/mruby/test/t/syntax.rb +468 -0
- data/resources/mruby/test/t/true.rb +31 -0
- data/resources/mruby/test/t/typeerror.rb +6 -0
- data/resources/mruby/test/t/unicode.rb +39 -0
- data/resources/mruby/travis_config.rb +53 -0
- metadata +806 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
.TH PCRECALLOUT 3 "24 June 2012" "PCRE 8.30"
|
|
2
|
+
.SH NAME
|
|
3
|
+
PCRE - Perl-compatible regular expressions
|
|
4
|
+
.SH SYNOPSIS
|
|
5
|
+
.rs
|
|
6
|
+
.sp
|
|
7
|
+
.B #include <pcre.h>
|
|
8
|
+
.PP
|
|
9
|
+
.SM
|
|
10
|
+
.B int (*pcre_callout)(pcre_callout_block *);
|
|
11
|
+
.PP
|
|
12
|
+
.B int (*pcre16_callout)(pcre16_callout_block *);
|
|
13
|
+
.PP
|
|
14
|
+
.B int (*pcre32_callout)(pcre32_callout_block *);
|
|
15
|
+
.
|
|
16
|
+
.SH DESCRIPTION
|
|
17
|
+
.rs
|
|
18
|
+
.sp
|
|
19
|
+
PCRE provides a feature called "callout", which is a means of temporarily
|
|
20
|
+
passing control to the caller of PCRE in the middle of pattern matching. The
|
|
21
|
+
caller of PCRE provides an external function by putting its entry point in the
|
|
22
|
+
global variable \fIpcre_callout\fP (\fIpcre16_callout\fP for the 16-bit
|
|
23
|
+
library, \fIpcre32_callout\fP for the 32-bit library). By default, this
|
|
24
|
+
variable contains NULL, which disables all calling out.
|
|
25
|
+
.P
|
|
26
|
+
Within a regular expression, (?C) indicates the points at which the external
|
|
27
|
+
function is to be called. Different callout points can be identified by putting
|
|
28
|
+
a number less than 256 after the letter C. The default value is zero.
|
|
29
|
+
For example, this pattern has two callout points:
|
|
30
|
+
.sp
|
|
31
|
+
(?C1)abc(?C2)def
|
|
32
|
+
.sp
|
|
33
|
+
If the PCRE_AUTO_CALLOUT option bit is set when a pattern is compiled, PCRE
|
|
34
|
+
automatically inserts callouts, all with number 255, before each item in the
|
|
35
|
+
pattern. For example, if PCRE_AUTO_CALLOUT is used with the pattern
|
|
36
|
+
.sp
|
|
37
|
+
A(\ed{2}|--)
|
|
38
|
+
.sp
|
|
39
|
+
it is processed as if it were
|
|
40
|
+
.sp
|
|
41
|
+
(?C255)A(?C255)((?C255)\ed{2}(?C255)|(?C255)-(?C255)-(?C255))(?C255)
|
|
42
|
+
.sp
|
|
43
|
+
Notice that there is a callout before and after each parenthesis and
|
|
44
|
+
alternation bar. Automatic callouts can be used for tracking the progress of
|
|
45
|
+
pattern matching. The
|
|
46
|
+
.\" HREF
|
|
47
|
+
\fBpcretest\fP
|
|
48
|
+
.\"
|
|
49
|
+
command has an option that sets automatic callouts; when it is used, the output
|
|
50
|
+
indicates how the pattern is matched. This is useful information when you are
|
|
51
|
+
trying to optimize the performance of a particular pattern.
|
|
52
|
+
.P
|
|
53
|
+
The use of callouts in a pattern makes it ineligible for optimization by the
|
|
54
|
+
just-in-time compiler. Studying such a pattern with the PCRE_STUDY_JIT_COMPILE
|
|
55
|
+
option always fails.
|
|
56
|
+
.
|
|
57
|
+
.
|
|
58
|
+
.SH "MISSING CALLOUTS"
|
|
59
|
+
.rs
|
|
60
|
+
.sp
|
|
61
|
+
You should be aware that, because of optimizations in the way PCRE matches
|
|
62
|
+
patterns by default, callouts sometimes do not happen. For example, if the
|
|
63
|
+
pattern is
|
|
64
|
+
.sp
|
|
65
|
+
ab(?C4)cd
|
|
66
|
+
.sp
|
|
67
|
+
PCRE knows that any matching string must contain the letter "d". If the subject
|
|
68
|
+
string is "abyz", the lack of "d" means that matching doesn't ever start, and
|
|
69
|
+
the callout is never reached. However, with "abyd", though the result is still
|
|
70
|
+
no match, the callout is obeyed.
|
|
71
|
+
.P
|
|
72
|
+
If the pattern is studied, PCRE knows the minimum length of a matching string,
|
|
73
|
+
and will immediately give a "no match" return without actually running a match
|
|
74
|
+
if the subject is not long enough, or, for unanchored patterns, if it has
|
|
75
|
+
been scanned far enough.
|
|
76
|
+
.P
|
|
77
|
+
You can disable these optimizations by passing the PCRE_NO_START_OPTIMIZE
|
|
78
|
+
option to the matching function, or by starting the pattern with
|
|
79
|
+
(*NO_START_OPT). This slows down the matching process, but does ensure that
|
|
80
|
+
callouts such as the example above are obeyed.
|
|
81
|
+
.
|
|
82
|
+
.
|
|
83
|
+
.SH "THE CALLOUT INTERFACE"
|
|
84
|
+
.rs
|
|
85
|
+
.sp
|
|
86
|
+
During matching, when PCRE reaches a callout point, the external function
|
|
87
|
+
defined by \fIpcre_callout\fP or \fIpcre[16|32]_callout\fP is called
|
|
88
|
+
(if it is set). This applies to both normal and DFA matching. The only
|
|
89
|
+
argument to the callout function is a pointer to a \fBpcre_callout\fP
|
|
90
|
+
or \fBpcre[16|32]_callout\fP block.
|
|
91
|
+
These structures contains the following fields:
|
|
92
|
+
.sp
|
|
93
|
+
int \fIversion\fP;
|
|
94
|
+
int \fIcallout_number\fP;
|
|
95
|
+
int *\fIoffset_vector\fP;
|
|
96
|
+
const char *\fIsubject\fP; (8-bit version)
|
|
97
|
+
PCRE_SPTR16 \fIsubject\fP; (16-bit version)
|
|
98
|
+
PCRE_SPTR32 \fIsubject\fP; (32-bit version)
|
|
99
|
+
int \fIsubject_length\fP;
|
|
100
|
+
int \fIstart_match\fP;
|
|
101
|
+
int \fIcurrent_position\fP;
|
|
102
|
+
int \fIcapture_top\fP;
|
|
103
|
+
int \fIcapture_last\fP;
|
|
104
|
+
void *\fIcallout_data\fP;
|
|
105
|
+
int \fIpattern_position\fP;
|
|
106
|
+
int \fInext_item_length\fP;
|
|
107
|
+
const unsigned char *\fImark\fP; (8-bit version)
|
|
108
|
+
const PCRE_UCHAR16 *\fImark\fP; (16-bit version)
|
|
109
|
+
const PCRE_UCHAR32 *\fImark\fP; (32-bit version)
|
|
110
|
+
.sp
|
|
111
|
+
The \fIversion\fP field is an integer containing the version number of the
|
|
112
|
+
block format. The initial version was 0; the current version is 2. The version
|
|
113
|
+
number will change again in future if additional fields are added, but the
|
|
114
|
+
intention is never to remove any of the existing fields.
|
|
115
|
+
.P
|
|
116
|
+
The \fIcallout_number\fP field contains the number of the callout, as compiled
|
|
117
|
+
into the pattern (that is, the number after ?C for manual callouts, and 255 for
|
|
118
|
+
automatically generated callouts).
|
|
119
|
+
.P
|
|
120
|
+
The \fIoffset_vector\fP field is a pointer to the vector of offsets that was
|
|
121
|
+
passed by the caller to the matching function. When \fBpcre_exec()\fP or
|
|
122
|
+
\fBpcre[16|32]_exec()\fP is used, the contents can be inspected, in order to extract
|
|
123
|
+
substrings that have been matched so far, in the same way as for extracting
|
|
124
|
+
substrings after a match has completed. For the DFA matching functions, this
|
|
125
|
+
field is not useful.
|
|
126
|
+
.P
|
|
127
|
+
The \fIsubject\fP and \fIsubject_length\fP fields contain copies of the values
|
|
128
|
+
that were passed to the matching function.
|
|
129
|
+
.P
|
|
130
|
+
The \fIstart_match\fP field normally contains the offset within the subject at
|
|
131
|
+
which the current match attempt started. However, if the escape sequence \eK
|
|
132
|
+
has been encountered, this value is changed to reflect the modified starting
|
|
133
|
+
point. If the pattern is not anchored, the callout function may be called
|
|
134
|
+
several times from the same point in the pattern for different starting points
|
|
135
|
+
in the subject.
|
|
136
|
+
.P
|
|
137
|
+
The \fIcurrent_position\fP field contains the offset within the subject of the
|
|
138
|
+
current match pointer.
|
|
139
|
+
.P
|
|
140
|
+
When the \fBpcre_exec()\fP or \fBpcre[16|32]_exec()\fP is used, the
|
|
141
|
+
\fIcapture_top\fP field contains one more than the number of the highest
|
|
142
|
+
numbered captured substring so far. If no substrings have been captured, the
|
|
143
|
+
value of \fIcapture_top\fP is one. This is always the case when the DFA
|
|
144
|
+
functions are used, because they do not support captured substrings.
|
|
145
|
+
.P
|
|
146
|
+
The \fIcapture_last\fP field contains the number of the most recently captured
|
|
147
|
+
substring. If no substrings have been captured, its value is -1. This is always
|
|
148
|
+
the case for the DFA matching functions.
|
|
149
|
+
.P
|
|
150
|
+
The \fIcallout_data\fP field contains a value that is passed to a matching
|
|
151
|
+
function specifically so that it can be passed back in callouts. It is passed
|
|
152
|
+
in the \fIcallout_data\fP field of a \fBpcre_extra\fP or \fBpcre[16|32]_extra\fP
|
|
153
|
+
data structure. If no such data was passed, the value of \fIcallout_data\fP in
|
|
154
|
+
a callout block is NULL. There is a description of the \fBpcre_extra\fP
|
|
155
|
+
structure in the
|
|
156
|
+
.\" HREF
|
|
157
|
+
\fBpcreapi\fP
|
|
158
|
+
.\"
|
|
159
|
+
documentation.
|
|
160
|
+
.P
|
|
161
|
+
The \fIpattern_position\fP field is present from version 1 of the callout
|
|
162
|
+
structure. It contains the offset to the next item to be matched in the pattern
|
|
163
|
+
string.
|
|
164
|
+
.P
|
|
165
|
+
The \fInext_item_length\fP field is present from version 1 of the callout
|
|
166
|
+
structure. It contains the length of the next item to be matched in the pattern
|
|
167
|
+
string. When the callout immediately precedes an alternation bar, a closing
|
|
168
|
+
parenthesis, or the end of the pattern, the length is zero. When the callout
|
|
169
|
+
precedes an opening parenthesis, the length is that of the entire subpattern.
|
|
170
|
+
.P
|
|
171
|
+
The \fIpattern_position\fP and \fInext_item_length\fP fields are intended to
|
|
172
|
+
help in distinguishing between different automatic callouts, which all have the
|
|
173
|
+
same callout number. However, they are set for all callouts.
|
|
174
|
+
.P
|
|
175
|
+
The \fImark\fP field is present from version 2 of the callout structure. In
|
|
176
|
+
callouts from \fBpcre_exec()\fP or \fBpcre[16|32]_exec()\fP it contains a pointer to
|
|
177
|
+
the zero-terminated name of the most recently passed (*MARK), (*PRUNE), or
|
|
178
|
+
(*THEN) item in the match, or NULL if no such items have been passed. Instances
|
|
179
|
+
of (*PRUNE) or (*THEN) without a name do not obliterate a previous (*MARK). In
|
|
180
|
+
callouts from the DFA matching functions this field always contains NULL.
|
|
181
|
+
.
|
|
182
|
+
.
|
|
183
|
+
.SH "RETURN VALUES"
|
|
184
|
+
.rs
|
|
185
|
+
.sp
|
|
186
|
+
The external callout function returns an integer to PCRE. If the value is zero,
|
|
187
|
+
matching proceeds as normal. If the value is greater than zero, matching fails
|
|
188
|
+
at the current point, but the testing of other matching possibilities goes
|
|
189
|
+
ahead, just as if a lookahead assertion had failed. If the value is less than
|
|
190
|
+
zero, the match is abandoned, the matching function returns the negative value.
|
|
191
|
+
.P
|
|
192
|
+
Negative values should normally be chosen from the set of PCRE_ERROR_xxx
|
|
193
|
+
values. In particular, PCRE_ERROR_NOMATCH forces a standard "no match" failure.
|
|
194
|
+
The error number PCRE_ERROR_CALLOUT is reserved for use by callout functions;
|
|
195
|
+
it will never be used by PCRE itself.
|
|
196
|
+
.
|
|
197
|
+
.
|
|
198
|
+
.SH AUTHOR
|
|
199
|
+
.rs
|
|
200
|
+
.sp
|
|
201
|
+
.nf
|
|
202
|
+
Philip Hazel
|
|
203
|
+
University Computing Service
|
|
204
|
+
Cambridge CB2 3QH, England.
|
|
205
|
+
.fi
|
|
206
|
+
.
|
|
207
|
+
.
|
|
208
|
+
.SH REVISION
|
|
209
|
+
.rs
|
|
210
|
+
.sp
|
|
211
|
+
.nf
|
|
212
|
+
Last updated: 24 June 2012
|
|
213
|
+
Copyright (c) 1997-2012 University of Cambridge.
|
|
214
|
+
.fi
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
.TH PCRECOMPAT 3 "24 June 2012" "PCRE 8.30"
|
|
2
|
+
.SH NAME
|
|
3
|
+
PCRE - Perl-compatible regular expressions
|
|
4
|
+
.SH "DIFFERENCES BETWEEN PCRE AND PERL"
|
|
5
|
+
.rs
|
|
6
|
+
.sp
|
|
7
|
+
This document describes the differences in the ways that PCRE and Perl handle
|
|
8
|
+
regular expressions. The differences described here are with respect to Perl
|
|
9
|
+
versions 5.10 and above.
|
|
10
|
+
.P
|
|
11
|
+
1. PCRE has only a subset of Perl's Unicode support. Details of what it does
|
|
12
|
+
have are given in the
|
|
13
|
+
.\" HREF
|
|
14
|
+
\fBpcreunicode\fP
|
|
15
|
+
.\"
|
|
16
|
+
page.
|
|
17
|
+
.P
|
|
18
|
+
2. PCRE allows repeat quantifiers only on parenthesized assertions, but they do
|
|
19
|
+
not mean what you might think. For example, (?!a){3} does not assert that the
|
|
20
|
+
next three characters are not "a". It just asserts that the next character is
|
|
21
|
+
not "a" three times (in principle: PCRE optimizes this to run the assertion
|
|
22
|
+
just once). Perl allows repeat quantifiers on other assertions such as \eb, but
|
|
23
|
+
these do not seem to have any use.
|
|
24
|
+
.P
|
|
25
|
+
3. Capturing subpatterns that occur inside negative lookahead assertions are
|
|
26
|
+
counted, but their entries in the offsets vector are never set. Perl sets its
|
|
27
|
+
numerical variables from any such patterns that are matched before the
|
|
28
|
+
assertion fails to match something (thereby succeeding), but only if the
|
|
29
|
+
negative lookahead assertion contains just one branch.
|
|
30
|
+
.P
|
|
31
|
+
4. Though binary zero characters are supported in the subject string, they are
|
|
32
|
+
not allowed in a pattern string because it is passed as a normal C string,
|
|
33
|
+
terminated by zero. The escape sequence \e0 can be used in the pattern to
|
|
34
|
+
represent a binary zero.
|
|
35
|
+
.P
|
|
36
|
+
5. The following Perl escape sequences are not supported: \el, \eu, \eL,
|
|
37
|
+
\eU, and \eN when followed by a character name or Unicode value. (\eN on its
|
|
38
|
+
own, matching a non-newline character, is supported.) In fact these are
|
|
39
|
+
implemented by Perl's general string-handling and are not part of its pattern
|
|
40
|
+
matching engine. If any of these are encountered by PCRE, an error is
|
|
41
|
+
generated by default. However, if the PCRE_JAVASCRIPT_COMPAT option is set,
|
|
42
|
+
\eU and \eu are interpreted as JavaScript interprets them.
|
|
43
|
+
.P
|
|
44
|
+
6. The Perl escape sequences \ep, \eP, and \eX are supported only if PCRE is
|
|
45
|
+
built with Unicode character property support. The properties that can be
|
|
46
|
+
tested with \ep and \eP are limited to the general category properties such as
|
|
47
|
+
Lu and Nd, script names such as Greek or Han, and the derived properties Any
|
|
48
|
+
and L&. PCRE does support the Cs (surrogate) property, which Perl does not; the
|
|
49
|
+
Perl documentation says "Because Perl hides the need for the user to understand
|
|
50
|
+
the internal representation of Unicode characters, there is no need to
|
|
51
|
+
implement the somewhat messy concept of surrogates."
|
|
52
|
+
.P
|
|
53
|
+
7. PCRE does support the \eQ...\eE escape for quoting substrings. Characters in
|
|
54
|
+
between are treated as literals. This is slightly different from Perl in that $
|
|
55
|
+
and @ are also handled as literals inside the quotes. In Perl, they cause
|
|
56
|
+
variable interpolation (but of course PCRE does not have variables). Note the
|
|
57
|
+
following examples:
|
|
58
|
+
.sp
|
|
59
|
+
Pattern PCRE matches Perl matches
|
|
60
|
+
.sp
|
|
61
|
+
.\" JOIN
|
|
62
|
+
\eQabc$xyz\eE abc$xyz abc followed by the
|
|
63
|
+
contents of $xyz
|
|
64
|
+
\eQabc\e$xyz\eE abc\e$xyz abc\e$xyz
|
|
65
|
+
\eQabc\eE\e$\eQxyz\eE abc$xyz abc$xyz
|
|
66
|
+
.sp
|
|
67
|
+
The \eQ...\eE sequence is recognized both inside and outside character classes.
|
|
68
|
+
.P
|
|
69
|
+
8. Fairly obviously, PCRE does not support the (?{code}) and (??{code})
|
|
70
|
+
constructions. However, there is support for recursive patterns. This is not
|
|
71
|
+
available in Perl 5.8, but it is in Perl 5.10. Also, the PCRE "callout"
|
|
72
|
+
feature allows an external function to be called during pattern matching. See
|
|
73
|
+
the
|
|
74
|
+
.\" HREF
|
|
75
|
+
\fBpcrecallout\fP
|
|
76
|
+
.\"
|
|
77
|
+
documentation for details.
|
|
78
|
+
.P
|
|
79
|
+
9. Subpatterns that are called as subroutines (whether or not recursively) are
|
|
80
|
+
always treated as atomic groups in PCRE. This is like Python, but unlike Perl.
|
|
81
|
+
Captured values that are set outside a subroutine call can be reference from
|
|
82
|
+
inside in PCRE, but not in Perl. There is a discussion that explains these
|
|
83
|
+
differences in more detail in the
|
|
84
|
+
.\" HTML <a href="pcrepattern.html#recursiondifference">
|
|
85
|
+
.\" </a>
|
|
86
|
+
section on recursion differences from Perl
|
|
87
|
+
.\"
|
|
88
|
+
in the
|
|
89
|
+
.\" HREF
|
|
90
|
+
\fBpcrepattern\fP
|
|
91
|
+
.\"
|
|
92
|
+
page.
|
|
93
|
+
.P
|
|
94
|
+
10. If any of the backtracking control verbs are used in an assertion or in a
|
|
95
|
+
subpattern that is called as a subroutine (whether or not recursively), their
|
|
96
|
+
effect is confined to that subpattern; it does not extend to the surrounding
|
|
97
|
+
pattern. This is not always the case in Perl. In particular, if (*THEN) is
|
|
98
|
+
present in a group that is called as a subroutine, its action is limited to
|
|
99
|
+
that group, even if the group does not contain any | characters. There is one
|
|
100
|
+
exception to this: the name from a *(MARK), (*PRUNE), or (*THEN) that is
|
|
101
|
+
encountered in a successful positive assertion \fIis\fP passed back when a
|
|
102
|
+
match succeeds (compare capturing parentheses in assertions). Note that such
|
|
103
|
+
subpatterns are processed as anchored at the point where they are tested.
|
|
104
|
+
.P
|
|
105
|
+
11. There are some differences that are concerned with the settings of captured
|
|
106
|
+
strings when part of a pattern is repeated. For example, matching "aba" against
|
|
107
|
+
the pattern /^(a(b)?)+$/ in Perl leaves $2 unset, but in PCRE it is set to "b".
|
|
108
|
+
.P
|
|
109
|
+
12. PCRE's handling of duplicate subpattern numbers and duplicate subpattern
|
|
110
|
+
names is not as general as Perl's. This is a consequence of the fact the PCRE
|
|
111
|
+
works internally just with numbers, using an external table to translate
|
|
112
|
+
between numbers and names. In particular, a pattern such as (?|(?<a>A)|(?<b)B),
|
|
113
|
+
where the two capturing parentheses have the same number but different names,
|
|
114
|
+
is not supported, and causes an error at compile time. If it were allowed, it
|
|
115
|
+
would not be possible to distinguish which parentheses matched, because both
|
|
116
|
+
names map to capturing subpattern number 1. To avoid this confusing situation,
|
|
117
|
+
an error is given at compile time.
|
|
118
|
+
.P
|
|
119
|
+
13. Perl recognizes comments in some places that PCRE does not, for example,
|
|
120
|
+
between the ( and ? at the start of a subpattern. If the /x modifier is set,
|
|
121
|
+
Perl allows white space between ( and ? but PCRE never does, even if the
|
|
122
|
+
PCRE_EXTENDED option is set.
|
|
123
|
+
.P
|
|
124
|
+
14. PCRE provides some extensions to the Perl regular expression facilities.
|
|
125
|
+
Perl 5.10 includes new features that are not in earlier versions of Perl, some
|
|
126
|
+
of which (such as named parentheses) have been in PCRE for some time. This list
|
|
127
|
+
is with respect to Perl 5.10:
|
|
128
|
+
.sp
|
|
129
|
+
(a) Although lookbehind assertions in PCRE must match fixed length strings,
|
|
130
|
+
each alternative branch of a lookbehind assertion can match a different length
|
|
131
|
+
of string. Perl requires them all to have the same length.
|
|
132
|
+
.sp
|
|
133
|
+
(b) If PCRE_DOLLAR_ENDONLY is set and PCRE_MULTILINE is not set, the $
|
|
134
|
+
meta-character matches only at the very end of the string.
|
|
135
|
+
.sp
|
|
136
|
+
(c) If PCRE_EXTRA is set, a backslash followed by a letter with no special
|
|
137
|
+
meaning is faulted. Otherwise, like Perl, the backslash is quietly ignored.
|
|
138
|
+
(Perl can be made to issue a warning.)
|
|
139
|
+
.sp
|
|
140
|
+
(d) If PCRE_UNGREEDY is set, the greediness of the repetition quantifiers is
|
|
141
|
+
inverted, that is, by default they are not greedy, but if followed by a
|
|
142
|
+
question mark they are.
|
|
143
|
+
.sp
|
|
144
|
+
(e) PCRE_ANCHORED can be used at matching time to force a pattern to be tried
|
|
145
|
+
only at the first matching position in the subject string.
|
|
146
|
+
.sp
|
|
147
|
+
(f) The PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NOTEMPTY_ATSTART, and
|
|
148
|
+
PCRE_NO_AUTO_CAPTURE options for \fBpcre_exec()\fP have no Perl equivalents.
|
|
149
|
+
.sp
|
|
150
|
+
(g) The \eR escape sequence can be restricted to match only CR, LF, or CRLF
|
|
151
|
+
by the PCRE_BSR_ANYCRLF option.
|
|
152
|
+
.sp
|
|
153
|
+
(h) The callout facility is PCRE-specific.
|
|
154
|
+
.sp
|
|
155
|
+
(i) The partial matching facility is PCRE-specific.
|
|
156
|
+
.sp
|
|
157
|
+
(j) Patterns compiled by PCRE can be saved and re-used at a later time, even on
|
|
158
|
+
different hosts that have the other endianness. However, this does not apply to
|
|
159
|
+
optimized data created by the just-in-time compiler.
|
|
160
|
+
.sp
|
|
161
|
+
(k) The alternative matching functions (\fBpcre_dfa_exec()\fP,
|
|
162
|
+
\fBpcre16_dfa_exec()\fP and \fBpcre32_dfa_exec()\fP,) match in a different way
|
|
163
|
+
and are not Perl-compatible.
|
|
164
|
+
.sp
|
|
165
|
+
(l) PCRE recognizes some special sequences such as (*CR) at the start of
|
|
166
|
+
a pattern that set overall options that cannot be changed within the pattern.
|
|
167
|
+
.
|
|
168
|
+
.
|
|
169
|
+
.SH AUTHOR
|
|
170
|
+
.rs
|
|
171
|
+
.sp
|
|
172
|
+
.nf
|
|
173
|
+
Philip Hazel
|
|
174
|
+
University Computing Service
|
|
175
|
+
Cambridge CB2 3QH, England.
|
|
176
|
+
.fi
|
|
177
|
+
.
|
|
178
|
+
.
|
|
179
|
+
.SH REVISION
|
|
180
|
+
.rs
|
|
181
|
+
.sp
|
|
182
|
+
.nf
|
|
183
|
+
Last updated: 25 August 2012
|
|
184
|
+
Copyright (c) 1997-2012 University of Cambridge.
|
|
185
|
+
.fi
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
.TH PCRECPP 3 "08 January 2012" "PCRE 8.30"
|
|
2
|
+
.SH NAME
|
|
3
|
+
PCRE - Perl-compatible regular expressions.
|
|
4
|
+
.SH "SYNOPSIS OF C++ WRAPPER"
|
|
5
|
+
.rs
|
|
6
|
+
.sp
|
|
7
|
+
.B #include <pcrecpp.h>
|
|
8
|
+
.
|
|
9
|
+
.SH DESCRIPTION
|
|
10
|
+
.rs
|
|
11
|
+
.sp
|
|
12
|
+
The C++ wrapper for PCRE was provided by Google Inc. Some additional
|
|
13
|
+
functionality was added by Giuseppe Maxia. This brief man page was constructed
|
|
14
|
+
from the notes in the \fIpcrecpp.h\fP file, which should be consulted for
|
|
15
|
+
further details. Note that the C++ wrapper supports only the original 8-bit
|
|
16
|
+
PCRE library. There is no 16-bit or 32-bit support at present.
|
|
17
|
+
.
|
|
18
|
+
.
|
|
19
|
+
.SH "MATCHING INTERFACE"
|
|
20
|
+
.rs
|
|
21
|
+
.sp
|
|
22
|
+
The "FullMatch" operation checks that supplied text matches a supplied pattern
|
|
23
|
+
exactly. If pointer arguments are supplied, it copies matched sub-strings that
|
|
24
|
+
match sub-patterns into them.
|
|
25
|
+
.sp
|
|
26
|
+
Example: successful match
|
|
27
|
+
pcrecpp::RE re("h.*o");
|
|
28
|
+
re.FullMatch("hello");
|
|
29
|
+
.sp
|
|
30
|
+
Example: unsuccessful match (requires full match):
|
|
31
|
+
pcrecpp::RE re("e");
|
|
32
|
+
!re.FullMatch("hello");
|
|
33
|
+
.sp
|
|
34
|
+
Example: creating a temporary RE object:
|
|
35
|
+
pcrecpp::RE("h.*o").FullMatch("hello");
|
|
36
|
+
.sp
|
|
37
|
+
You can pass in a "const char*" or a "string" for "text". The examples below
|
|
38
|
+
tend to use a const char*. You can, as in the different examples above, store
|
|
39
|
+
the RE object explicitly in a variable or use a temporary RE object. The
|
|
40
|
+
examples below use one mode or the other arbitrarily. Either could correctly be
|
|
41
|
+
used for any of these examples.
|
|
42
|
+
.P
|
|
43
|
+
You must supply extra pointer arguments to extract matched subpieces.
|
|
44
|
+
.sp
|
|
45
|
+
Example: extracts "ruby" into "s" and 1234 into "i"
|
|
46
|
+
int i;
|
|
47
|
+
string s;
|
|
48
|
+
pcrecpp::RE re("(\e\ew+):(\e\ed+)");
|
|
49
|
+
re.FullMatch("ruby:1234", &s, &i);
|
|
50
|
+
.sp
|
|
51
|
+
Example: does not try to extract any extra sub-patterns
|
|
52
|
+
re.FullMatch("ruby:1234", &s);
|
|
53
|
+
.sp
|
|
54
|
+
Example: does not try to extract into NULL
|
|
55
|
+
re.FullMatch("ruby:1234", NULL, &i);
|
|
56
|
+
.sp
|
|
57
|
+
Example: integer overflow causes failure
|
|
58
|
+
!re.FullMatch("ruby:1234567891234", NULL, &i);
|
|
59
|
+
.sp
|
|
60
|
+
Example: fails because there aren't enough sub-patterns:
|
|
61
|
+
!pcrecpp::RE("\e\ew+:\e\ed+").FullMatch("ruby:1234", &s);
|
|
62
|
+
.sp
|
|
63
|
+
Example: fails because string cannot be stored in integer
|
|
64
|
+
!pcrecpp::RE("(.*)").FullMatch("ruby", &i);
|
|
65
|
+
.sp
|
|
66
|
+
The provided pointer arguments can be pointers to any scalar numeric
|
|
67
|
+
type, or one of:
|
|
68
|
+
.sp
|
|
69
|
+
string (matched piece is copied to string)
|
|
70
|
+
StringPiece (StringPiece is mutated to point to matched piece)
|
|
71
|
+
T (where "bool T::ParseFrom(const char*, int)" exists)
|
|
72
|
+
NULL (the corresponding matched sub-pattern is not copied)
|
|
73
|
+
.sp
|
|
74
|
+
The function returns true iff all of the following conditions are satisfied:
|
|
75
|
+
.sp
|
|
76
|
+
a. "text" matches "pattern" exactly;
|
|
77
|
+
.sp
|
|
78
|
+
b. The number of matched sub-patterns is >= number of supplied
|
|
79
|
+
pointers;
|
|
80
|
+
.sp
|
|
81
|
+
c. The "i"th argument has a suitable type for holding the
|
|
82
|
+
string captured as the "i"th sub-pattern. If you pass in
|
|
83
|
+
void * NULL for the "i"th argument, or a non-void * NULL
|
|
84
|
+
of the correct type, or pass fewer arguments than the
|
|
85
|
+
number of sub-patterns, "i"th captured sub-pattern is
|
|
86
|
+
ignored.
|
|
87
|
+
.sp
|
|
88
|
+
CAVEAT: An optional sub-pattern that does not exist in the matched
|
|
89
|
+
string is assigned the empty string. Therefore, the following will
|
|
90
|
+
return false (because the empty string is not a valid number):
|
|
91
|
+
.sp
|
|
92
|
+
int number;
|
|
93
|
+
pcrecpp::RE::FullMatch("abc", "[a-z]+(\e\ed+)?", &number);
|
|
94
|
+
.sp
|
|
95
|
+
The matching interface supports at most 16 arguments per call.
|
|
96
|
+
If you need more, consider using the more general interface
|
|
97
|
+
\fBpcrecpp::RE::DoMatch\fP. See \fBpcrecpp.h\fP for the signature for
|
|
98
|
+
\fBDoMatch\fP.
|
|
99
|
+
.P
|
|
100
|
+
NOTE: Do not use \fBno_arg\fP, which is used internally to mark the end of a
|
|
101
|
+
list of optional arguments, as a placeholder for missing arguments, as this can
|
|
102
|
+
lead to segfaults.
|
|
103
|
+
.
|
|
104
|
+
.
|
|
105
|
+
.SH "QUOTING METACHARACTERS"
|
|
106
|
+
.rs
|
|
107
|
+
.sp
|
|
108
|
+
You can use the "QuoteMeta" operation to insert backslashes before all
|
|
109
|
+
potentially meaningful characters in a string. The returned string, used as a
|
|
110
|
+
regular expression, will exactly match the original string.
|
|
111
|
+
.sp
|
|
112
|
+
Example:
|
|
113
|
+
string quoted = RE::QuoteMeta(unquoted);
|
|
114
|
+
.sp
|
|
115
|
+
Note that it's legal to escape a character even if it has no special meaning in
|
|
116
|
+
a regular expression -- so this function does that. (This also makes it
|
|
117
|
+
identical to the perl function of the same name; see "perldoc -f quotemeta".)
|
|
118
|
+
For example, "1.5-2.0?" becomes "1\e.5\e-2\e.0\e?".
|
|
119
|
+
.
|
|
120
|
+
.SH "PARTIAL MATCHES"
|
|
121
|
+
.rs
|
|
122
|
+
.sp
|
|
123
|
+
You can use the "PartialMatch" operation when you want the pattern
|
|
124
|
+
to match any substring of the text.
|
|
125
|
+
.sp
|
|
126
|
+
Example: simple search for a string:
|
|
127
|
+
pcrecpp::RE("ell").PartialMatch("hello");
|
|
128
|
+
.sp
|
|
129
|
+
Example: find first number in a string:
|
|
130
|
+
int number;
|
|
131
|
+
pcrecpp::RE re("(\e\ed+)");
|
|
132
|
+
re.PartialMatch("x*100 + 20", &number);
|
|
133
|
+
assert(number == 100);
|
|
134
|
+
.
|
|
135
|
+
.
|
|
136
|
+
.SH "UTF-8 AND THE MATCHING INTERFACE"
|
|
137
|
+
.rs
|
|
138
|
+
.sp
|
|
139
|
+
By default, pattern and text are plain text, one byte per character. The UTF8
|
|
140
|
+
flag, passed to the constructor, causes both pattern and string to be treated
|
|
141
|
+
as UTF-8 text, still a byte stream but potentially multiple bytes per
|
|
142
|
+
character. In practice, the text is likelier to be UTF-8 than the pattern, but
|
|
143
|
+
the match returned may depend on the UTF8 flag, so always use it when matching
|
|
144
|
+
UTF8 text. For example, "." will match one byte normally but with UTF8 set may
|
|
145
|
+
match up to three bytes of a multi-byte character.
|
|
146
|
+
.sp
|
|
147
|
+
Example:
|
|
148
|
+
pcrecpp::RE_Options options;
|
|
149
|
+
options.set_utf8();
|
|
150
|
+
pcrecpp::RE re(utf8_pattern, options);
|
|
151
|
+
re.FullMatch(utf8_string);
|
|
152
|
+
.sp
|
|
153
|
+
Example: using the convenience function UTF8():
|
|
154
|
+
pcrecpp::RE re(utf8_pattern, pcrecpp::UTF8());
|
|
155
|
+
re.FullMatch(utf8_string);
|
|
156
|
+
.sp
|
|
157
|
+
NOTE: The UTF8 flag is ignored if pcre was not configured with the
|
|
158
|
+
--enable-utf8 flag.
|
|
159
|
+
.
|
|
160
|
+
.
|
|
161
|
+
.SH "PASSING MODIFIERS TO THE REGULAR EXPRESSION ENGINE"
|
|
162
|
+
.rs
|
|
163
|
+
.sp
|
|
164
|
+
PCRE defines some modifiers to change the behavior of the regular expression
|
|
165
|
+
engine. The C++ wrapper defines an auxiliary class, RE_Options, as a vehicle to
|
|
166
|
+
pass such modifiers to a RE class. Currently, the following modifiers are
|
|
167
|
+
supported:
|
|
168
|
+
.sp
|
|
169
|
+
modifier description Perl corresponding
|
|
170
|
+
.sp
|
|
171
|
+
PCRE_CASELESS case insensitive match /i
|
|
172
|
+
PCRE_MULTILINE multiple lines match /m
|
|
173
|
+
PCRE_DOTALL dot matches newlines /s
|
|
174
|
+
PCRE_DOLLAR_ENDONLY $ matches only at end N/A
|
|
175
|
+
PCRE_EXTRA strict escape parsing N/A
|
|
176
|
+
PCRE_EXTENDED ignore white spaces /x
|
|
177
|
+
PCRE_UTF8 handles UTF8 chars built-in
|
|
178
|
+
PCRE_UNGREEDY reverses * and *? N/A
|
|
179
|
+
PCRE_NO_AUTO_CAPTURE disables capturing parens N/A (*)
|
|
180
|
+
.sp
|
|
181
|
+
(*) Both Perl and PCRE allow non capturing parentheses by means of the
|
|
182
|
+
"?:" modifier within the pattern itself. e.g. (?:ab|cd) does not
|
|
183
|
+
capture, while (ab|cd) does.
|
|
184
|
+
.P
|
|
185
|
+
For a full account on how each modifier works, please check the
|
|
186
|
+
PCRE API reference page.
|
|
187
|
+
.P
|
|
188
|
+
For each modifier, there are two member functions whose name is made
|
|
189
|
+
out of the modifier in lowercase, without the "PCRE_" prefix. For
|
|
190
|
+
instance, PCRE_CASELESS is handled by
|
|
191
|
+
.sp
|
|
192
|
+
bool caseless()
|
|
193
|
+
.sp
|
|
194
|
+
which returns true if the modifier is set, and
|
|
195
|
+
.sp
|
|
196
|
+
RE_Options & set_caseless(bool)
|
|
197
|
+
.sp
|
|
198
|
+
which sets or unsets the modifier. Moreover, PCRE_EXTRA_MATCH_LIMIT can be
|
|
199
|
+
accessed through the \fBset_match_limit()\fP and \fBmatch_limit()\fP member
|
|
200
|
+
functions. Setting \fImatch_limit\fP to a non-zero value will limit the
|
|
201
|
+
execution of pcre to keep it from doing bad things like blowing the stack or
|
|
202
|
+
taking an eternity to return a result. A value of 5000 is good enough to stop
|
|
203
|
+
stack blowup in a 2MB thread stack. Setting \fImatch_limit\fP to zero disables
|
|
204
|
+
match limiting. Alternatively, you can call \fBmatch_limit_recursion()\fP
|
|
205
|
+
which uses PCRE_EXTRA_MATCH_LIMIT_RECURSION to limit how much PCRE
|
|
206
|
+
recurses. \fBmatch_limit()\fP limits the number of matches PCRE does;
|
|
207
|
+
\fBmatch_limit_recursion()\fP limits the depth of internal recursion, and
|
|
208
|
+
therefore the amount of stack that is used.
|
|
209
|
+
.P
|
|
210
|
+
Normally, to pass one or more modifiers to a RE class, you declare
|
|
211
|
+
a \fIRE_Options\fP object, set the appropriate options, and pass this
|
|
212
|
+
object to a RE constructor. Example:
|
|
213
|
+
.sp
|
|
214
|
+
RE_Options opt;
|
|
215
|
+
opt.set_caseless(true);
|
|
216
|
+
if (RE("HELLO", opt).PartialMatch("hello world")) ...
|
|
217
|
+
.sp
|
|
218
|
+
RE_options has two constructors. The default constructor takes no arguments and
|
|
219
|
+
creates a set of flags that are off by default. The optional parameter
|
|
220
|
+
\fIoption_flags\fP is to facilitate transfer of legacy code from C programs.
|
|
221
|
+
This lets you do
|
|
222
|
+
.sp
|
|
223
|
+
RE(pattern,
|
|
224
|
+
RE_Options(PCRE_CASELESS|PCRE_MULTILINE)).PartialMatch(str);
|
|
225
|
+
.sp
|
|
226
|
+
However, new code is better off doing
|
|
227
|
+
.sp
|
|
228
|
+
RE(pattern,
|
|
229
|
+
RE_Options().set_caseless(true).set_multiline(true))
|
|
230
|
+
.PartialMatch(str);
|
|
231
|
+
.sp
|
|
232
|
+
If you are going to pass one of the most used modifiers, there are some
|
|
233
|
+
convenience functions that return a RE_Options class with the
|
|
234
|
+
appropriate modifier already set: \fBCASELESS()\fP, \fBUTF8()\fP,
|
|
235
|
+
\fBMULTILINE()\fP, \fBDOTALL\fP(), and \fBEXTENDED()\fP.
|
|
236
|
+
.P
|
|
237
|
+
If you need to set several options at once, and you don't want to go through
|
|
238
|
+
the pains of declaring a RE_Options object and setting several options, there
|
|
239
|
+
is a parallel method that give you such ability on the fly. You can concatenate
|
|
240
|
+
several \fBset_xxxxx()\fP member functions, since each of them returns a
|
|
241
|
+
reference to its class object. For example, to pass PCRE_CASELESS,
|
|
242
|
+
PCRE_EXTENDED, and PCRE_MULTILINE to a RE with one statement, you may write:
|
|
243
|
+
.sp
|
|
244
|
+
RE(" ^ xyz \e\es+ .* blah$",
|
|
245
|
+
RE_Options()
|
|
246
|
+
.set_caseless(true)
|
|
247
|
+
.set_extended(true)
|
|
248
|
+
.set_multiline(true)).PartialMatch(sometext);
|
|
249
|
+
.sp
|
|
250
|
+
.
|
|
251
|
+
.
|
|
252
|
+
.SH "SCANNING TEXT INCREMENTALLY"
|
|
253
|
+
.rs
|
|
254
|
+
.sp
|
|
255
|
+
The "Consume" operation may be useful if you want to repeatedly
|
|
256
|
+
match regular expressions at the front of a string and skip over
|
|
257
|
+
them as they match. This requires use of the "StringPiece" type,
|
|
258
|
+
which represents a sub-range of a real string. Like RE, StringPiece
|
|
259
|
+
is defined in the pcrecpp namespace.
|
|
260
|
+
.sp
|
|
261
|
+
Example: read lines of the form "var = value" from a string.
|
|
262
|
+
string contents = ...; // Fill string somehow
|
|
263
|
+
pcrecpp::StringPiece input(contents); // Wrap in a StringPiece
|
|
264
|
+
.sp
|
|
265
|
+
string var;
|
|
266
|
+
int value;
|
|
267
|
+
pcrecpp::RE re("(\e\ew+) = (\e\ed+)\en");
|
|
268
|
+
while (re.Consume(&input, &var, &value)) {
|
|
269
|
+
...;
|
|
270
|
+
}
|
|
271
|
+
.sp
|
|
272
|
+
Each successful call to "Consume" will set "var/value", and also
|
|
273
|
+
advance "input" so it points past the matched text.
|
|
274
|
+
.P
|
|
275
|
+
The "FindAndConsume" operation is similar to "Consume" but does not
|
|
276
|
+
anchor your match at the beginning of the string. For example, you
|
|
277
|
+
could extract all words from a string by repeatedly calling
|
|
278
|
+
.sp
|
|
279
|
+
pcrecpp::RE("(\e\ew+)").FindAndConsume(&input, &word)
|
|
280
|
+
.
|
|
281
|
+
.
|
|
282
|
+
.SH "PARSING HEX/OCTAL/C-RADIX NUMBERS"
|
|
283
|
+
.rs
|
|
284
|
+
.sp
|
|
285
|
+
By default, if you pass a pointer to a numeric value, the
|
|
286
|
+
corresponding text is interpreted as a base-10 number. You can
|
|
287
|
+
instead wrap the pointer with a call to one of the operators Hex(),
|
|
288
|
+
Octal(), or CRadix() to interpret the text in another base. The
|
|
289
|
+
CRadix operator interprets C-style "0" (base-8) and "0x" (base-16)
|
|
290
|
+
prefixes, but defaults to base-10.
|
|
291
|
+
.sp
|
|
292
|
+
Example:
|
|
293
|
+
int a, b, c, d;
|
|
294
|
+
pcrecpp::RE re("(.*) (.*) (.*) (.*)");
|
|
295
|
+
re.FullMatch("100 40 0100 0x40",
|
|
296
|
+
pcrecpp::Octal(&a), pcrecpp::Hex(&b),
|
|
297
|
+
pcrecpp::CRadix(&c), pcrecpp::CRadix(&d));
|
|
298
|
+
.sp
|
|
299
|
+
will leave 64 in a, b, c, and d.
|
|
300
|
+
.
|
|
301
|
+
.
|
|
302
|
+
.SH "REPLACING PARTS OF STRINGS"
|
|
303
|
+
.rs
|
|
304
|
+
.sp
|
|
305
|
+
You can replace the first match of "pattern" in "str" with "rewrite".
|
|
306
|
+
Within "rewrite", backslash-escaped digits (\e1 to \e9) can be
|
|
307
|
+
used to insert text matching corresponding parenthesized group
|
|
308
|
+
from the pattern. \e0 in "rewrite" refers to the entire matching
|
|
309
|
+
text. For example:
|
|
310
|
+
.sp
|
|
311
|
+
string s = "yabba dabba doo";
|
|
312
|
+
pcrecpp::RE("b+").Replace("d", &s);
|
|
313
|
+
.sp
|
|
314
|
+
will leave "s" containing "yada dabba doo". The result is true if the pattern
|
|
315
|
+
matches and a replacement occurs, false otherwise.
|
|
316
|
+
.P
|
|
317
|
+
\fBGlobalReplace\fP is like \fBReplace\fP except that it replaces all
|
|
318
|
+
occurrences of the pattern in the string with the rewrite. Replacements are
|
|
319
|
+
not subject to re-matching. For example:
|
|
320
|
+
.sp
|
|
321
|
+
string s = "yabba dabba doo";
|
|
322
|
+
pcrecpp::RE("b+").GlobalReplace("d", &s);
|
|
323
|
+
.sp
|
|
324
|
+
will leave "s" containing "yada dada doo". It returns the number of
|
|
325
|
+
replacements made.
|
|
326
|
+
.P
|
|
327
|
+
\fBExtract\fP is like \fBReplace\fP, except that if the pattern matches,
|
|
328
|
+
"rewrite" is copied into "out" (an additional argument) with substitutions.
|
|
329
|
+
The non-matching portions of "text" are ignored. Returns true iff a match
|
|
330
|
+
occurred and the extraction happened successfully; if no match occurs, the
|
|
331
|
+
string is left unaffected.
|
|
332
|
+
.
|
|
333
|
+
.
|
|
334
|
+
.SH AUTHOR
|
|
335
|
+
.rs
|
|
336
|
+
.sp
|
|
337
|
+
.nf
|
|
338
|
+
The C++ wrapper was contributed by Google Inc.
|
|
339
|
+
Copyright (c) 2007 Google Inc.
|
|
340
|
+
.fi
|
|
341
|
+
.
|
|
342
|
+
.
|
|
343
|
+
.SH REVISION
|
|
344
|
+
.rs
|
|
345
|
+
.sp
|
|
346
|
+
.nf
|
|
347
|
+
Last updated: 08 January 2012
|
|
348
|
+
.fi
|