esruby 0.0.0 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +6 -6
- data/bin/esruby +9 -0
- data/lib/esruby.rb +8 -0
- data/resources/mruby/build_config.rb +0 -1
- data/resources/mruby/mrbgems/mruby-print/mrblib/print.rb +1 -1
- data/resources/project_template/app/app.rb +2 -0
- data/resources/project_template/config.rb +35 -0
- data/resources/project_template/www/index.html +17 -0
- metadata +6 -377
- 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 +0 -82
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrbgem.rake +0 -63
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/regexp_pcre.rb +0 -232
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/mrblib/string_pcre.rb +0 -333
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/132html +0 -313
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/AUTHORS +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CMakeLists.txt +0 -959
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/COPYING +0 -5
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ChangeLog +0 -4981
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CheckMan +0 -67
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/CleanTxt +0 -113
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Detrail +0 -35
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/HACKING +0 -473
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/INSTALL +0 -370
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/LICENCE +0 -92
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.am +0 -877
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/Makefile.in +0 -2917
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NEWS +0 -611
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-AUTOTOOLS-BUILD +0 -639
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/NON-UNIX-USE +0 -7
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/PrepareRelease +0 -253
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/README +0 -935
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunGrepTest +0 -551
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest +0 -1015
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/RunTest.bat +0 -616
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/aclocal.m4 +0 -1230
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.0 +0 -21280
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/output.1 +0 -21280
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/requests +0 -273
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.0 +0 -2421
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/autom4te.cache/traces.1 +0 -1144
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/COPYING-CMAKE-SCRIPTS +0 -22
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindEditline.cmake +0 -17
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindPackageHandleStandardArgs.cmake +0 -58
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/cmake/FindReadline.cmake +0 -29
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/compile +0 -343
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config-cmake.h.in +0 -54
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.guess +0 -1552
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h +0 -392
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.generic +0 -392
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.h.in +0 -343
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/config.sub +0 -1804
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure +0 -21280
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/configure.ac +0 -1082
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/depcomp +0 -708
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/dftables.c +0 -212
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/index.html +0 -180
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre-config.html +0 -109
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre.html +0 -204
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre16.html +0 -383
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_assign_jit_stack.html +0 -76
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile.html +0 -108
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_compile2.html +0 -112
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_config.html +0 -91
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_named_substring.html +0 -65
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_copy_substring.html +0 -61
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_dfa_exec.html +0 -128
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_exec.html +0 -110
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_study.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_free_substring_list.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_fullinfo.html +0 -108
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_named_substring.html +0 -68
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringnumber.html +0 -57
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_stringtable_entries.html +0 -60
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring.html +0 -64
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_get_substring_list.html +0 -61
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_exec.html +0 -108
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_alloc.html +0 -55
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_jit_stack_free.html +0 -48
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_maketables.html +0 -48
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_pattern_to_host_byte_order.html +0 -58
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_refcount.html +0 -51
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_study.html +0 -68
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_utf16_to_host_byte_order.html +0 -57
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcre_version.html +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreapi.html +0 -2786
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrebuild.html +0 -517
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecallout.html +0 -243
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecompat.html +0 -216
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrecpp.html +0 -368
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcredemo.html +0 -426
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcregrep.html +0 -757
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrejit.html +0 -458
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrelimits.html +0 -86
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrematching.html +0 -233
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepartial.html +0 -474
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrepattern.html +0 -2953
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreperform.html +0 -195
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreposix.html +0 -292
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreprecompile.html +0 -158
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresample.html +0 -110
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcrestack.html +0 -225
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcresyntax.html +0 -521
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcretest.html +0 -1082
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/html/pcreunicode.html +0 -270
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/index.html.src +0 -180
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.1 +0 -92
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre-config.txt +0 -86
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.3 +0 -202
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre.txt +0 -9909
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre16.3 +0 -390
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre32.3 +0 -389
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_assign_jit_stack.3 +0 -61
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile.3 +0 -98
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_compile2.3 +0 -106
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_config.3 +0 -76
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_named_substring.3 +0 -59
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_copy_substring.3 +0 -52
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_dfa_exec.3 +0 -125
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_exec.3 +0 -103
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_study.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_free_substring_list.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_fullinfo.3 +0 -95
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_named_substring.3 +0 -62
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringnumber.3 +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_stringtable_entries.3 +0 -48
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring.3 +0 -55
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_get_substring_list.3 +0 -49
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_exec.3 +0 -104
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_alloc.3 +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_jit_stack_free.3 +0 -35
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_maketables.3 +0 -33
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_pattern_to_host_byte_order.3 +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_refcount.3 +0 -36
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_study.3 +0 -56
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf16_to_host_byte_order.3 +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_utf32_to_host_byte_order.3 +0 -46
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcre_version.3 +0 -31
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreapi.3 +0 -2823
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrebuild.3 +0 -520
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecallout.3 +0 -214
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecompat.3 +0 -185
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrecpp.3 +0 -348
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.1 +0 -679
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcregrep.txt +0 -740
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrejit.3 +0 -437
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrelimits.3 +0 -67
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrematching.3 +0 -206
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepartial.3 +0 -445
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrepattern.3 +0 -2983
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreperform.3 +0 -177
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreposix.3 +0 -270
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreprecompile.3 +0 -151
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresample.3 +0 -99
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcrestack.3 +0 -215
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcresyntax.3 +0 -496
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.1 +0 -1079
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcretest.txt +0 -1012
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/pcreunicode.3 +0 -255
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/doc/perltest.txt +0 -42
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/install-sh +0 -527
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre16.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcre32.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcrecpp.pc.in +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/libpcreposix.pc.in +0 -13
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ltmain.sh +0 -9636
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ax_pthread.m4 +0 -309
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/libtool.m4 +0 -7844
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltoptions.m4 +0 -369
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltsugar.m4 +0 -123
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/ltversion.m4 +0 -23
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/lt~obsolete.m4 +0 -98
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/m4/pcre_visibility.m4 +0 -89
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp.bat +0 -66
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_c.txt +0 -20
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/makevp_l.txt +0 -20
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/missing +0 -331
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre-config.in +0 -133
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h +0 -653
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.generic +0 -653
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre.h.in +0 -653
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_byte_order.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_chartables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_config.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_dfa_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_fullinfo.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_get.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_globals.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_jit_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_maketables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_newline.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ord2utf16.c +0 -90
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_printint.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_refcount.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_string_utils.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_study.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_tables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_ucd.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_utf16_utils.c +0 -130
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_valid_utf16.c +0 -156
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_version.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre16_xclass.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_byte_order.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_chartables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_config.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_dfa_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_exec.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_fullinfo.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_get.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_globals.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_jit_compile.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_maketables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_newline.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ord2utf32.c +0 -82
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_printint.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_refcount.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_string_utils.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_study.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_tables.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_ucd.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_utf32_utils.c +0 -141
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_valid_utf32.c +0 -131
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_version.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre32_xclass.c +0 -45
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_byte_order.c +0 -318
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c +0 -198
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_chartables.c.dist +0 -198
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_compile.c +0 -8386
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_config.c +0 -186
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_dfa_exec.c +0 -3582
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_exec.c +0 -7049
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_fullinfo.c +0 -231
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_get.c +0 -662
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_globals.c +0 -84
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_internal.h +0 -2744
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_compile.c +0 -8560
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_jit_test.c +0 -1614
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_maketables.c +0 -151
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_newline.c +0 -210
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ord2utf8.c +0 -94
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_printint.c +0 -766
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_refcount.c +0 -92
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.cc +0 -199
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner.h +0 -172
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_scanner_unittest.cc +0 -159
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_string_utils.c +0 -211
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.cc +0 -43
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece.h.in +0 -179
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_stringpiece_unittest.cc +0 -150
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_study.c +0 -1562
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_tables.c +0 -655
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_ucd.c +0 -3298
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_valid_utf8.c +0 -312
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_version.c +0 -98
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcre_xclass.c +0 -198
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.cc +0 -922
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp.h +0 -710
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_internal.h +0 -71
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpp_unittest.cc +0 -1291
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcrecpparg.h.in +0 -174
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcredemo.c +0 -406
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregexp.pas +0 -845
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcregrep.c +0 -3180
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.c +0 -419
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcreposix.h +0 -146
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/pcretest.c +0 -5488
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/perltest.pl +0 -237
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfig.h +0 -110
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitConfigInternal.h +0 -484
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitExecAllocator.c +0 -289
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.c +0 -1766
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitLir.h +0 -985
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_Thumb2.c +0 -2008
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeARM_v5.c +0 -2515
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_32.c +0 -404
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeMIPS_common.c +0 -1881
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_32.c +0 -269
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_64.c +0 -421
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativePPC_common.c +0 -2014
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_32.c +0 -164
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeSPARC_common.c +0 -1348
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_32.c +0 -547
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_64.c +0 -810
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitNativeX86_common.c +0 -2836
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/sljit/sljitUtils.c +0 -332
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepbinary +0 -0
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepfilelist +0 -3
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput +0 -611
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput3 +0 -15
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinput8 +0 -11
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputv +0 -4
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepinputx +0 -43
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greplist +0 -7
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput +0 -707
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutput8 +0 -12
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/grepoutputN +0 -17
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/greppatN4 +0 -2
- 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 +0 -5306
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput10 +0 -1337
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput11 +0 -135
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput12 +0 -89
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput13 +0 -9
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput14 +0 -329
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput15 +0 -430
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput16 +0 -35
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput17 +0 -296
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput18 +0 -296
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput19 +0 -22
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput2 +0 -3813
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput20 +0 -19
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput21 +0 -16
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput22 +0 -13
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput23 +0 -16
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput24 +0 -77
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput25 +0 -32
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput26 +0 -80
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput3 +0 -95
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput4 +0 -624
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput5 +0 -772
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput6 +0 -1319
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput7 +0 -672
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput8 +0 -4801
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinput9 +0 -717
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testinputEBC +0 -121
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput1 +0 -8798
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput10 +0 -2726
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-16 +0 -713
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-32 +0 -713
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput11-8 +0 -713
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput12 +0 -181
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput13 +0 -21
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput14 +0 -476
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput15 +0 -1269
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput16 +0 -121
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput17 +0 -505
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-16 +0 -1022
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput18-32 +0 -1019
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput19 +0 -88
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput2 +0 -12484
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput20 +0 -27
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-16 +0 -90
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput21-32 +0 -90
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-16 +0 -71
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput22-32 +0 -71
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput23 +0 -42
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput24 +0 -145
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput25 +0 -79
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput26 +0 -148
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput3 +0 -169
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput4 +0 -1094
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput5 +0 -1849
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput6 +0 -2137
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput7 +0 -1473
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput8 +0 -8019
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutput9 +0 -1371
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/testoutputEBC +0 -182
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestinput3 +0 -91
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/testdata/wintestoutput3 +0 -166
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/pcre/ucp.h +0 -197
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/run_test.rb +0 -23
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/src/mruby_regexp_pcre.c +0 -364
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/matchdata.rb +0 -94
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/regexp.rb +0 -264
- data/resources/mruby/build/mrbgems/mruby-regexp-pcre/test/string.rb +0 -201
@@ -1,390 +0,0 @@
|
|
1
|
-
.TH PCRE 3 "08 November 2012" "PCRE 8.32"
|
2
|
-
.SH NAME
|
3
|
-
PCRE - Perl-compatible regular expressions
|
4
|
-
.sp
|
5
|
-
.B #include <pcre.h>
|
6
|
-
.
|
7
|
-
.
|
8
|
-
.SH "PCRE 16-BIT API BASIC FUNCTIONS"
|
9
|
-
.rs
|
10
|
-
.sp
|
11
|
-
.SM
|
12
|
-
.B pcre16 *pcre16_compile(PCRE_SPTR16 \fIpattern\fP, int \fIoptions\fP,
|
13
|
-
.ti +5n
|
14
|
-
.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
|
15
|
-
.ti +5n
|
16
|
-
.B const unsigned char *\fItableptr\fP);
|
17
|
-
.PP
|
18
|
-
.B pcre16 *pcre16_compile2(PCRE_SPTR16 \fIpattern\fP, int \fIoptions\fP,
|
19
|
-
.ti +5n
|
20
|
-
.B int *\fIerrorcodeptr\fP,
|
21
|
-
.ti +5n
|
22
|
-
.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
|
23
|
-
.ti +5n
|
24
|
-
.B const unsigned char *\fItableptr\fP);
|
25
|
-
.PP
|
26
|
-
.B pcre16_extra *pcre16_study(const pcre16 *\fIcode\fP, int \fIoptions\fP,
|
27
|
-
.ti +5n
|
28
|
-
.B const char **\fIerrptr\fP);
|
29
|
-
.PP
|
30
|
-
.B void pcre16_free_study(pcre16_extra *\fIextra\fP);
|
31
|
-
.PP
|
32
|
-
.B int pcre16_exec(const pcre16 *\fIcode\fP, "const pcre16_extra *\fIextra\fP,"
|
33
|
-
.ti +5n
|
34
|
-
.B "PCRE_SPTR16 \fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
|
35
|
-
.ti +5n
|
36
|
-
.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP);
|
37
|
-
.PP
|
38
|
-
.B int pcre16_dfa_exec(const pcre16 *\fIcode\fP, "const pcre16_extra *\fIextra\fP,"
|
39
|
-
.ti +5n
|
40
|
-
.B "PCRE_SPTR16 \fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
|
41
|
-
.ti +5n
|
42
|
-
.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP,
|
43
|
-
.ti +5n
|
44
|
-
.B int *\fIworkspace\fP, int \fIwscount\fP);
|
45
|
-
.
|
46
|
-
.
|
47
|
-
.SH "PCRE 16-BIT API STRING EXTRACTION FUNCTIONS"
|
48
|
-
.rs
|
49
|
-
.sp
|
50
|
-
.B int pcre16_copy_named_substring(const pcre16 *\fIcode\fP,
|
51
|
-
.ti +5n
|
52
|
-
.B PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,
|
53
|
-
.ti +5n
|
54
|
-
.B int \fIstringcount\fP, PCRE_SPTR16 \fIstringname\fP,
|
55
|
-
.ti +5n
|
56
|
-
.B PCRE_UCHAR16 *\fIbuffer\fP, int \fIbuffersize\fP);
|
57
|
-
.PP
|
58
|
-
.B int pcre16_copy_substring(PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,
|
59
|
-
.ti +5n
|
60
|
-
.B int \fIstringcount\fP, int \fIstringnumber\fP, PCRE_UCHAR16 *\fIbuffer\fP,
|
61
|
-
.ti +5n
|
62
|
-
.B int \fIbuffersize\fP);
|
63
|
-
.PP
|
64
|
-
.B int pcre16_get_named_substring(const pcre16 *\fIcode\fP,
|
65
|
-
.ti +5n
|
66
|
-
.B PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,
|
67
|
-
.ti +5n
|
68
|
-
.B int \fIstringcount\fP, PCRE_SPTR16 \fIstringname\fP,
|
69
|
-
.ti +5n
|
70
|
-
.B PCRE_SPTR16 *\fIstringptr\fP);
|
71
|
-
.PP
|
72
|
-
.B int pcre16_get_stringnumber(const pcre16 *\fIcode\fP,
|
73
|
-
.ti +5n
|
74
|
-
.B PCRE_SPTR16 \fIname\fP);
|
75
|
-
.PP
|
76
|
-
.B int pcre16_get_stringtable_entries(const pcre16 *\fIcode\fP,
|
77
|
-
.ti +5n
|
78
|
-
.B PCRE_SPTR16 \fIname\fP, PCRE_UCHAR16 **\fIfirst\fP, PCRE_UCHAR16 **\fIlast\fP);
|
79
|
-
.PP
|
80
|
-
.B int pcre16_get_substring(PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,
|
81
|
-
.ti +5n
|
82
|
-
.B int \fIstringcount\fP, int \fIstringnumber\fP,
|
83
|
-
.ti +5n
|
84
|
-
.B PCRE_SPTR16 *\fIstringptr\fP);
|
85
|
-
.PP
|
86
|
-
.B int pcre16_get_substring_list(PCRE_SPTR16 \fIsubject\fP,
|
87
|
-
.ti +5n
|
88
|
-
.B int *\fIovector\fP, int \fIstringcount\fP, "PCRE_SPTR16 **\fIlistptr\fP);"
|
89
|
-
.PP
|
90
|
-
.B void pcre16_free_substring(PCRE_SPTR16 \fIstringptr\fP);
|
91
|
-
.PP
|
92
|
-
.B void pcre16_free_substring_list(PCRE_SPTR16 *\fIstringptr\fP);
|
93
|
-
.
|
94
|
-
.
|
95
|
-
.SH "PCRE 16-BIT API AUXILIARY FUNCTIONS"
|
96
|
-
.rs
|
97
|
-
.sp
|
98
|
-
.B pcre16_jit_stack *pcre16_jit_stack_alloc(int \fIstartsize\fP, int \fImaxsize\fP);
|
99
|
-
.PP
|
100
|
-
.B void pcre16_jit_stack_free(pcre16_jit_stack *\fIstack\fP);
|
101
|
-
.PP
|
102
|
-
.B void pcre16_assign_jit_stack(pcre16_extra *\fIextra\fP,
|
103
|
-
.ti +5n
|
104
|
-
.B pcre16_jit_callback \fIcallback\fP, void *\fIdata\fP);
|
105
|
-
.PP
|
106
|
-
.B const unsigned char *pcre16_maketables(void);
|
107
|
-
.PP
|
108
|
-
.B int pcre16_fullinfo(const pcre16 *\fIcode\fP, "const pcre16_extra *\fIextra\fP,"
|
109
|
-
.ti +5n
|
110
|
-
.B int \fIwhat\fP, void *\fIwhere\fP);
|
111
|
-
.PP
|
112
|
-
.B int pcre16_refcount(pcre16 *\fIcode\fP, int \fIadjust\fP);
|
113
|
-
.PP
|
114
|
-
.B int pcre16_config(int \fIwhat\fP, void *\fIwhere\fP);
|
115
|
-
.PP
|
116
|
-
.B const char *pcre16_version(void);
|
117
|
-
.PP
|
118
|
-
.B int pcre16_pattern_to_host_byte_order(pcre16 *\fIcode\fP,
|
119
|
-
.ti +5n
|
120
|
-
.B pcre16_extra *\fIextra\fP, const unsigned char *\fItables\fP);
|
121
|
-
.
|
122
|
-
.
|
123
|
-
.SH "PCRE 16-BIT API INDIRECTED FUNCTIONS"
|
124
|
-
.rs
|
125
|
-
.sp
|
126
|
-
.B void *(*pcre16_malloc)(size_t);
|
127
|
-
.PP
|
128
|
-
.B void (*pcre16_free)(void *);
|
129
|
-
.PP
|
130
|
-
.B void *(*pcre16_stack_malloc)(size_t);
|
131
|
-
.PP
|
132
|
-
.B void (*pcre16_stack_free)(void *);
|
133
|
-
.PP
|
134
|
-
.B int (*pcre16_callout)(pcre16_callout_block *);
|
135
|
-
.
|
136
|
-
.
|
137
|
-
.SH "PCRE 16-BIT API 16-BIT-ONLY FUNCTION"
|
138
|
-
.rs
|
139
|
-
.sp
|
140
|
-
.B int pcre16_utf16_to_host_byte_order(PCRE_UCHAR16 *\fIoutput\fP,
|
141
|
-
.ti +5n
|
142
|
-
.B PCRE_SPTR16 \fIinput\fP, int \fIlength\fP, int *\fIbyte_order\fP,
|
143
|
-
.ti +5n
|
144
|
-
.B int \fIkeep_boms\fP);
|
145
|
-
.
|
146
|
-
.
|
147
|
-
.SH "THE PCRE 16-BIT LIBRARY"
|
148
|
-
.rs
|
149
|
-
.sp
|
150
|
-
Starting with release 8.30, it is possible to compile a PCRE library that
|
151
|
-
supports 16-bit character strings, including UTF-16 strings, as well as or
|
152
|
-
instead of the original 8-bit library. The majority of the work to make this
|
153
|
-
possible was done by Zoltan Herczeg. The two libraries contain identical sets
|
154
|
-
of functions, used in exactly the same way. Only the names of the functions and
|
155
|
-
the data types of their arguments and results are different. To avoid
|
156
|
-
over-complication and reduce the documentation maintenance load, most of the
|
157
|
-
PCRE documentation describes the 8-bit library, with only occasional references
|
158
|
-
to the 16-bit library. This page describes what is different when you use the
|
159
|
-
16-bit library.
|
160
|
-
.P
|
161
|
-
WARNING: A single application can be linked with both libraries, but you must
|
162
|
-
take care when processing any particular pattern to use functions from just one
|
163
|
-
library. For example, if you want to study a pattern that was compiled with
|
164
|
-
\fBpcre16_compile()\fP, you must do so with \fBpcre16_study()\fP, not
|
165
|
-
\fBpcre_study()\fP, and you must free the study data with
|
166
|
-
\fBpcre16_free_study()\fP.
|
167
|
-
.
|
168
|
-
.
|
169
|
-
.SH "THE HEADER FILE"
|
170
|
-
.rs
|
171
|
-
.sp
|
172
|
-
There is only one header file, \fBpcre.h\fP. It contains prototypes for all the
|
173
|
-
functions in all libraries, as well as definitions of flags, structures, error
|
174
|
-
codes, etc.
|
175
|
-
.
|
176
|
-
.
|
177
|
-
.SH "THE LIBRARY NAME"
|
178
|
-
.rs
|
179
|
-
.sp
|
180
|
-
In Unix-like systems, the 16-bit library is called \fBlibpcre16\fP, and can
|
181
|
-
normally be accesss by adding \fB-lpcre16\fP to the command for linking an
|
182
|
-
application that uses PCRE.
|
183
|
-
.
|
184
|
-
.
|
185
|
-
.SH "STRING TYPES"
|
186
|
-
.rs
|
187
|
-
.sp
|
188
|
-
In the 8-bit library, strings are passed to PCRE library functions as vectors
|
189
|
-
of bytes with the C type "char *". In the 16-bit library, strings are passed as
|
190
|
-
vectors of unsigned 16-bit quantities. The macro PCRE_UCHAR16 specifies an
|
191
|
-
appropriate data type, and PCRE_SPTR16 is defined as "const PCRE_UCHAR16 *". In
|
192
|
-
very many environments, "short int" is a 16-bit data type. When PCRE is built,
|
193
|
-
it defines PCRE_UCHAR16 as "unsigned short int", but checks that it really is a
|
194
|
-
16-bit data type. If it is not, the build fails with an error message telling
|
195
|
-
the maintainer to modify the definition appropriately.
|
196
|
-
.
|
197
|
-
.
|
198
|
-
.SH "STRUCTURE TYPES"
|
199
|
-
.rs
|
200
|
-
.sp
|
201
|
-
The types of the opaque structures that are used for compiled 16-bit patterns
|
202
|
-
and JIT stacks are \fBpcre16\fP and \fBpcre16_jit_stack\fP respectively. The
|
203
|
-
type of the user-accessible structure that is returned by \fBpcre16_study()\fP
|
204
|
-
is \fBpcre16_extra\fP, and the type of the structure that is used for passing
|
205
|
-
data to a callout function is \fBpcre16_callout_block\fP. These structures
|
206
|
-
contain the same fields, with the same names, as their 8-bit counterparts. The
|
207
|
-
only difference is that pointers to character strings are 16-bit instead of
|
208
|
-
8-bit types.
|
209
|
-
.
|
210
|
-
.
|
211
|
-
.SH "16-BIT FUNCTIONS"
|
212
|
-
.rs
|
213
|
-
.sp
|
214
|
-
For every function in the 8-bit library there is a corresponding function in
|
215
|
-
the 16-bit library with a name that starts with \fBpcre16_\fP instead of
|
216
|
-
\fBpcre_\fP. The prototypes are listed above. In addition, there is one extra
|
217
|
-
function, \fBpcre16_utf16_to_host_byte_order()\fP. This is a utility function
|
218
|
-
that converts a UTF-16 character string to host byte order if necessary. The
|
219
|
-
other 16-bit functions expect the strings they are passed to be in host byte
|
220
|
-
order.
|
221
|
-
.P
|
222
|
-
The \fIinput\fP and \fIoutput\fP arguments of
|
223
|
-
\fBpcre16_utf16_to_host_byte_order()\fP may point to the same address, that is,
|
224
|
-
conversion in place is supported. The output buffer must be at least as long as
|
225
|
-
the input.
|
226
|
-
.P
|
227
|
-
The \fIlength\fP argument specifies the number of 16-bit data units in the
|
228
|
-
input string; a negative value specifies a zero-terminated string.
|
229
|
-
.P
|
230
|
-
If \fIbyte_order\fP is NULL, it is assumed that the string starts off in host
|
231
|
-
byte order. This may be changed by byte-order marks (BOMs) anywhere in the
|
232
|
-
string (commonly as the first character).
|
233
|
-
.P
|
234
|
-
If \fIbyte_order\fP is not NULL, a non-zero value of the integer to which it
|
235
|
-
points means that the input starts off in host byte order, otherwise the
|
236
|
-
opposite order is assumed. Again, BOMs in the string can change this. The final
|
237
|
-
byte order is passed back at the end of processing.
|
238
|
-
.P
|
239
|
-
If \fIkeep_boms\fP is not zero, byte-order mark characters (0xfeff) are copied
|
240
|
-
into the output string. Otherwise they are discarded.
|
241
|
-
.P
|
242
|
-
The result of the function is the number of 16-bit units placed into the output
|
243
|
-
buffer, including the zero terminator if the string was zero-terminated.
|
244
|
-
.
|
245
|
-
.
|
246
|
-
.SH "SUBJECT STRING OFFSETS"
|
247
|
-
.rs
|
248
|
-
.sp
|
249
|
-
The offsets within subject strings that are returned by the matching functions
|
250
|
-
are in 16-bit units rather than bytes.
|
251
|
-
.
|
252
|
-
.
|
253
|
-
.SH "NAMED SUBPATTERNS"
|
254
|
-
.rs
|
255
|
-
.sp
|
256
|
-
The name-to-number translation table that is maintained for named subpatterns
|
257
|
-
uses 16-bit characters. The \fBpcre16_get_stringtable_entries()\fP function
|
258
|
-
returns the length of each entry in the table as the number of 16-bit data
|
259
|
-
units.
|
260
|
-
.
|
261
|
-
.
|
262
|
-
.SH "OPTION NAMES"
|
263
|
-
.rs
|
264
|
-
.sp
|
265
|
-
There are two new general option names, PCRE_UTF16 and PCRE_NO_UTF16_CHECK,
|
266
|
-
which correspond to PCRE_UTF8 and PCRE_NO_UTF8_CHECK in the 8-bit library. In
|
267
|
-
fact, these new options define the same bits in the options word. There is a
|
268
|
-
discussion about the
|
269
|
-
.\" HTML <a href="pcreunicode.html#utf16strings">
|
270
|
-
.\" </a>
|
271
|
-
validity of UTF-16 strings
|
272
|
-
.\"
|
273
|
-
in the
|
274
|
-
.\" HREF
|
275
|
-
\fBpcreunicode\fP
|
276
|
-
.\"
|
277
|
-
page.
|
278
|
-
.P
|
279
|
-
For the \fBpcre16_config()\fP function there is an option PCRE_CONFIG_UTF16
|
280
|
-
that returns 1 if UTF-16 support is configured, otherwise 0. If this option is
|
281
|
-
given to \fBpcre_config()\fP or \fBpcre32_config()\fP, or if the
|
282
|
-
PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF32 option is given to \fBpcre16_config()\fP,
|
283
|
-
the result is the PCRE_ERROR_BADOPTION error.
|
284
|
-
.
|
285
|
-
.
|
286
|
-
.SH "CHARACTER CODES"
|
287
|
-
.rs
|
288
|
-
.sp
|
289
|
-
In 16-bit mode, when PCRE_UTF16 is not set, character values are treated in the
|
290
|
-
same way as in 8-bit, non UTF-8 mode, except, of course, that they can range
|
291
|
-
from 0 to 0xffff instead of 0 to 0xff. Character types for characters less than
|
292
|
-
0xff can therefore be influenced by the locale in the same way as before.
|
293
|
-
Characters greater than 0xff have only one case, and no "type" (such as letter
|
294
|
-
or digit).
|
295
|
-
.P
|
296
|
-
In UTF-16 mode, the character code is Unicode, in the range 0 to 0x10ffff, with
|
297
|
-
the exception of values in the range 0xd800 to 0xdfff because those are
|
298
|
-
"surrogate" values that are used in pairs to encode values greater than 0xffff.
|
299
|
-
.P
|
300
|
-
A UTF-16 string can indicate its endianness by special code knows as a
|
301
|
-
byte-order mark (BOM). The PCRE functions do not handle this, expecting strings
|
302
|
-
to be in host byte order. A utility function called
|
303
|
-
\fBpcre16_utf16_to_host_byte_order()\fP is provided to help with this (see
|
304
|
-
above).
|
305
|
-
.
|
306
|
-
.
|
307
|
-
.SH "ERROR NAMES"
|
308
|
-
.rs
|
309
|
-
.sp
|
310
|
-
The errors PCRE_ERROR_BADUTF16_OFFSET and PCRE_ERROR_SHORTUTF16 correspond to
|
311
|
-
their 8-bit counterparts. The error PCRE_ERROR_BADMODE is given when a compiled
|
312
|
-
pattern is passed to a function that processes patterns in the other
|
313
|
-
mode, for example, if a pattern compiled with \fBpcre_compile()\fP is passed to
|
314
|
-
\fBpcre16_exec()\fP.
|
315
|
-
.P
|
316
|
-
There are new error codes whose names begin with PCRE_UTF16_ERR for invalid
|
317
|
-
UTF-16 strings, corresponding to the PCRE_UTF8_ERR codes for UTF-8 strings that
|
318
|
-
are described in the section entitled
|
319
|
-
.\" HTML <a href="pcreapi.html#badutf8reasons">
|
320
|
-
.\" </a>
|
321
|
-
"Reason codes for invalid UTF-8 strings"
|
322
|
-
.\"
|
323
|
-
in the main
|
324
|
-
.\" HREF
|
325
|
-
\fBpcreapi\fP
|
326
|
-
.\"
|
327
|
-
page. The UTF-16 errors are:
|
328
|
-
.sp
|
329
|
-
PCRE_UTF16_ERR1 Missing low surrogate at end of string
|
330
|
-
PCRE_UTF16_ERR2 Invalid low surrogate follows high surrogate
|
331
|
-
PCRE_UTF16_ERR3 Isolated low surrogate
|
332
|
-
PCRE_UTF16_ERR4 Non-character
|
333
|
-
.
|
334
|
-
.
|
335
|
-
.SH "ERROR TEXTS"
|
336
|
-
.rs
|
337
|
-
.sp
|
338
|
-
If there is an error while compiling a pattern, the error text that is passed
|
339
|
-
back by \fBpcre16_compile()\fP or \fBpcre16_compile2()\fP is still an 8-bit
|
340
|
-
character string, zero-terminated.
|
341
|
-
.
|
342
|
-
.
|
343
|
-
.SH "CALLOUTS"
|
344
|
-
.rs
|
345
|
-
.sp
|
346
|
-
The \fIsubject\fP and \fImark\fP fields in the callout block that is passed to
|
347
|
-
a callout function point to 16-bit vectors.
|
348
|
-
.
|
349
|
-
.
|
350
|
-
.SH "TESTING"
|
351
|
-
.rs
|
352
|
-
.sp
|
353
|
-
The \fBpcretest\fP program continues to operate with 8-bit input and output
|
354
|
-
files, but it can be used for testing the 16-bit library. If it is run with the
|
355
|
-
command line option \fB-16\fP, patterns and subject strings are converted from
|
356
|
-
8-bit to 16-bit before being passed to PCRE, and the 16-bit library functions
|
357
|
-
are used instead of the 8-bit ones. Returned 16-bit strings are converted to
|
358
|
-
8-bit for output. If both the 8-bit and the 32-bit libraries were not compiled,
|
359
|
-
\fBpcretest\fP defaults to 16-bit and the \fB-16\fP option is ignored.
|
360
|
-
.P
|
361
|
-
When PCRE is being built, the \fBRunTest\fP script that is called by "make
|
362
|
-
check" uses the \fBpcretest\fP \fB-C\fP option to discover which of the 8-bit,
|
363
|
-
16-bit and 32-bit libraries has been built, and runs the tests appropriately.
|
364
|
-
.
|
365
|
-
.
|
366
|
-
.SH "NOT SUPPORTED IN 16-BIT MODE"
|
367
|
-
.rs
|
368
|
-
.sp
|
369
|
-
Not all the features of the 8-bit library are available with the 16-bit
|
370
|
-
library. The C++ and POSIX wrapper functions support only the 8-bit library,
|
371
|
-
and the \fBpcregrep\fP program is at present 8-bit only.
|
372
|
-
.
|
373
|
-
.
|
374
|
-
.SH AUTHOR
|
375
|
-
.rs
|
376
|
-
.sp
|
377
|
-
.nf
|
378
|
-
Philip Hazel
|
379
|
-
University Computing Service
|
380
|
-
Cambridge CB2 3QH, England.
|
381
|
-
.fi
|
382
|
-
.
|
383
|
-
.
|
384
|
-
.SH REVISION
|
385
|
-
.rs
|
386
|
-
.sp
|
387
|
-
.nf
|
388
|
-
Last updated: 08 November 2012
|
389
|
-
Copyright (c) 1997-2012 University of Cambridge.
|
390
|
-
.fi
|
@@ -1,389 +0,0 @@
|
|
1
|
-
.TH PCRE 3 "08 November 2012" "PCRE 8.32"
|
2
|
-
.SH NAME
|
3
|
-
PCRE - Perl-compatible regular expressions
|
4
|
-
.sp
|
5
|
-
.B #include <pcre.h>
|
6
|
-
.
|
7
|
-
.
|
8
|
-
.SH "PCRE 32-BIT API BASIC FUNCTIONS"
|
9
|
-
.rs
|
10
|
-
.sp
|
11
|
-
.SM
|
12
|
-
.B pcre32 *pcre32_compile(PCRE_SPTR32 \fIpattern\fP, int \fIoptions\fP,
|
13
|
-
.ti +5n
|
14
|
-
.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
|
15
|
-
.ti +5n
|
16
|
-
.B const unsigned char *\fItableptr\fP);
|
17
|
-
.PP
|
18
|
-
.B pcre32 *pcre32_compile2(PCRE_SPTR32 \fIpattern\fP, int \fIoptions\fP,
|
19
|
-
.ti +5n
|
20
|
-
.B int *\fIerrorcodeptr\fP,
|
21
|
-
.ti +5n
|
22
|
-
.B const char **\fIerrptr\fP, int *\fIerroffset\fP,
|
23
|
-
.ti +5n
|
24
|
-
.B const unsigned char *\fItableptr\fP);
|
25
|
-
.PP
|
26
|
-
.B pcre32_extra *pcre32_study(const pcre32 *\fIcode\fP, int \fIoptions\fP,
|
27
|
-
.ti +5n
|
28
|
-
.B const char **\fIerrptr\fP);
|
29
|
-
.PP
|
30
|
-
.B void pcre32_free_study(pcre32_extra *\fIextra\fP);
|
31
|
-
.PP
|
32
|
-
.B int pcre32_exec(const pcre32 *\fIcode\fP, "const pcre32_extra *\fIextra\fP,"
|
33
|
-
.ti +5n
|
34
|
-
.B "PCRE_SPTR32 \fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
|
35
|
-
.ti +5n
|
36
|
-
.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP);
|
37
|
-
.PP
|
38
|
-
.B int pcre32_dfa_exec(const pcre32 *\fIcode\fP, "const pcre32_extra *\fIextra\fP,"
|
39
|
-
.ti +5n
|
40
|
-
.B "PCRE_SPTR32 \fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
|
41
|
-
.ti +5n
|
42
|
-
.B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP,
|
43
|
-
.ti +5n
|
44
|
-
.B int *\fIworkspace\fP, int \fIwscount\fP);
|
45
|
-
.
|
46
|
-
.
|
47
|
-
.SH "PCRE 32-BIT API STRING EXTRACTION FUNCTIONS"
|
48
|
-
.rs
|
49
|
-
.sp
|
50
|
-
.B int pcre32_copy_named_substring(const pcre32 *\fIcode\fP,
|
51
|
-
.ti +5n
|
52
|
-
.B PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,
|
53
|
-
.ti +5n
|
54
|
-
.B int \fIstringcount\fP, PCRE_SPTR32 \fIstringname\fP,
|
55
|
-
.ti +5n
|
56
|
-
.B PCRE_UCHAR32 *\fIbuffer\fP, int \fIbuffersize\fP);
|
57
|
-
.PP
|
58
|
-
.B int pcre32_copy_substring(PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,
|
59
|
-
.ti +5n
|
60
|
-
.B int \fIstringcount\fP, int \fIstringnumber\fP, PCRE_UCHAR32 *\fIbuffer\fP,
|
61
|
-
.ti +5n
|
62
|
-
.B int \fIbuffersize\fP);
|
63
|
-
.PP
|
64
|
-
.B int pcre32_get_named_substring(const pcre32 *\fIcode\fP,
|
65
|
-
.ti +5n
|
66
|
-
.B PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,
|
67
|
-
.ti +5n
|
68
|
-
.B int \fIstringcount\fP, PCRE_SPTR32 \fIstringname\fP,
|
69
|
-
.ti +5n
|
70
|
-
.B PCRE_SPTR32 *\fIstringptr\fP);
|
71
|
-
.PP
|
72
|
-
.B int pcre32_get_stringnumber(const pcre32 *\fIcode\fP,
|
73
|
-
.ti +5n
|
74
|
-
.B PCRE_SPTR32 \fIname\fP);
|
75
|
-
.PP
|
76
|
-
.B int pcre32_get_stringtable_entries(const pcre32 *\fIcode\fP,
|
77
|
-
.ti +5n
|
78
|
-
.B PCRE_SPTR32 \fIname\fP, PCRE_UCHAR32 **\fIfirst\fP, PCRE_UCHAR32 **\fIlast\fP);
|
79
|
-
.PP
|
80
|
-
.B int pcre32_get_substring(PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,
|
81
|
-
.ti +5n
|
82
|
-
.B int \fIstringcount\fP, int \fIstringnumber\fP,
|
83
|
-
.ti +5n
|
84
|
-
.B PCRE_SPTR32 *\fIstringptr\fP);
|
85
|
-
.PP
|
86
|
-
.B int pcre32_get_substring_list(PCRE_SPTR32 \fIsubject\fP,
|
87
|
-
.ti +5n
|
88
|
-
.B int *\fIovector\fP, int \fIstringcount\fP, "PCRE_SPTR32 **\fIlistptr\fP);"
|
89
|
-
.PP
|
90
|
-
.B void pcre32_free_substring(PCRE_SPTR32 \fIstringptr\fP);
|
91
|
-
.PP
|
92
|
-
.B void pcre32_free_substring_list(PCRE_SPTR32 *\fIstringptr\fP);
|
93
|
-
.
|
94
|
-
.
|
95
|
-
.SH "PCRE 32-BIT API AUXILIARY FUNCTIONS"
|
96
|
-
.rs
|
97
|
-
.sp
|
98
|
-
.B pcre32_jit_stack *pcre32_jit_stack_alloc(int \fIstartsize\fP, int \fImaxsize\fP);
|
99
|
-
.PP
|
100
|
-
.B void pcre32_jit_stack_free(pcre32_jit_stack *\fIstack\fP);
|
101
|
-
.PP
|
102
|
-
.B void pcre32_assign_jit_stack(pcre32_extra *\fIextra\fP,
|
103
|
-
.ti +5n
|
104
|
-
.B pcre32_jit_callback \fIcallback\fP, void *\fIdata\fP);
|
105
|
-
.PP
|
106
|
-
.B const unsigned char *pcre32_maketables(void);
|
107
|
-
.PP
|
108
|
-
.B int pcre32_fullinfo(const pcre32 *\fIcode\fP, "const pcre32_extra *\fIextra\fP,"
|
109
|
-
.ti +5n
|
110
|
-
.B int \fIwhat\fP, void *\fIwhere\fP);
|
111
|
-
.PP
|
112
|
-
.B int pcre32_refcount(pcre32 *\fIcode\fP, int \fIadjust\fP);
|
113
|
-
.PP
|
114
|
-
.B int pcre32_config(int \fIwhat\fP, void *\fIwhere\fP);
|
115
|
-
.PP
|
116
|
-
.B const char *pcre32_version(void);
|
117
|
-
.PP
|
118
|
-
.B int pcre32_pattern_to_host_byte_order(pcre32 *\fIcode\fP,
|
119
|
-
.ti +5n
|
120
|
-
.B pcre32_extra *\fIextra\fP, const unsigned char *\fItables\fP);
|
121
|
-
.
|
122
|
-
.
|
123
|
-
.SH "PCRE 32-BIT API INDIRECTED FUNCTIONS"
|
124
|
-
.rs
|
125
|
-
.sp
|
126
|
-
.B void *(*pcre32_malloc)(size_t);
|
127
|
-
.PP
|
128
|
-
.B void (*pcre32_free)(void *);
|
129
|
-
.PP
|
130
|
-
.B void *(*pcre32_stack_malloc)(size_t);
|
131
|
-
.PP
|
132
|
-
.B void (*pcre32_stack_free)(void *);
|
133
|
-
.PP
|
134
|
-
.B int (*pcre32_callout)(pcre32_callout_block *);
|
135
|
-
.
|
136
|
-
.
|
137
|
-
.SH "PCRE 32-BIT API 32-BIT-ONLY FUNCTION"
|
138
|
-
.rs
|
139
|
-
.sp
|
140
|
-
.B int pcre32_utf32_to_host_byte_order(PCRE_UCHAR32 *\fIoutput\fP,
|
141
|
-
.ti +5n
|
142
|
-
.B PCRE_SPTR32 \fIinput\fP, int \fIlength\fP, int *\fIbyte_order\fP,
|
143
|
-
.ti +5n
|
144
|
-
.B int \fIkeep_boms\fP);
|
145
|
-
.
|
146
|
-
.
|
147
|
-
.SH "THE PCRE 32-BIT LIBRARY"
|
148
|
-
.rs
|
149
|
-
.sp
|
150
|
-
Starting with release 8.32, it is possible to compile a PCRE library that
|
151
|
-
supports 32-bit character strings, including UTF-32 strings, as well as or
|
152
|
-
instead of the original 8-bit library. This work was done by Christian Persch,
|
153
|
-
based on the work done by Zoltan Herczeg for the 16-bit library. All three
|
154
|
-
libraries contain identical sets of functions, used in exactly the same way.
|
155
|
-
Only the names of the functions and the data types of their arguments and
|
156
|
-
results are different. To avoid over-complication and reduce the documentation
|
157
|
-
maintenance load, most of the PCRE documentation describes the 8-bit library,
|
158
|
-
with only occasional references to the 16-bit and 32-bit libraries. This page
|
159
|
-
describes what is different when you use the 32-bit library.
|
160
|
-
.P
|
161
|
-
WARNING: A single application can be linked with all or any of the three
|
162
|
-
libraries, but you must take care when processing any particular pattern
|
163
|
-
to use functions from just one library. For example, if you want to study
|
164
|
-
a pattern that was compiled with \fBpcre32_compile()\fP, you must do so
|
165
|
-
with \fBpcre32_study()\fP, not \fBpcre_study()\fP, and you must free the
|
166
|
-
study data with \fBpcre32_free_study()\fP.
|
167
|
-
.
|
168
|
-
.
|
169
|
-
.SH "THE HEADER FILE"
|
170
|
-
.rs
|
171
|
-
.sp
|
172
|
-
There is only one header file, \fBpcre.h\fP. It contains prototypes for all the
|
173
|
-
functions in all libraries, as well as definitions of flags, structures, error
|
174
|
-
codes, etc.
|
175
|
-
.
|
176
|
-
.
|
177
|
-
.SH "THE LIBRARY NAME"
|
178
|
-
.rs
|
179
|
-
.sp
|
180
|
-
In Unix-like systems, the 32-bit library is called \fBlibpcre32\fP, and can
|
181
|
-
normally be accesss by adding \fB-lpcre32\fP to the command for linking an
|
182
|
-
application that uses PCRE.
|
183
|
-
.
|
184
|
-
.
|
185
|
-
.SH "STRING TYPES"
|
186
|
-
.rs
|
187
|
-
.sp
|
188
|
-
In the 8-bit library, strings are passed to PCRE library functions as vectors
|
189
|
-
of bytes with the C type "char *". In the 32-bit library, strings are passed as
|
190
|
-
vectors of unsigned 32-bit quantities. The macro PCRE_UCHAR32 specifies an
|
191
|
-
appropriate data type, and PCRE_SPTR32 is defined as "const PCRE_UCHAR32 *". In
|
192
|
-
very many environments, "unsigned int" is a 32-bit data type. When PCRE is
|
193
|
-
built, it defines PCRE_UCHAR32 as "unsigned int", but checks that it really is
|
194
|
-
a 32-bit data type. If it is not, the build fails with an error message telling
|
195
|
-
the maintainer to modify the definition appropriately.
|
196
|
-
.
|
197
|
-
.
|
198
|
-
.SH "STRUCTURE TYPES"
|
199
|
-
.rs
|
200
|
-
.sp
|
201
|
-
The types of the opaque structures that are used for compiled 32-bit patterns
|
202
|
-
and JIT stacks are \fBpcre32\fP and \fBpcre32_jit_stack\fP respectively. The
|
203
|
-
type of the user-accessible structure that is returned by \fBpcre32_study()\fP
|
204
|
-
is \fBpcre32_extra\fP, and the type of the structure that is used for passing
|
205
|
-
data to a callout function is \fBpcre32_callout_block\fP. These structures
|
206
|
-
contain the same fields, with the same names, as their 8-bit counterparts. The
|
207
|
-
only difference is that pointers to character strings are 32-bit instead of
|
208
|
-
8-bit types.
|
209
|
-
.
|
210
|
-
.
|
211
|
-
.SH "32-BIT FUNCTIONS"
|
212
|
-
.rs
|
213
|
-
.sp
|
214
|
-
For every function in the 8-bit library there is a corresponding function in
|
215
|
-
the 32-bit library with a name that starts with \fBpcre32_\fP instead of
|
216
|
-
\fBpcre_\fP. The prototypes are listed above. In addition, there is one extra
|
217
|
-
function, \fBpcre32_utf32_to_host_byte_order()\fP. This is a utility function
|
218
|
-
that converts a UTF-32 character string to host byte order if necessary. The
|
219
|
-
other 32-bit functions expect the strings they are passed to be in host byte
|
220
|
-
order.
|
221
|
-
.P
|
222
|
-
The \fIinput\fP and \fIoutput\fP arguments of
|
223
|
-
\fBpcre32_utf32_to_host_byte_order()\fP may point to the same address, that is,
|
224
|
-
conversion in place is supported. The output buffer must be at least as long as
|
225
|
-
the input.
|
226
|
-
.P
|
227
|
-
The \fIlength\fP argument specifies the number of 32-bit data units in the
|
228
|
-
input string; a negative value specifies a zero-terminated string.
|
229
|
-
.P
|
230
|
-
If \fIbyte_order\fP is NULL, it is assumed that the string starts off in host
|
231
|
-
byte order. This may be changed by byte-order marks (BOMs) anywhere in the
|
232
|
-
string (commonly as the first character).
|
233
|
-
.P
|
234
|
-
If \fIbyte_order\fP is not NULL, a non-zero value of the integer to which it
|
235
|
-
points means that the input starts off in host byte order, otherwise the
|
236
|
-
opposite order is assumed. Again, BOMs in the string can change this. The final
|
237
|
-
byte order is passed back at the end of processing.
|
238
|
-
.P
|
239
|
-
If \fIkeep_boms\fP is not zero, byte-order mark characters (0xfeff) are copied
|
240
|
-
into the output string. Otherwise they are discarded.
|
241
|
-
.P
|
242
|
-
The result of the function is the number of 32-bit units placed into the output
|
243
|
-
buffer, including the zero terminator if the string was zero-terminated.
|
244
|
-
.
|
245
|
-
.
|
246
|
-
.SH "SUBJECT STRING OFFSETS"
|
247
|
-
.rs
|
248
|
-
.sp
|
249
|
-
The offsets within subject strings that are returned by the matching functions
|
250
|
-
are in 32-bit units rather than bytes.
|
251
|
-
.
|
252
|
-
.
|
253
|
-
.SH "NAMED SUBPATTERNS"
|
254
|
-
.rs
|
255
|
-
.sp
|
256
|
-
The name-to-number translation table that is maintained for named subpatterns
|
257
|
-
uses 32-bit characters. The \fBpcre32_get_stringtable_entries()\fP function
|
258
|
-
returns the length of each entry in the table as the number of 32-bit data
|
259
|
-
units.
|
260
|
-
.
|
261
|
-
.
|
262
|
-
.SH "OPTION NAMES"
|
263
|
-
.rs
|
264
|
-
.sp
|
265
|
-
There are two new general option names, PCRE_UTF32 and PCRE_NO_UTF32_CHECK,
|
266
|
-
which correspond to PCRE_UTF8 and PCRE_NO_UTF8_CHECK in the 8-bit library. In
|
267
|
-
fact, these new options define the same bits in the options word. There is a
|
268
|
-
discussion about the
|
269
|
-
.\" HTML <a href="pcreunicode.html#utf32strings">
|
270
|
-
.\" </a>
|
271
|
-
validity of UTF-32 strings
|
272
|
-
.\"
|
273
|
-
in the
|
274
|
-
.\" HREF
|
275
|
-
\fBpcreunicode\fP
|
276
|
-
.\"
|
277
|
-
page.
|
278
|
-
.P
|
279
|
-
For the \fBpcre32_config()\fP function there is an option PCRE_CONFIG_UTF32
|
280
|
-
that returns 1 if UTF-32 support is configured, otherwise 0. If this option is
|
281
|
-
given to \fBpcre_config()\fP or \fBpcre16_config()\fP, or if the
|
282
|
-
PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF16 option is given to \fBpcre32_config()\fP,
|
283
|
-
the result is the PCRE_ERROR_BADOPTION error.
|
284
|
-
.
|
285
|
-
.
|
286
|
-
.SH "CHARACTER CODES"
|
287
|
-
.rs
|
288
|
-
.sp
|
289
|
-
In 32-bit mode, when PCRE_UTF32 is not set, character values are treated in the
|
290
|
-
same way as in 8-bit, non UTF-8 mode, except, of course, that they can range
|
291
|
-
from 0 to 0x7fffffff instead of 0 to 0xff. Character types for characters less
|
292
|
-
than 0xff can therefore be influenced by the locale in the same way as before.
|
293
|
-
Characters greater than 0xff have only one case, and no "type" (such as letter
|
294
|
-
or digit).
|
295
|
-
.P
|
296
|
-
In UTF-32 mode, the character code is Unicode, in the range 0 to 0x10ffff, with
|
297
|
-
the exception of values in the range 0xd800 to 0xdfff because those are
|
298
|
-
"surrogate" values that are ill-formed in UTF-32.
|
299
|
-
.P
|
300
|
-
A UTF-32 string can indicate its endianness by special code knows as a
|
301
|
-
byte-order mark (BOM). The PCRE functions do not handle this, expecting strings
|
302
|
-
to be in host byte order. A utility function called
|
303
|
-
\fBpcre32_utf32_to_host_byte_order()\fP is provided to help with this (see
|
304
|
-
above).
|
305
|
-
.
|
306
|
-
.
|
307
|
-
.SH "ERROR NAMES"
|
308
|
-
.rs
|
309
|
-
.sp
|
310
|
-
The error PCRE_ERROR_BADUTF32 corresponds to its 8-bit counterpart.
|
311
|
-
The error PCRE_ERROR_BADMODE is given when a compiled
|
312
|
-
pattern is passed to a function that processes patterns in the other
|
313
|
-
mode, for example, if a pattern compiled with \fBpcre_compile()\fP is passed to
|
314
|
-
\fBpcre32_exec()\fP.
|
315
|
-
.P
|
316
|
-
There are new error codes whose names begin with PCRE_UTF32_ERR for invalid
|
317
|
-
UTF-32 strings, corresponding to the PCRE_UTF8_ERR codes for UTF-8 strings that
|
318
|
-
are described in the section entitled
|
319
|
-
.\" HTML <a href="pcreapi.html#badutf8reasons">
|
320
|
-
.\" </a>
|
321
|
-
"Reason codes for invalid UTF-8 strings"
|
322
|
-
.\"
|
323
|
-
in the main
|
324
|
-
.\" HREF
|
325
|
-
\fBpcreapi\fP
|
326
|
-
.\"
|
327
|
-
page. The UTF-32 errors are:
|
328
|
-
.sp
|
329
|
-
PCRE_UTF32_ERR1 Surrogate character (range from 0xd800 to 0xdfff)
|
330
|
-
PCRE_UTF32_ERR2 Non-character
|
331
|
-
PCRE_UTF32_ERR3 Character > 0x10ffff
|
332
|
-
.
|
333
|
-
.
|
334
|
-
.SH "ERROR TEXTS"
|
335
|
-
.rs
|
336
|
-
.sp
|
337
|
-
If there is an error while compiling a pattern, the error text that is passed
|
338
|
-
back by \fBpcre32_compile()\fP or \fBpcre32_compile2()\fP is still an 8-bit
|
339
|
-
character string, zero-terminated.
|
340
|
-
.
|
341
|
-
.
|
342
|
-
.SH "CALLOUTS"
|
343
|
-
.rs
|
344
|
-
.sp
|
345
|
-
The \fIsubject\fP and \fImark\fP fields in the callout block that is passed to
|
346
|
-
a callout function point to 32-bit vectors.
|
347
|
-
.
|
348
|
-
.
|
349
|
-
.SH "TESTING"
|
350
|
-
.rs
|
351
|
-
.sp
|
352
|
-
The \fBpcretest\fP program continues to operate with 8-bit input and output
|
353
|
-
files, but it can be used for testing the 32-bit library. If it is run with the
|
354
|
-
command line option \fB-32\fP, patterns and subject strings are converted from
|
355
|
-
8-bit to 32-bit before being passed to PCRE, and the 32-bit library functions
|
356
|
-
are used instead of the 8-bit ones. Returned 32-bit strings are converted to
|
357
|
-
8-bit for output. If both the 8-bit and the 16-bit libraries were not compiled,
|
358
|
-
\fBpcretest\fP defaults to 32-bit and the \fB-32\fP option is ignored.
|
359
|
-
.P
|
360
|
-
When PCRE is being built, the \fBRunTest\fP script that is called by "make
|
361
|
-
check" uses the \fBpcretest\fP \fB-C\fP option to discover which of the 8-bit,
|
362
|
-
16-bit and 32-bit libraries has been built, and runs the tests appropriately.
|
363
|
-
.
|
364
|
-
.
|
365
|
-
.SH "NOT SUPPORTED IN 32-BIT MODE"
|
366
|
-
.rs
|
367
|
-
.sp
|
368
|
-
Not all the features of the 8-bit library are available with the 32-bit
|
369
|
-
library. The C++ and POSIX wrapper functions support only the 8-bit library,
|
370
|
-
and the \fBpcregrep\fP program is at present 8-bit only.
|
371
|
-
.
|
372
|
-
.
|
373
|
-
.SH AUTHOR
|
374
|
-
.rs
|
375
|
-
.sp
|
376
|
-
.nf
|
377
|
-
Philip Hazel
|
378
|
-
University Computing Service
|
379
|
-
Cambridge CB2 3QH, England.
|
380
|
-
.fi
|
381
|
-
.
|
382
|
-
.
|
383
|
-
.SH REVISION
|
384
|
-
.rs
|
385
|
-
.sp
|
386
|
-
.nf
|
387
|
-
Last updated: 08 November 2012
|
388
|
-
Copyright (c) 1997-2012 University of Cambridge.
|
389
|
-
.fi
|