├── .github
└── workflows
│ └── test.yml
├── .gitignore
├── README.md
├── mrbgem.rake
├── mrblib
├── regexp_pcre.rb
└── string_pcre.rb
├── pcre
├── 132html
├── AUTHORS
├── CMakeLists.txt
├── COPYING
├── ChangeLog
├── CheckMan
├── CleanTxt
├── Detrail
├── HACKING
├── INSTALL
├── LICENCE
├── Makefile.am
├── Makefile.in
├── NEWS
├── NON-AUTOTOOLS-BUILD
├── NON-UNIX-USE
├── PrepareRelease
├── README
├── RunGrepTest
├── RunTest
├── RunTest.bat
├── aclocal.m4
├── ar-lib
├── cmake
│ ├── COPYING-CMAKE-SCRIPTS
│ ├── FindEditline.cmake
│ ├── FindPackageHandleStandardArgs.cmake
│ └── FindReadline.cmake
├── compile
├── config-cmake.h.in
├── config.guess
├── config.h
├── config.h.generic
├── config.h.in
├── config.sub
├── configure
├── configure.ac
├── depcomp
├── dftables.c
├── doc
│ ├── html
│ │ ├── NON-AUTOTOOLS-BUILD.txt
│ │ ├── README.txt
│ │ ├── index.html
│ │ ├── pcre-config.html
│ │ ├── pcre.html
│ │ ├── pcre16.html
│ │ ├── pcre32.html
│ │ ├── pcre_assign_jit_stack.html
│ │ ├── pcre_compile.html
│ │ ├── pcre_compile2.html
│ │ ├── pcre_config.html
│ │ ├── pcre_copy_named_substring.html
│ │ ├── pcre_copy_substring.html
│ │ ├── pcre_dfa_exec.html
│ │ ├── pcre_exec.html
│ │ ├── pcre_free_study.html
│ │ ├── pcre_free_substring.html
│ │ ├── pcre_free_substring_list.html
│ │ ├── pcre_fullinfo.html
│ │ ├── pcre_get_named_substring.html
│ │ ├── pcre_get_stringnumber.html
│ │ ├── pcre_get_stringtable_entries.html
│ │ ├── pcre_get_substring.html
│ │ ├── pcre_get_substring_list.html
│ │ ├── pcre_jit_exec.html
│ │ ├── pcre_jit_stack_alloc.html
│ │ ├── pcre_jit_stack_free.html
│ │ ├── pcre_maketables.html
│ │ ├── pcre_pattern_to_host_byte_order.html
│ │ ├── pcre_refcount.html
│ │ ├── pcre_study.html
│ │ ├── pcre_utf16_to_host_byte_order.html
│ │ ├── pcre_utf32_to_host_byte_order.html
│ │ ├── pcre_version.html
│ │ ├── pcreapi.html
│ │ ├── pcrebuild.html
│ │ ├── pcrecallout.html
│ │ ├── pcrecompat.html
│ │ ├── pcrecpp.html
│ │ ├── pcredemo.html
│ │ ├── pcregrep.html
│ │ ├── pcrejit.html
│ │ ├── pcrelimits.html
│ │ ├── pcrematching.html
│ │ ├── pcrepartial.html
│ │ ├── pcrepattern.html
│ │ ├── pcreperform.html
│ │ ├── pcreposix.html
│ │ ├── pcreprecompile.html
│ │ ├── pcresample.html
│ │ ├── pcrestack.html
│ │ ├── pcresyntax.html
│ │ ├── pcretest.html
│ │ └── pcreunicode.html
│ ├── index.html.src
│ ├── pcre-config.1
│ ├── pcre-config.txt
│ ├── pcre.3
│ ├── pcre.txt
│ ├── pcre16.3
│ ├── pcre32.3
│ ├── pcre_assign_jit_stack.3
│ ├── pcre_compile.3
│ ├── pcre_compile2.3
│ ├── pcre_config.3
│ ├── pcre_copy_named_substring.3
│ ├── pcre_copy_substring.3
│ ├── pcre_dfa_exec.3
│ ├── pcre_exec.3
│ ├── pcre_free_study.3
│ ├── pcre_free_substring.3
│ ├── pcre_free_substring_list.3
│ ├── pcre_fullinfo.3
│ ├── pcre_get_named_substring.3
│ ├── pcre_get_stringnumber.3
│ ├── pcre_get_stringtable_entries.3
│ ├── pcre_get_substring.3
│ ├── pcre_get_substring_list.3
│ ├── pcre_jit_exec.3
│ ├── pcre_jit_stack_alloc.3
│ ├── pcre_jit_stack_free.3
│ ├── pcre_maketables.3
│ ├── pcre_pattern_to_host_byte_order.3
│ ├── pcre_refcount.3
│ ├── pcre_study.3
│ ├── pcre_utf16_to_host_byte_order.3
│ ├── pcre_utf32_to_host_byte_order.3
│ ├── pcre_version.3
│ ├── pcreapi.3
│ ├── pcrebuild.3
│ ├── pcrecallout.3
│ ├── pcrecompat.3
│ ├── pcrecpp.3
│ ├── pcredemo.3
│ ├── pcregrep.1
│ ├── pcregrep.txt
│ ├── pcrejit.3
│ ├── pcrelimits.3
│ ├── pcrematching.3
│ ├── pcrepartial.3
│ ├── pcrepattern.3
│ ├── pcreperform.3
│ ├── pcreposix.3
│ ├── pcreprecompile.3
│ ├── pcresample.3
│ ├── pcrestack.3
│ ├── pcresyntax.3
│ ├── pcretest.1
│ ├── pcretest.txt
│ ├── pcreunicode.3
│ └── perltest.txt
├── install-sh
├── libpcre.pc.in
├── libpcre16.pc.in
├── libpcre32.pc.in
├── libpcrecpp.pc.in
├── libpcreposix.pc.in
├── ltmain.sh
├── m4
│ ├── ax_pthread.m4
│ ├── libtool.m4
│ ├── ltoptions.m4
│ ├── ltsugar.m4
│ ├── ltversion.m4
│ ├── lt~obsolete.m4
│ └── pcre_visibility.m4
├── makevp.bat
├── makevp_c.txt
├── makevp_l.txt
├── missing
├── pcre-config.in
├── pcre.h
├── pcre.h.generic
├── pcre.h.in
├── pcre16_byte_order.c
├── pcre16_chartables.c
├── pcre16_compile.c
├── pcre16_config.c
├── pcre16_dfa_exec.c
├── pcre16_exec.c
├── pcre16_fullinfo.c
├── pcre16_get.c
├── pcre16_globals.c
├── pcre16_jit_compile.c
├── pcre16_maketables.c
├── pcre16_newline.c
├── pcre16_ord2utf16.c
├── pcre16_printint.c
├── pcre16_refcount.c
├── pcre16_string_utils.c
├── pcre16_study.c
├── pcre16_tables.c
├── pcre16_ucd.c
├── pcre16_utf16_utils.c
├── pcre16_valid_utf16.c
├── pcre16_version.c
├── pcre16_xclass.c
├── pcre32_byte_order.c
├── pcre32_chartables.c
├── pcre32_compile.c
├── pcre32_config.c
├── pcre32_dfa_exec.c
├── pcre32_exec.c
├── pcre32_fullinfo.c
├── pcre32_get.c
├── pcre32_globals.c
├── pcre32_jit_compile.c
├── pcre32_maketables.c
├── pcre32_newline.c
├── pcre32_ord2utf32.c
├── pcre32_printint.c
├── pcre32_refcount.c
├── pcre32_string_utils.c
├── pcre32_study.c
├── pcre32_tables.c
├── pcre32_ucd.c
├── pcre32_utf32_utils.c
├── pcre32_valid_utf32.c
├── pcre32_version.c
├── pcre32_xclass.c
├── pcre_byte_order.c
├── pcre_chartables.c
├── pcre_chartables.c.dist
├── pcre_compile.c
├── pcre_config.c
├── pcre_dfa_exec.c
├── pcre_exec.c
├── pcre_fullinfo.c
├── pcre_get.c
├── pcre_globals.c
├── pcre_internal.h
├── pcre_jit_compile.c
├── pcre_jit_test.c
├── pcre_maketables.c
├── pcre_newline.c
├── pcre_ord2utf8.c
├── pcre_printint.c
├── pcre_refcount.c
├── pcre_scanner.cc
├── pcre_scanner.h
├── pcre_scanner_unittest.cc
├── pcre_string_utils.c
├── pcre_stringpiece.cc
├── pcre_stringpiece.h.in
├── pcre_stringpiece_unittest.cc
├── pcre_study.c
├── pcre_tables.c
├── pcre_ucd.c
├── pcre_valid_utf8.c
├── pcre_version.c
├── pcre_xclass.c
├── pcrecpp.cc
├── pcrecpp.h
├── pcrecpp_internal.h
├── pcrecpp_unittest.cc
├── pcrecpparg.h.in
├── pcredemo.c
├── pcregexp.pas
├── pcregrep.c
├── pcreposix.c
├── pcreposix.h
├── pcretest.c
├── perltest.pl
├── sljit
│ ├── sljitConfig.h
│ ├── sljitConfigInternal.h
│ ├── sljitExecAllocator.c
│ ├── sljitLir.c
│ ├── sljitLir.h
│ ├── sljitNativeARM_32.c
│ ├── sljitNativeARM_64.c
│ ├── sljitNativeARM_T2_32.c
│ ├── sljitNativeMIPS_32.c
│ ├── sljitNativeMIPS_64.c
│ ├── sljitNativeMIPS_common.c
│ ├── sljitNativePPC_32.c
│ ├── sljitNativePPC_64.c
│ ├── sljitNativePPC_common.c
│ ├── sljitNativeSPARC_32.c
│ ├── sljitNativeSPARC_common.c
│ ├── sljitNativeTILEGX-encoder.c
│ ├── sljitNativeTILEGX_64.c
│ ├── sljitNativeX86_32.c
│ ├── sljitNativeX86_64.c
│ ├── sljitNativeX86_common.c
│ └── sljitUtils.c
├── test-driver
├── testdata
│ ├── grepbinary
│ ├── grepfilelist
│ ├── grepinput
│ ├── grepinput3
│ ├── grepinput8
│ ├── grepinputv
│ ├── grepinputx
│ ├── greplist
│ ├── grepoutput
│ ├── grepoutput8
│ ├── grepoutputN
│ ├── greppatN4
│ ├── saved16
│ ├── saved16BE-1
│ ├── saved16BE-2
│ ├── saved16LE-1
│ ├── saved16LE-2
│ ├── saved32
│ ├── saved32BE-1
│ ├── saved32BE-2
│ ├── saved32LE-1
│ ├── saved32LE-2
│ ├── saved8
│ ├── testinput1
│ ├── testinput10
│ ├── testinput11
│ ├── testinput12
│ ├── testinput13
│ ├── testinput14
│ ├── testinput15
│ ├── testinput16
│ ├── testinput17
│ ├── testinput18
│ ├── testinput19
│ ├── testinput2
│ ├── testinput20
│ ├── testinput21
│ ├── testinput22
│ ├── testinput23
│ ├── testinput24
│ ├── testinput25
│ ├── testinput26
│ ├── testinput3
│ ├── testinput4
│ ├── testinput5
│ ├── testinput6
│ ├── testinput7
│ ├── testinput8
│ ├── testinput9
│ ├── testinputEBC
│ ├── testoutput1
│ ├── testoutput10
│ ├── testoutput11-16
│ ├── testoutput11-32
│ ├── testoutput11-8
│ ├── testoutput12
│ ├── testoutput13
│ ├── testoutput14
│ ├── testoutput15
│ ├── testoutput16
│ ├── testoutput17
│ ├── testoutput18-16
│ ├── testoutput18-32
│ ├── testoutput19
│ ├── testoutput2
│ ├── testoutput20
│ ├── testoutput21-16
│ ├── testoutput21-32
│ ├── testoutput22-16
│ ├── testoutput22-32
│ ├── testoutput23
│ ├── testoutput24
│ ├── testoutput25
│ ├── testoutput26
│ ├── testoutput3
│ ├── testoutput3A
│ ├── testoutput3B
│ ├── testoutput4
│ ├── testoutput5
│ ├── testoutput6
│ ├── testoutput7
│ ├── testoutput8
│ ├── testoutput9
│ ├── testoutputEBC
│ ├── valgrind-jit.supp
│ ├── wintestinput3
│ └── wintestoutput3
└── ucp.h
├── run_test.rb
├── src
└── mruby_regexp_pcre.c
└── test
├── matchdata.rb
├── regexp.rb
└── string.rb
/.github/workflows/test.yml:
--------------------------------------------------------------------------------
1 | name: Build and Test
2 |
3 | on:
4 | pull_request:
5 | push:
6 | branches:
7 | - master
8 |
9 | jobs:
10 | build:
11 | runs-on: ubuntu-latest
12 | steps:
13 | - uses: actions/checkout@v2
14 | with:
15 | path: ${{ github.repository }}
16 | - uses: actions/checkout@v2
17 | with:
18 | repository: mruby/mruby
19 | path: mruby
20 | - name: Set up Ruby
21 | uses: actions/setup-ruby@v1
22 | - name: Install GNU Bison
23 | run: sudo apt install bison
24 | - name: Rake test
25 | env:
26 | TEMPLATE: |
27 | MRuby::Build.new do |conf|
28 | toolchain :gcc
29 |
30 | enable_debug
31 | conf.enable_bintest
32 | conf.enable_test
33 |
34 | conf.gembox 'default'
35 | conf.gem '${{ github.repository }}'
36 | end
37 | run: |
38 | printf "${TEMPLATE}" >build_config.rb
39 | cd mruby
40 | env MRUBY_CONFIG=../build_config.rb rake test
41 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /tmp
2 |
--------------------------------------------------------------------------------
/mrbgem.rake:
--------------------------------------------------------------------------------
1 | MRuby::Gem::Specification.new('mruby-regexp-pcre') do |spec|
2 | spec.license = 'MIT'
3 | spec.authors = 'Internet Initiative Japan Inc.'
4 |
5 | spec.add_dependency 'mruby-string-ext', :core => 'mruby-string-ext'
6 |
7 | ## For dynamic link
8 | #spec.linker.libraries << ['pcre']
9 |
10 | ## For static link library
11 | # How to use:
12 | # * download pcre library
13 | # $ pwd
14 | # $(mruby.rootdir)/mrbgems/mruby-regexp-pcre
15 | # $ wget http://xxxxx/xxxxx/pcre-X.XX.tar.gz
16 | #
17 | # * unpack, setup path
18 | # $ tar zxf pcre-X.XX.tar.gz
19 | # $ mv pcre-X.XX pcre
20 | # $ vim ./mrbgem.rake
21 | # (edit pcre_dirname variable)
22 | #
23 | # * move the mruby root dir, make
24 | # $ cd $(mruby.rootdir)
25 | # $ make
26 |
27 | pcre_dirname = 'pcre'
28 | pcre_src = "#{spec.dir}/#{pcre_dirname}"
29 | spec.cc.include_paths << "#{pcre_src}"
30 | spec.cc.flags << '-DHAVE_CONFIG_H'
31 | spec.cc.flags << '-DPCRE_STATIC' if /mingw|mswin/ =~ RUBY_PLATFORM
32 |
33 | spec.objs += %W(
34 | #{pcre_src}/pcre_byte_order.c
35 | #{pcre_src}/pcre_compile.c
36 | #{pcre_src}/pcre_config.c
37 | #{pcre_src}/pcre_dfa_exec.c
38 | #{pcre_src}/pcre_exec.c
39 | #{pcre_src}/pcre_fullinfo.c
40 | #{pcre_src}/pcre_get.c
41 | #{pcre_src}/pcre_globals.c
42 | #{pcre_src}/pcre_jit_compile.c
43 | #{pcre_src}/pcre_maketables.c
44 | #{pcre_src}/pcre_newline.c
45 | #{pcre_src}/pcre_ord2utf8.c
46 | #{pcre_src}/pcre_refcount.c
47 | #{pcre_src}/pcre_string_utils.c
48 | #{pcre_src}/pcre_study.c
49 | #{pcre_src}/pcre_tables.c
50 | #{pcre_src}/pcre_ucd.c
51 | #{pcre_src}/pcre_valid_utf8.c
52 | #{pcre_src}/pcre_version.c
53 | #{pcre_src}/pcre_xclass.c
54 | #{pcre_src}/pcre_chartables.c
55 | ).map { |f| f.relative_path_from(dir).pathmap("#{build_dir}/%X#{spec.exts.object}" ) }
56 |
57 | desc "generate configuration files for mruby-regexp-pcre"
58 | task :regexp_pcre_config do
59 | FileUtils.cp "#{pcre_src}/config.h.generic", "#{pcre_src}/config.h"
60 | FileUtils.cp "#{pcre_src}/pcre.h.generic", "#{pcre_src}/pcre.h"
61 | FileUtils.cp "#{pcre_src}/pcre_chartables.c.dist", "#{pcre_src}/pcre_chartables.c"
62 | end
63 | end
64 |
--------------------------------------------------------------------------------
/pcre/AUTHORS:
--------------------------------------------------------------------------------
1 | THE MAIN PCRE LIBRARY
2 | ---------------------
3 |
4 | Written by: Philip Hazel
5 | Email local part: ph10
6 | Email domain: cam.ac.uk
7 |
8 | University of Cambridge Computing Service,
9 | Cambridge, England.
10 |
11 | Copyright (c) 1997-2019 University of Cambridge
12 | All rights reserved
13 |
14 |
15 | PCRE JUST-IN-TIME COMPILATION SUPPORT
16 | -------------------------------------
17 |
18 | Written by: Zoltan Herczeg
19 | Email local part: hzmester
20 | Emain domain: freemail.hu
21 |
22 | Copyright(c) 2010-2019 Zoltan Herczeg
23 | All rights reserved.
24 |
25 |
26 | STACK-LESS JUST-IN-TIME COMPILER
27 | --------------------------------
28 |
29 | Written by: Zoltan Herczeg
30 | Email local part: hzmester
31 | Emain domain: freemail.hu
32 |
33 | Copyright(c) 2009-2019 Zoltan Herczeg
34 | All rights reserved.
35 |
36 |
37 | THE C++ WRAPPER LIBRARY
38 | -----------------------
39 |
40 | Written by: Google Inc.
41 |
42 | Copyright (c) 2007-2012 Google Inc
43 | All rights reserved
44 |
45 | ####
46 |
--------------------------------------------------------------------------------
/pcre/COPYING:
--------------------------------------------------------------------------------
1 | PCRE LICENCE
2 |
3 | Please see the file LICENCE in the PCRE distribution for licensing details.
4 |
5 | End
6 |
--------------------------------------------------------------------------------
/pcre/ChangeLog:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/ChangeLog
--------------------------------------------------------------------------------
/pcre/CheckMan:
--------------------------------------------------------------------------------
1 | #! /usr/bin/perl
2 |
3 | # A script to scan PCRE's man pages to check for typos in the control
4 | # sequences. I use only a small set of the available repertoire, so it is
5 | # straightforward to check that nothing else has slipped in by mistake. This
6 | # script should be called in the doc directory.
7 |
8 | $yield = 0;
9 |
10 | while (scalar(@ARGV) > 0)
11 | {
12 | $line = 0;
13 | $file = shift @ARGV;
14 |
15 | open (IN, $file) || die "Failed to open $file\n";
16 |
17 | while ()
18 | {
19 | $line++;
20 | if (/^\s*$/)
21 | {
22 | printf "Empty line $line of $file\n";
23 | $yield = 1;
24 | }
25 | elsif (/^\./)
26 | {
27 | if (!/^\.\s*$|
28 | ^\.B\s+\S|
29 | ^\.TH\s\S|
30 | ^\.SH\s\S|
31 | ^\.SS\s\S|
32 | ^\.TP(?:\s?\d+)?\s*$|
33 | ^\.SM\s*$|
34 | ^\.br\s*$|
35 | ^\.rs\s*$|
36 | ^\.sp\s*$|
37 | ^\.nf\s*$|
38 | ^\.fi\s*$|
39 | ^\.P\s*$|
40 | ^\.PP\s*$|
41 | ^\.\\"(?:\ HREF)?\s*$|
42 | ^\.\\"\sHTML\s\s*$|
43 | ^\.\\"\sHTML\s<\/a>\s*$|
44 | ^\.\\"\s<\/a>\s*$|
45 | ^\.\\"\sJOINSH\s*$|
46 | ^\.\\"\sJOIN\s*$/x
47 | )
48 | {
49 | printf "Bad control line $line of $file\n";
50 | $yield = 1;
51 | }
52 | }
53 | else
54 | {
55 | if (/\\[^ef]|\\f[^IBP]/)
56 | {
57 | printf "Bad backslash in line $line of $file\n";
58 | $yield = 1;
59 | }
60 | }
61 | }
62 |
63 | close(IN);
64 | }
65 |
66 | exit $yield;
67 | # End
68 |
--------------------------------------------------------------------------------
/pcre/Detrail:
--------------------------------------------------------------------------------
1 | #!/usr/bin/perl
2 |
3 | # This is a script for removing trailing whitespace from lines in files that
4 | # are listed on the command line.
5 |
6 | # This subroutine does the work for one file.
7 |
8 | sub detrail {
9 | my($file) = $_[0];
10 | my($changed) = 0;
11 | open(IN, "$file") || die "Can't open $file for input";
12 | @lines = ;
13 | close(IN);
14 | foreach (@lines)
15 | {
16 | if (/\s+\n$/)
17 | {
18 | s/\s+\n$/\n/;
19 | $changed = 1;
20 | }
21 | }
22 | if ($changed)
23 | {
24 | open(OUT, ">$file") || die "Can't open $file for output";
25 | print OUT @lines;
26 | close(OUT);
27 | }
28 | }
29 |
30 | # This is the main program
31 |
32 | $, = ""; # Output field separator
33 | for ($i = 0; $i < @ARGV; $i++) { &detrail($ARGV[$i]); }
34 |
35 | # End
36 |
--------------------------------------------------------------------------------
/pcre/NON-UNIX-USE:
--------------------------------------------------------------------------------
1 | Compiling PCRE on non-Unix systems
2 | ----------------------------------
3 |
4 | This has been renamed to better reflect its contents. Please see the file
5 | NON-AUTOTOOLS-BUILD for details of how to build PCRE without using autotools.
6 |
7 | ####
8 |
--------------------------------------------------------------------------------
/pcre/cmake/COPYING-CMAKE-SCRIPTS:
--------------------------------------------------------------------------------
1 | Redistribution and use in source and binary forms, with or without
2 | modification, are permitted provided that the following conditions
3 | are met:
4 |
5 | 1. Redistributions of source code must retain the copyright
6 | notice, this list of conditions and the following disclaimer.
7 | 2. Redistributions in binary form must reproduce the copyright
8 | notice, this list of conditions and the following disclaimer in the
9 | documentation and/or other materials provided with the distribution.
10 | 3. The name of the author may not be used to endorse or promote products
11 | derived from this software without specific prior written permission.
12 |
13 | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15 | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16 | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 |
--------------------------------------------------------------------------------
/pcre/cmake/FindEditline.cmake:
--------------------------------------------------------------------------------
1 | # Modified from FindReadline.cmake (PH Feb 2012)
2 |
3 | if(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
4 | set(EDITLINE_FOUND TRUE)
5 | else(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
6 | FIND_PATH(EDITLINE_INCLUDE_DIR readline.h
7 | /usr/include/editline
8 | /usr/include/edit/readline
9 | /usr/include/readline
10 | )
11 |
12 | FIND_LIBRARY(EDITLINE_LIBRARY NAMES edit)
13 | include(FindPackageHandleStandardArgs)
14 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Editline DEFAULT_MSG EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY )
15 |
16 | MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
17 | endif(EDITLINE_INCLUDE_DIR AND EDITLINE_LIBRARY AND NCURSES_LIBRARY)
18 |
--------------------------------------------------------------------------------
/pcre/cmake/FindPackageHandleStandardArgs.cmake:
--------------------------------------------------------------------------------
1 | # FIND_PACKAGE_HANDLE_STANDARD_ARGS(NAME (DEFAULT_MSG|"Custom failure message") VAR1 ... )
2 | # This macro is intended to be used in FindXXX.cmake modules files.
3 | # It handles the REQUIRED and QUIET argument to FIND_PACKAGE() and
4 | # it also sets the _FOUND variable.
5 | # The package is found if all variables listed are TRUE.
6 | # Example:
7 | #
8 | # FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXml2 DEFAULT_MSG LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
9 | #
10 | # LibXml2 is considered to be found, if both LIBXML2_LIBRARIES and
11 | # LIBXML2_INCLUDE_DIR are valid. Then also LIBXML2_FOUND is set to TRUE.
12 | # If it is not found and REQUIRED was used, it fails with FATAL_ERROR,
13 | # independent whether QUIET was used or not.
14 | # If it is found, the location is reported using the VAR1 argument, so
15 | # here a message "Found LibXml2: /usr/lib/libxml2.so" will be printed out.
16 | # If the second argument is DEFAULT_MSG, the message in the failure case will
17 | # be "Could NOT find LibXml2", if you don't like this message you can specify
18 | # your own custom failure message there.
19 |
20 | MACRO(FIND_PACKAGE_HANDLE_STANDARD_ARGS _NAME _FAIL_MSG _VAR1 )
21 |
22 | IF("${_FAIL_MSG}" STREQUAL "DEFAULT_MSG")
23 | IF (${_NAME}_FIND_REQUIRED)
24 | SET(_FAIL_MESSAGE "Could not find REQUIRED package ${_NAME}")
25 | ELSE (${_NAME}_FIND_REQUIRED)
26 | SET(_FAIL_MESSAGE "Could not find OPTIONAL package ${_NAME}")
27 | ENDIF (${_NAME}_FIND_REQUIRED)
28 | ELSE("${_FAIL_MSG}" STREQUAL "DEFAULT_MSG")
29 | SET(_FAIL_MESSAGE "${_FAIL_MSG}")
30 | ENDIF("${_FAIL_MSG}" STREQUAL "DEFAULT_MSG")
31 |
32 | STRING(TOUPPER ${_NAME} _NAME_UPPER)
33 |
34 | SET(${_NAME_UPPER}_FOUND TRUE)
35 | IF(NOT ${_VAR1})
36 | SET(${_NAME_UPPER}_FOUND FALSE)
37 | ENDIF(NOT ${_VAR1})
38 |
39 | FOREACH(_CURRENT_VAR ${ARGN})
40 | IF(NOT ${_CURRENT_VAR})
41 | SET(${_NAME_UPPER}_FOUND FALSE)
42 | ENDIF(NOT ${_CURRENT_VAR})
43 | ENDFOREACH(_CURRENT_VAR)
44 |
45 | IF (${_NAME_UPPER}_FOUND)
46 | IF (NOT ${_NAME}_FIND_QUIETLY)
47 | MESSAGE(STATUS "Found ${_NAME}: ${${_VAR1}}")
48 | ENDIF (NOT ${_NAME}_FIND_QUIETLY)
49 | ELSE (${_NAME_UPPER}_FOUND)
50 | IF (${_NAME}_FIND_REQUIRED)
51 | MESSAGE(FATAL_ERROR "${_FAIL_MESSAGE}")
52 | ELSE (${_NAME}_FIND_REQUIRED)
53 | IF (NOT ${_NAME}_FIND_QUIETLY)
54 | MESSAGE(STATUS "${_FAIL_MESSAGE}")
55 | ENDIF (NOT ${_NAME}_FIND_QUIETLY)
56 | ENDIF (${_NAME}_FIND_REQUIRED)
57 | ENDIF (${_NAME_UPPER}_FOUND)
58 | ENDMACRO(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
59 |
--------------------------------------------------------------------------------
/pcre/cmake/FindReadline.cmake:
--------------------------------------------------------------------------------
1 | # from http://websvn.kde.org/trunk/KDE/kdeedu/cmake/modules/FindReadline.cmake
2 | # http://websvn.kde.org/trunk/KDE/kdeedu/cmake/modules/COPYING-CMAKE-SCRIPTS
3 | # --> BSD licensed
4 | #
5 | # GNU Readline library finder
6 | if(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
7 | set(READLINE_FOUND TRUE)
8 | else(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
9 | FIND_PATH(READLINE_INCLUDE_DIR readline/readline.h
10 | /usr/include/readline
11 | )
12 |
13 | # 2008-04-22 The next clause used to read like this:
14 | #
15 | # FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
16 | # FIND_LIBRARY(NCURSES_LIBRARY NAMES ncurses )
17 | # include(FindPackageHandleStandardArgs)
18 | # FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG NCURSES_LIBRARY READLINE_INCLUDE_DIR READLINE_LIBRARY )
19 | #
20 | # I was advised to modify it such that it will find an ncurses library if
21 | # required, but not if one was explicitly given, that is, it allows the
22 | # default to be overridden. PH
23 |
24 | FIND_LIBRARY(READLINE_LIBRARY NAMES readline)
25 | include(FindPackageHandleStandardArgs)
26 | FIND_PACKAGE_HANDLE_STANDARD_ARGS(Readline DEFAULT_MSG READLINE_INCLUDE_DIR READLINE_LIBRARY )
27 |
28 | MARK_AS_ADVANCED(READLINE_INCLUDE_DIR READLINE_LIBRARY)
29 | endif(READLINE_INCLUDE_DIR AND READLINE_LIBRARY AND NCURSES_LIBRARY)
30 |
--------------------------------------------------------------------------------
/pcre/config-cmake.h.in:
--------------------------------------------------------------------------------
1 | /* config.h for CMake builds */
2 |
3 | #cmakedefine HAVE_DIRENT_H 1
4 | #cmakedefine HAVE_SYS_STAT_H 1
5 | #cmakedefine HAVE_SYS_TYPES_H 1
6 | #cmakedefine HAVE_UNISTD_H 1
7 | #cmakedefine HAVE_WINDOWS_H 1
8 | #cmakedefine HAVE_STDINT_H 1
9 | #cmakedefine HAVE_INTTYPES_H 1
10 |
11 | #cmakedefine HAVE_TYPE_TRAITS_H 1
12 | #cmakedefine HAVE_BITS_TYPE_TRAITS_H 1
13 |
14 | #cmakedefine HAVE_BCOPY 1
15 | #cmakedefine HAVE_MEMMOVE 1
16 | #cmakedefine HAVE_STRERROR 1
17 | #cmakedefine HAVE_STRTOLL 1
18 | #cmakedefine HAVE_STRTOQ 1
19 | #cmakedefine HAVE__STRTOI64 1
20 |
21 | #cmakedefine PCRE_STATIC 1
22 |
23 | #cmakedefine SUPPORT_PCRE8 1
24 | #cmakedefine SUPPORT_PCRE16 1
25 | #cmakedefine SUPPORT_PCRE32 1
26 | #cmakedefine SUPPORT_JIT 1
27 | #cmakedefine SUPPORT_PCREGREP_JIT 1
28 | #cmakedefine SUPPORT_UTF 1
29 | #cmakedefine SUPPORT_UCP 1
30 | #cmakedefine EBCDIC 1
31 | #cmakedefine EBCDIC_NL25 1
32 | #cmakedefine BSR_ANYCRLF 1
33 | #cmakedefine NO_RECURSE 1
34 |
35 | #cmakedefine HAVE_LONG_LONG 1
36 | #cmakedefine HAVE_UNSIGNED_LONG_LONG 1
37 |
38 | #cmakedefine SUPPORT_LIBBZ2 1
39 | #cmakedefine SUPPORT_LIBZ 1
40 | #cmakedefine SUPPORT_LIBEDIT 1
41 | #cmakedefine SUPPORT_LIBREADLINE 1
42 |
43 | #cmakedefine SUPPORT_VALGRIND 1
44 | #cmakedefine SUPPORT_GCOV 1
45 |
46 | #define NEWLINE @NEWLINE@
47 | #define POSIX_MALLOC_THRESHOLD @PCRE_POSIX_MALLOC_THRESHOLD@
48 | #define LINK_SIZE @PCRE_LINK_SIZE@
49 | #define PARENS_NEST_LIMIT @PCRE_PARENS_NEST_LIMIT@
50 | #define MATCH_LIMIT @PCRE_MATCH_LIMIT@
51 | #define MATCH_LIMIT_RECURSION @PCRE_MATCH_LIMIT_RECURSION@
52 | #define PCREGREP_BUFSIZE @PCREGREP_BUFSIZE@
53 |
54 | #define MAX_NAME_SIZE 32
55 | #define MAX_NAME_COUNT 10000
56 |
57 | /* end config.h for CMake builds */
58 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_assign_jit_stack.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_assign_jit_stack specification
4 |
5 |
6 | pcre_assign_jit_stack man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | void pcre_assign_jit_stack(pcre_extra *extra,
23 | pcre_jit_callback callback, void *data);
24 |
25 |
26 | void pcre16_assign_jit_stack(pcre16_extra *extra,
27 | pcre16_jit_callback callback, void *data);
28 |
29 |
30 | void pcre32_assign_jit_stack(pcre32_extra *extra,
31 | pcre32_jit_callback callback, void *data);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This function provides control over the memory used as a stack at run-time by a
38 | call to pcre[16|32]_exec() with a pattern that has been successfully
39 | compiled with JIT optimization. The arguments are:
40 |
41 | extra the data pointer returned by pcre[16|32]_study()
42 | callback a callback function
43 | data a JIT stack or a value to be passed to the callback
44 | function
45 |
46 |
47 |
48 | If callback is NULL and data is NULL, an internal 32K block on
49 | the machine stack is used.
50 |
51 |
52 | If callback is NULL and data is not NULL, data must
53 | be a valid JIT stack, the result of calling pcre[16|32]_jit_stack_alloc().
54 |
55 |
56 | If callback not NULL, it is called with data as an argument at
57 | the start of matching, in order to set up a JIT stack. If the result is NULL,
58 | the internal 32K stack is used; otherwise the return value must be a valid JIT
59 | stack, the result of calling pcre[16|32]_jit_stack_alloc().
60 |
61 |
62 | You may safely assign the same JIT stack to multiple patterns, as long as they
63 | are all matched in the same thread. In a multithread application, each thread
64 | must use its own JIT stack. For more details, see the
65 | pcrejit
66 | page.
67 |
68 |
69 | There is a complete description of the PCRE native API in the
70 | pcreapi
71 | page and a description of the POSIX API in the
72 | pcreposix
73 | page.
74 |
75 | Return to the PCRE index page.
76 |
77 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_copy_named_substring.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_copy_named_substring specification
4 |
5 |
6 | pcre_copy_named_substring man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_copy_named_substring(const pcre *code,
23 | const char *subject, int *ovector,
24 | int stringcount, const char *stringname,
25 | char *buffer, int buffersize);
26 |
27 |
28 | int pcre16_copy_named_substring(const pcre16 *code,
29 | PCRE_SPTR16 subject, int *ovector,
30 | int stringcount, PCRE_SPTR16 stringname,
31 | PCRE_UCHAR16 *buffer, int buffersize);
32 |
33 |
34 | int pcre32_copy_named_substring(const pcre32 *code,
35 | PCRE_SPTR32 subject, int *ovector,
36 | int stringcount, PCRE_SPTR32 stringname,
37 | PCRE_UCHAR32 *buffer, int buffersize);
38 |
39 |
40 | DESCRIPTION
41 |
42 |
43 | This is a convenience function for extracting a captured substring, identified
44 | by name, into a given buffer. The arguments are:
45 |
46 | code Pattern that was successfully matched
47 | subject Subject that has been successfully matched
48 | ovector Offset vector that pcre[16|32]_exec() used
49 | stringcount Value returned by pcre[16|32]_exec()
50 | stringname Name of the required substring
51 | buffer Buffer to receive the string
52 | buffersize Size of buffer
53 |
54 | The yield is the length of the substring, PCRE_ERROR_NOMEMORY if the buffer was
55 | too small, or PCRE_ERROR_NOSUBSTRING if the string name is invalid.
56 |
57 |
58 | There is a complete description of the PCRE native API in the
59 | pcreapi
60 | page and a description of the POSIX API in the
61 | pcreposix
62 | page.
63 |
64 | Return to the PCRE index page.
65 |
66 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_copy_substring.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_copy_substring specification
4 |
5 |
6 | pcre_copy_substring man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_copy_substring(const char *subject, int *ovector,
23 | int stringcount, int stringnumber, char *buffer,
24 | int buffersize);
25 |
26 |
27 | int pcre16_copy_substring(PCRE_SPTR16 subject, int *ovector,
28 | int stringcount, int stringnumber, PCRE_UCHAR16 *buffer,
29 | int buffersize);
30 |
31 |
32 | int pcre32_copy_substring(PCRE_SPTR32 subject, int *ovector,
33 | int stringcount, int stringnumber, PCRE_UCHAR32 *buffer,
34 | int buffersize);
35 |
36 |
37 | DESCRIPTION
38 |
39 |
40 | This is a convenience function for extracting a captured substring into a given
41 | buffer. The arguments are:
42 |
43 | subject Subject that has been successfully matched
44 | ovector Offset vector that pcre[16|32]_exec() used
45 | stringcount Value returned by pcre[16|32]_exec()
46 | stringnumber Number of the required substring
47 | buffer Buffer to receive the string
48 | buffersize Size of buffer
49 |
50 | The yield is the length of the string, PCRE_ERROR_NOMEMORY if the buffer was
51 | too small, or PCRE_ERROR_NOSUBSTRING if the string number is invalid.
52 |
53 |
54 | There is a complete description of the PCRE native API in the
55 | pcreapi
56 | page and a description of the POSIX API in the
57 | pcreposix
58 | page.
59 |
60 | Return to the PCRE index page.
61 |
62 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_free_study.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_free_study specification
4 |
5 |
6 | pcre_free_study man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | void pcre_free_study(pcre_extra *extra);
23 |
24 |
25 | void pcre16_free_study(pcre16_extra *extra);
26 |
27 |
28 | void pcre32_free_study(pcre32_extra *extra);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This function is used to free the memory used for the data generated by a call
35 | to pcre[16|32]_study() when it is no longer needed. The argument must be the
36 | result of such a call.
37 |
38 |
39 | There is a complete description of the PCRE native API in the
40 | pcreapi
41 | page and a description of the POSIX API in the
42 | pcreposix
43 | page.
44 |
45 | Return to the PCRE index page.
46 |
47 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_free_substring.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_free_substring specification
4 |
5 |
6 | pcre_free_substring man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | void pcre_free_substring(const char *stringptr);
23 |
24 |
25 | void pcre16_free_substring(PCRE_SPTR16 stringptr);
26 |
27 |
28 | void pcre32_free_substring(PCRE_SPTR32 stringptr);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This is a convenience function for freeing the store obtained by a previous
35 | call to pcre[16|32]_get_substring() or pcre[16|32]_get_named_substring().
36 | Its only argument is a pointer to the string.
37 |
38 |
39 | There is a complete description of the PCRE native API in the
40 | pcreapi
41 | page and a description of the POSIX API in the
42 | pcreposix
43 | page.
44 |
45 | Return to the PCRE index page.
46 |
47 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_free_substring_list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_free_substring_list specification
4 |
5 |
6 | pcre_free_substring_list man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | void pcre_free_substring_list(const char **stringptr);
23 |
24 |
25 | void pcre16_free_substring_list(PCRE_SPTR16 *stringptr);
26 |
27 |
28 | void pcre32_free_substring_list(PCRE_SPTR32 *stringptr);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This is a convenience function for freeing the store obtained by a previous
35 | call to pcre[16|32]_get_substring_list(). Its only argument is a pointer to
36 | the list of string pointers.
37 |
38 |
39 | There is a complete description of the PCRE native API in the
40 | pcreapi
41 | page and a description of the POSIX API in the
42 | pcreposix
43 | page.
44 |
45 | Return to the PCRE index page.
46 |
47 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_get_named_substring.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_get_named_substring specification
4 |
5 |
6 | pcre_get_named_substring man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_get_named_substring(const pcre *code,
23 | const char *subject, int *ovector,
24 | int stringcount, const char *stringname,
25 | const char **stringptr);
26 |
27 |
28 | int pcre16_get_named_substring(const pcre16 *code,
29 | PCRE_SPTR16 subject, int *ovector,
30 | int stringcount, PCRE_SPTR16 stringname,
31 | PCRE_SPTR16 *stringptr);
32 |
33 |
34 | int pcre32_get_named_substring(const pcre32 *code,
35 | PCRE_SPTR32 subject, int *ovector,
36 | int stringcount, PCRE_SPTR32 stringname,
37 | PCRE_SPTR32 *stringptr);
38 |
39 |
40 | DESCRIPTION
41 |
42 |
43 | This is a convenience function for extracting a captured substring by name. The
44 | arguments are:
45 |
46 | code Compiled pattern
47 | subject Subject that has been successfully matched
48 | ovector Offset vector that pcre[16|32]_exec() used
49 | stringcount Value returned by pcre[16|32]_exec()
50 | stringname Name of the required substring
51 | stringptr Where to put the string pointer
52 |
53 | The memory in which the substring is placed is obtained by calling
54 | pcre[16|32]_malloc(). The convenience function
55 | pcre[16|32]_free_substring() can be used to free it when it is no longer
56 | needed. The yield of the function is the length of the extracted substring,
57 | PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
58 | PCRE_ERROR_NOSUBSTRING if the string name is invalid.
59 |
60 |
61 | There is a complete description of the PCRE native API in the
62 | pcreapi
63 | page and a description of the POSIX API in the
64 | pcreposix
65 | page.
66 |
67 | Return to the PCRE index page.
68 |
69 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_get_stringnumber.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_get_stringnumber specification
4 |
5 |
6 | pcre_get_stringnumber man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_get_stringnumber(const pcre *code,
23 | const char *name);
24 |
25 |
26 | int pcre16_get_stringnumber(const pcre16 *code,
27 | PCRE_SPTR16 name);
28 |
29 |
30 | int pcre32_get_stringnumber(const pcre32 *code,
31 | PCRE_SPTR32 name);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This convenience function finds the number of a named substring capturing
38 | parenthesis in a compiled pattern. Its arguments are:
39 |
40 | code Compiled regular expression
41 | name Name whose number is required
42 |
43 | The yield of the function is the number of the parenthesis if the name is
44 | found, or PCRE_ERROR_NOSUBSTRING otherwise. When duplicate names are allowed
45 | (PCRE_DUPNAMES is set), it is not defined which of the numbers is returned by
46 | pcre[16|32]_get_stringnumber(). You can obtain the complete list by calling
47 | pcre[16|32]_get_stringtable_entries().
48 |
49 |
50 | There is a complete description of the PCRE native API in the
51 | pcreapi
52 | page and a description of the POSIX API in the
53 | pcreposix
54 | page.
55 |
56 | Return to the PCRE index page.
57 |
58 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_get_stringtable_entries.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_get_stringtable_entries specification
4 |
5 |
6 | pcre_get_stringtable_entries man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_get_stringtable_entries(const pcre *code,
23 | const char *name, char **first, char **last);
24 |
25 |
26 | int pcre16_get_stringtable_entries(const pcre16 *code,
27 | PCRE_SPTR16 name, PCRE_UCHAR16 **first, PCRE_UCHAR16 **last);
28 |
29 |
30 | int pcre32_get_stringtable_entries(const pcre32 *code,
31 | PCRE_SPTR32 name, PCRE_UCHAR32 **first, PCRE_UCHAR32 **last);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This convenience function finds, for a compiled pattern, the first and last
38 | entries for a given name in the table that translates capturing parenthesis
39 | names into numbers. When names are required to be unique (PCRE_DUPNAMES is
40 | not set), it is usually easier to use pcre[16|32]_get_stringnumber()
41 | instead.
42 |
43 | code Compiled regular expression
44 | name Name whose entries required
45 | first Where to return a pointer to the first entry
46 | last Where to return a pointer to the last entry
47 |
48 | The yield of the function is the length of each entry, or
49 | PCRE_ERROR_NOSUBSTRING if none are found.
50 |
51 |
52 | There is a complete description of the PCRE native API, including the format of
53 | the table entries, in the
54 | pcreapi
55 | page, and a description of the POSIX API in the
56 | pcreposix
57 | page.
58 |
59 | Return to the PCRE index page.
60 |
61 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_get_substring.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_get_substring specification
4 |
5 |
6 | pcre_get_substring man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_get_substring(const char *subject, int *ovector,
23 | int stringcount, int stringnumber,
24 | const char **stringptr);
25 |
26 |
27 | int pcre16_get_substring(PCRE_SPTR16 subject, int *ovector,
28 | int stringcount, int stringnumber,
29 | PCRE_SPTR16 *stringptr);
30 |
31 |
32 | int pcre32_get_substring(PCRE_SPTR32 subject, int *ovector,
33 | int stringcount, int stringnumber,
34 | PCRE_SPTR32 *stringptr);
35 |
36 |
37 | DESCRIPTION
38 |
39 |
40 | This is a convenience function for extracting a captured substring. The
41 | arguments are:
42 |
43 | subject Subject that has been successfully matched
44 | ovector Offset vector that pcre[16|32]_exec() used
45 | stringcount Value returned by pcre[16|32]_exec()
46 | stringnumber Number of the required substring
47 | stringptr Where to put the string pointer
48 |
49 | The memory in which the substring is placed is obtained by calling
50 | pcre[16|32]_malloc(). The convenience function
51 | pcre[16|32]_free_substring() can be used to free it when it is no longer
52 | needed. The yield of the function is the length of the substring,
53 | PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
54 | PCRE_ERROR_NOSUBSTRING if the string number is invalid.
55 |
56 |
57 | There is a complete description of the PCRE native API in the
58 | pcreapi
59 | page and a description of the POSIX API in the
60 | pcreposix
61 | page.
62 |
63 | Return to the PCRE index page.
64 |
65 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_get_substring_list.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_get_substring_list specification
4 |
5 |
6 | pcre_get_substring_list man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_get_substring_list(const char *subject,
23 | int *ovector, int stringcount, const char ***listptr);
24 |
25 |
26 | int pcre16_get_substring_list(PCRE_SPTR16 subject,
27 | int *ovector, int stringcount, PCRE_SPTR16 **listptr);
28 |
29 |
30 | int pcre32_get_substring_list(PCRE_SPTR32 subject,
31 | int *ovector, int stringcount, PCRE_SPTR32 **listptr);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This is a convenience function for extracting a list of all the captured
38 | substrings. The arguments are:
39 |
40 | subject Subject that has been successfully matched
41 | ovector Offset vector that pcre[16|32]_exec used
42 | stringcount Value returned by pcre[16|32]_exec
43 | listptr Where to put a pointer to the list
44 |
45 | The memory in which the substrings and the list are placed is obtained by
46 | calling pcre[16|32]_malloc(). The convenience function
47 | pcre[16|32]_free_substring_list() can be used to free it when it is no
48 | longer needed. A pointer to a list of pointers is put in the variable whose
49 | address is in listptr. The list is terminated by a NULL pointer. The
50 | yield of the function is zero on success or PCRE_ERROR_NOMEMORY if sufficient
51 | memory could not be obtained.
52 |
53 |
54 | There is a complete description of the PCRE native API in the
55 | pcreapi
56 | page and a description of the POSIX API in the
57 | pcreposix
58 | page.
59 |
60 | Return to the PCRE index page.
61 |
62 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_jit_stack_alloc.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_jit_stack_alloc specification
4 |
5 |
6 | pcre_jit_stack_alloc man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | pcre_jit_stack *pcre_jit_stack_alloc(int startsize,
23 | int maxsize);
24 |
25 |
26 | pcre16_jit_stack *pcre16_jit_stack_alloc(int startsize,
27 | int maxsize);
28 |
29 |
30 | pcre32_jit_stack *pcre32_jit_stack_alloc(int startsize,
31 | int maxsize);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This function is used to create a stack for use by the code compiled by the JIT
38 | optimization of pcre[16|32]_study(). The arguments are a starting size for
39 | the stack, and a maximum size to which it is allowed to grow. The result can be
40 | passed to the JIT run-time code by pcre[16|32]_assign_jit_stack(), or that
41 | function can set up a callback for obtaining a stack. A maximum stack size of
42 | 512K to 1M should be more than enough for any pattern. For more details, see
43 | the
44 | pcrejit
45 | page.
46 |
47 |
48 | There is a complete description of the PCRE native API in the
49 | pcreapi
50 | page and a description of the POSIX API in the
51 | pcreposix
52 | page.
53 |
54 | Return to the PCRE index page.
55 |
56 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_jit_stack_free.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_jit_stack_free specification
4 |
5 |
6 | pcre_jit_stack_free man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | void pcre_jit_stack_free(pcre_jit_stack *stack);
23 |
24 |
25 | void pcre16_jit_stack_free(pcre16_jit_stack *stack);
26 |
27 |
28 | void pcre32_jit_stack_free(pcre32_jit_stack *stack);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This function is used to free a JIT stack that was created by
35 | pcre[16|32]_jit_stack_alloc() when it is no longer needed. For more details,
36 | see the
37 | pcrejit
38 | page.
39 |
40 |
41 | There is a complete description of the PCRE native API in the
42 | pcreapi
43 | page and a description of the POSIX API in the
44 | pcreposix
45 | page.
46 |
47 | Return to the PCRE index page.
48 |
49 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_maketables.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_maketables specification
4 |
5 |
6 | pcre_maketables man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | const unsigned char *pcre_maketables(void);
23 |
24 |
25 | const unsigned char *pcre16_maketables(void);
26 |
27 |
28 | const unsigned char *pcre32_maketables(void);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This function builds a set of character tables for character values less than
35 | 256. These can be passed to pcre[16|32]_compile() to override PCRE's
36 | internal, built-in tables (which were made by pcre[16|32]_maketables() when
37 | PCRE was compiled). You might want to do this if you are using a non-standard
38 | locale. The function yields a pointer to the tables.
39 |
40 |
41 | There is a complete description of the PCRE native API in the
42 | pcreapi
43 | page and a description of the POSIX API in the
44 | pcreposix
45 | page.
46 |
47 | Return to the PCRE index page.
48 |
49 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_pattern_to_host_byte_order.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_pattern_to_host_byte_order specification
4 |
5 |
6 | pcre_pattern_to_host_byte_order man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_pattern_to_host_byte_order(pcre *code,
23 | pcre_extra *extra, const unsigned char *tables);
24 |
25 |
26 | int pcre16_pattern_to_host_byte_order(pcre16 *code,
27 | pcre16_extra *extra, const unsigned char *tables);
28 |
29 |
30 | int pcre32_pattern_to_host_byte_order(pcre32 *code,
31 | pcre32_extra *extra, const unsigned char *tables);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This function ensures that the bytes in 2-byte and 4-byte values in a compiled
38 | pattern are in the correct order for the current host. It is useful when a
39 | pattern that has been compiled on one host is transferred to another that might
40 | have different endianness. The arguments are:
41 |
42 | code A compiled regular expression
43 | extra Points to an associated pcre[16|32]_extra structure,
44 | or is NULL
45 | tables Pointer to character tables, or NULL to
46 | set the built-in default
47 |
48 | The result is 0 for success, a negative PCRE_ERROR_xxx value otherwise.
49 |
50 |
51 | There is a complete description of the PCRE native API in the
52 | pcreapi
53 | page and a description of the POSIX API in the
54 | pcreposix
55 | page.
56 |
57 | Return to the PCRE index page.
58 |
59 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_refcount.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_refcount specification
4 |
5 |
6 | pcre_refcount man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre_refcount(pcre *code, int adjust);
23 |
24 |
25 | int pcre16_refcount(pcre16 *code, int adjust);
26 |
27 |
28 | int pcre32_refcount(pcre32 *code, int adjust);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This function is used to maintain a reference count inside a data block that
35 | contains a compiled pattern. Its arguments are:
36 |
37 | code Compiled regular expression
38 | adjust Adjustment to reference value
39 |
40 | The yield of the function is the adjusted reference value, which is constrained
41 | to lie between 0 and 65535.
42 |
43 |
44 | There is a complete description of the PCRE native API in the
45 | pcreapi
46 | page and a description of the POSIX API in the
47 | pcreposix
48 | page.
49 |
50 | Return to the PCRE index page.
51 |
52 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_study.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_study specification
4 |
5 |
6 | pcre_study man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | pcre_extra *pcre_study(const pcre *code, int options,
23 | const char **errptr);
24 |
25 |
26 | pcre16_extra *pcre16_study(const pcre16 *code, int options,
27 | const char **errptr);
28 |
29 |
30 | pcre32_extra *pcre32_study(const pcre32 *code, int options,
31 | const char **errptr);
32 |
33 |
34 | DESCRIPTION
35 |
36 |
37 | This function studies a compiled pattern, to see if additional information can
38 | be extracted that might speed up matching. Its arguments are:
39 |
40 | code A compiled regular expression
41 | options Options for pcre[16|32]_study()
42 | errptr Where to put an error message
43 |
44 | If the function succeeds, it returns a value that can be passed to
45 | pcre[16|32]_exec() or pcre[16|32]_dfa_exec() via their extra
46 | arguments.
47 |
48 |
49 | If the function returns NULL, either it could not find any additional
50 | information, or there was an error. You can tell the difference by looking at
51 | the error value. It is NULL in first case.
52 |
53 |
54 | The only option is PCRE_STUDY_JIT_COMPILE. It requests just-in-time compilation
55 | if possible. If PCRE has been compiled without JIT support, this option is
56 | ignored. See the
57 | pcrejit
58 | page for further details.
59 |
60 |
61 | There is a complete description of the PCRE native API in the
62 | pcreapi
63 | page and a description of the POSIX API in the
64 | pcreposix
65 | page.
66 |
67 | Return to the PCRE index page.
68 |
69 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_utf16_to_host_byte_order.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_utf16_to_host_byte_order specification
4 |
5 |
6 | pcre_utf16_to_host_byte_order man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre16_utf16_to_host_byte_order(PCRE_UCHAR16 *output,
23 | PCRE_SPTR16 input, int length, int *host_byte_order,
24 | int keep_boms);
25 |
26 |
27 | DESCRIPTION
28 |
29 |
30 | This function, which exists only in the 16-bit library, converts a UTF-16
31 | string to the correct order for the current host, taking account of any byte
32 | order marks (BOMs) within the string. Its arguments are:
33 |
34 | output pointer to output buffer, may be the same as input
35 | input pointer to input buffer
36 | length number of 16-bit units in the input, or negative for
37 | a zero-terminated string
38 | host_byte_order a NULL value or a non-zero value pointed to means
39 | start in host byte order
40 | keep_boms if non-zero, BOMs are copied to the output string
41 |
42 | The result of the function is the number of 16-bit units placed into the output
43 | buffer, including the zero terminator if the string was zero-terminated.
44 |
45 |
46 | If host_byte_order is not NULL, it is set to indicate the byte order that
47 | is current at the end of the string.
48 |
49 |
50 | There is a complete description of the PCRE native API in the
51 | pcreapi
52 | page and a description of the POSIX API in the
53 | pcreposix
54 | page.
55 |
56 | Return to the PCRE index page.
57 |
58 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_utf32_to_host_byte_order.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_utf32_to_host_byte_order specification
4 |
5 |
6 | pcre_utf32_to_host_byte_order man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | int pcre32_utf32_to_host_byte_order(PCRE_UCHAR32 *output,
23 | PCRE_SPTR32 input, int length, int *host_byte_order,
24 | int keep_boms);
25 |
26 |
27 | DESCRIPTION
28 |
29 |
30 | This function, which exists only in the 32-bit library, converts a UTF-32
31 | string to the correct order for the current host, taking account of any byte
32 | order marks (BOMs) within the string. Its arguments are:
33 |
34 | output pointer to output buffer, may be the same as input
35 | input pointer to input buffer
36 | length number of 32-bit units in the input, or negative for
37 | a zero-terminated string
38 | host_byte_order a NULL value or a non-zero value pointed to means
39 | start in host byte order
40 | keep_boms if non-zero, BOMs are copied to the output string
41 |
42 | The result of the function is the number of 32-bit units placed into the output
43 | buffer, including the zero terminator if the string was zero-terminated.
44 |
45 |
46 | If host_byte_order is not NULL, it is set to indicate the byte order that
47 | is current at the end of the string.
48 |
49 |
50 | There is a complete description of the PCRE native API in the
51 | pcreapi
52 | page and a description of the POSIX API in the
53 | pcreposix
54 | page.
55 |
56 | Return to the PCRE index page.
57 |
58 |
--------------------------------------------------------------------------------
/pcre/doc/html/pcre_version.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | pcre_version specification
4 |
5 |
6 | pcre_version man page
7 |
8 | Return to the PCRE index page.
9 |
10 |
11 | This page is part of the PCRE HTML documentation. It was generated automatically
12 | from the original man page. If there is any nonsense in it, please consult the
13 | man page, in case the conversion went wrong.
14 |
15 |
16 | SYNOPSIS
17 |
18 |
19 | #include <pcre.h>
20 |
21 |
22 | const char *pcre_version(void);
23 |
24 |
25 | const char *pcre16_version(void);
26 |
27 |
28 | const char *pcre32_version(void);
29 |
30 |
31 | DESCRIPTION
32 |
33 |
34 | This function (even in the 16-bit and 32-bit libraries) returns a
35 | zero-terminated, 8-bit character string that gives the version number of the
36 | PCRE library and the date of its release.
37 |
38 |
39 | There is a complete description of the PCRE native API in the
40 | pcreapi
41 | page and a description of the POSIX API in the
42 | pcreposix
43 | page.
44 |
45 | Return to the PCRE index page.
46 |
47 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_assign_jit_stack.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_ASSIGN_JIT_STACK 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
8 | .PP
9 | .nf
10 | .B void pcre_assign_jit_stack(pcre_extra *\fIextra\fP,
11 | .B " pcre_jit_callback \fIcallback\fP, void *\fIdata\fP);"
12 | .sp
13 | .B void pcre16_assign_jit_stack(pcre16_extra *\fIextra\fP,
14 | .B " pcre16_jit_callback \fIcallback\fP, void *\fIdata\fP);"
15 | .sp
16 | .B void pcre32_assign_jit_stack(pcre32_extra *\fIextra\fP,
17 | .B " pcre32_jit_callback \fIcallback\fP, void *\fIdata\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This function provides control over the memory used as a stack at run-time by a
24 | call to \fBpcre[16|32]_exec()\fP with a pattern that has been successfully
25 | compiled with JIT optimization. The arguments are:
26 | .sp
27 | extra the data pointer returned by \fBpcre[16|32]_study()\fP
28 | callback a callback function
29 | data a JIT stack or a value to be passed to the callback
30 | function
31 | .P
32 | If \fIcallback\fP is NULL and \fIdata\fP is NULL, an internal 32K block on
33 | the machine stack is used.
34 | .P
35 | If \fIcallback\fP is NULL and \fIdata\fP is not NULL, \fIdata\fP must
36 | be a valid JIT stack, the result of calling \fBpcre[16|32]_jit_stack_alloc()\fP.
37 | .P
38 | If \fIcallback\fP not NULL, it is called with \fIdata\fP as an argument at
39 | the start of matching, in order to set up a JIT stack. If the result is NULL,
40 | the internal 32K stack is used; otherwise the return value must be a valid JIT
41 | stack, the result of calling \fBpcre[16|32]_jit_stack_alloc()\fP.
42 | .P
43 | You may safely assign the same JIT stack to multiple patterns, as long as they
44 | are all matched in the same thread. In a multithread application, each thread
45 | must use its own JIT stack. For more details, see the
46 | .\" HREF
47 | \fBpcrejit\fP
48 | .\"
49 | page.
50 | .P
51 | There is a complete description of the PCRE native API in the
52 | .\" HREF
53 | \fBpcreapi\fP
54 | .\"
55 | page and a description of the POSIX API in the
56 | .\" HREF
57 | \fBpcreposix\fP
58 | .\"
59 | page.
60 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_copy_named_substring.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_COPY_NAMED_SUBSTRING 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
8 | .PP
9 | .nf
10 | .B int pcre_copy_named_substring(const pcre *\fIcode\fP,
11 | .B " const char *\fIsubject\fP, int *\fIovector\fP,"
12 | .B " int \fIstringcount\fP, const char *\fIstringname\fP,"
13 | .B " char *\fIbuffer\fP, int \fIbuffersize\fP);"
14 | .sp
15 | .B int pcre16_copy_named_substring(const pcre16 *\fIcode\fP,
16 | .B " PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,"
17 | .B " int \fIstringcount\fP, PCRE_SPTR16 \fIstringname\fP,"
18 | .B " PCRE_UCHAR16 *\fIbuffer\fP, int \fIbuffersize\fP);"
19 | .sp
20 | .B int pcre32_copy_named_substring(const pcre32 *\fIcode\fP,
21 | .B " PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,"
22 | .B " int \fIstringcount\fP, PCRE_SPTR32 \fIstringname\fP,"
23 | .B " PCRE_UCHAR32 *\fIbuffer\fP, int \fIbuffersize\fP);"
24 | .fi
25 | .
26 | .SH DESCRIPTION
27 | .rs
28 | .sp
29 | This is a convenience function for extracting a captured substring, identified
30 | by name, into a given buffer. The arguments are:
31 | .sp
32 | \fIcode\fP Pattern that was successfully matched
33 | \fIsubject\fP Subject that has been successfully matched
34 | \fIovector\fP Offset vector that \fBpcre[16|32]_exec()\fP used
35 | \fIstringcount\fP Value returned by \fBpcre[16|32]_exec()\fP
36 | \fIstringname\fP Name of the required substring
37 | \fIbuffer\fP Buffer to receive the string
38 | \fIbuffersize\fP Size of buffer
39 | .sp
40 | The yield is the length of the substring, PCRE_ERROR_NOMEMORY if the buffer was
41 | too small, or PCRE_ERROR_NOSUBSTRING if the string name is invalid.
42 | .P
43 | There is a complete description of the PCRE native API in the
44 | .\" HREF
45 | \fBpcreapi\fP
46 | .\"
47 | page and a description of the POSIX API in the
48 | .\" HREF
49 | \fBpcreposix\fP
50 | .\"
51 | page.
52 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_copy_substring.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_COPY_SUBSTRING 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
8 | .PP
9 | .nf
10 | .B int pcre_copy_substring(const char *\fIsubject\fP, int *\fIovector\fP,
11 | .B " int \fIstringcount\fP, int \fIstringnumber\fP, char *\fIbuffer\fP,"
12 | .B " int \fIbuffersize\fP);"
13 | .sp
14 | .B int pcre16_copy_substring(PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,
15 | .B " int \fIstringcount\fP, int \fIstringnumber\fP, PCRE_UCHAR16 *\fIbuffer\fP,"
16 | .B " int \fIbuffersize\fP);"
17 | .sp
18 | .B int pcre32_copy_substring(PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,
19 | .B " int \fIstringcount\fP, int \fIstringnumber\fP, PCRE_UCHAR32 *\fIbuffer\fP,"
20 | .B " int \fIbuffersize\fP);"
21 | .fi
22 | .
23 | .SH DESCRIPTION
24 | .rs
25 | .sp
26 | This is a convenience function for extracting a captured substring into a given
27 | buffer. The arguments are:
28 | .sp
29 | \fIsubject\fP Subject that has been successfully matched
30 | \fIovector\fP Offset vector that \fBpcre[16|32]_exec()\fP used
31 | \fIstringcount\fP Value returned by \fBpcre[16|32]_exec()\fP
32 | \fIstringnumber\fP Number of the required substring
33 | \fIbuffer\fP Buffer to receive the string
34 | \fIbuffersize\fP Size of buffer
35 | .sp
36 | The yield is the length of the string, PCRE_ERROR_NOMEMORY if the buffer was
37 | too small, or PCRE_ERROR_NOSUBSTRING if the string number is invalid.
38 | .P
39 | There is a complete description of the PCRE native API in the
40 | .\" HREF
41 | \fBpcreapi\fP
42 | .\"
43 | page and a description of the POSIX API in the
44 | .\" HREF
45 | \fBpcreposix\fP
46 | .\"
47 | page.
48 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_free_study.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_FREE_STUDY 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
8 | .PP
9 | .SM
10 | .B void pcre_free_study(pcre_extra *\fIextra\fP);
11 | .PP
12 | .B void pcre16_free_study(pcre16_extra *\fIextra\fP);
13 | .PP
14 | .B void pcre32_free_study(pcre32_extra *\fIextra\fP);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function is used to free the memory used for the data generated by a call
20 | to \fBpcre[16|32]_study()\fP when it is no longer needed. The argument must be the
21 | result of such a call.
22 | .P
23 | There is a complete description of the PCRE native API in the
24 | .\" HREF
25 | \fBpcreapi\fP
26 | .\"
27 | page and a description of the POSIX API in the
28 | .\" HREF
29 | \fBpcreposix\fP
30 | .\"
31 | page.
32 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_free_substring.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_FREE_SUBSTRING 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
8 | .PP
9 | .SM
10 | .B void pcre_free_substring(const char *\fIstringptr\fP);
11 | .PP
12 | .B void pcre16_free_substring(PCRE_SPTR16 \fIstringptr\fP);
13 | .PP
14 | .B void pcre32_free_substring(PCRE_SPTR32 \fIstringptr\fP);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This is a convenience function for freeing the store obtained by a previous
20 | call to \fBpcre[16|32]_get_substring()\fP or \fBpcre[16|32]_get_named_substring()\fP.
21 | Its only argument is a pointer to the string.
22 | .P
23 | There is a complete description of the PCRE native API in the
24 | .\" HREF
25 | \fBpcreapi\fP
26 | .\"
27 | page and a description of the POSIX API in the
28 | .\" HREF
29 | \fBpcreposix\fP
30 | .\"
31 | page.
32 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_free_substring_list.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_FREE_SUBSTRING_LIST 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
8 | .PP
9 | .SM
10 | .B void pcre_free_substring_list(const char **\fIstringptr\fP);
11 | .PP
12 | .B void pcre16_free_substring_list(PCRE_SPTR16 *\fIstringptr\fP);
13 | .PP
14 | .B void pcre32_free_substring_list(PCRE_SPTR32 *\fIstringptr\fP);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This is a convenience function for freeing the store obtained by a previous
20 | call to \fBpcre[16|32]_get_substring_list()\fP. Its only argument is a pointer to
21 | the list of string pointers.
22 | .P
23 | There is a complete description of the PCRE native API in the
24 | .\" HREF
25 | \fBpcreapi\fP
26 | .\"
27 | page and a description of the POSIX API in the
28 | .\" HREF
29 | \fBpcreposix\fP
30 | .\"
31 | page.
32 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_get_named_substring.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_GET_NAMED_SUBSTRING 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
8 | .PP
9 | .nf
10 | .B int pcre_get_named_substring(const pcre *\fIcode\fP,
11 | .B " const char *\fIsubject\fP, int *\fIovector\fP,"
12 | .B " int \fIstringcount\fP, const char *\fIstringname\fP,"
13 | .B " const char **\fIstringptr\fP);"
14 | .sp
15 | .B int pcre16_get_named_substring(const pcre16 *\fIcode\fP,
16 | .B " PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,"
17 | .B " int \fIstringcount\fP, PCRE_SPTR16 \fIstringname\fP,"
18 | .B " PCRE_SPTR16 *\fIstringptr\fP);"
19 | .sp
20 | .B int pcre32_get_named_substring(const pcre32 *\fIcode\fP,
21 | .B " PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,"
22 | .B " int \fIstringcount\fP, PCRE_SPTR32 \fIstringname\fP,"
23 | .B " PCRE_SPTR32 *\fIstringptr\fP);"
24 | .fi
25 | .
26 | .SH DESCRIPTION
27 | .rs
28 | .sp
29 | This is a convenience function for extracting a captured substring by name. The
30 | arguments are:
31 | .sp
32 | \fIcode\fP Compiled pattern
33 | \fIsubject\fP Subject that has been successfully matched
34 | \fIovector\fP Offset vector that \fBpcre[16|32]_exec()\fP used
35 | \fIstringcount\fP Value returned by \fBpcre[16|32]_exec()\fP
36 | \fIstringname\fP Name of the required substring
37 | \fIstringptr\fP Where to put the string pointer
38 | .sp
39 | The memory in which the substring is placed is obtained by calling
40 | \fBpcre[16|32]_malloc()\fP. The convenience function
41 | \fBpcre[16|32]_free_substring()\fP can be used to free it when it is no longer
42 | needed. The yield of the function is the length of the extracted substring,
43 | PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
44 | PCRE_ERROR_NOSUBSTRING if the string name is invalid.
45 | .P
46 | There is a complete description of the PCRE native API in the
47 | .\" HREF
48 | \fBpcreapi\fP
49 | .\"
50 | page and a description of the POSIX API in the
51 | .\" HREF
52 | \fBpcreposix\fP
53 | .\"
54 | page.
55 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_get_stringnumber.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_GET_STRINGNUMBER 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
8 | .PP
9 | .nf
10 | .B int pcre_get_stringnumber(const pcre *\fIcode\fP,
11 | .B " const char *\fIname\fP);"
12 | .sp
13 | .B int pcre16_get_stringnumber(const pcre16 *\fIcode\fP,
14 | .B " PCRE_SPTR16 \fIname\fP);"
15 | .sp
16 | .B int pcre32_get_stringnumber(const pcre32 *\fIcode\fP,
17 | .B " PCRE_SPTR32 \fIname\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This convenience function finds the number of a named substring capturing
24 | parenthesis in a compiled pattern. Its arguments are:
25 | .sp
26 | \fIcode\fP Compiled regular expression
27 | \fIname\fP Name whose number is required
28 | .sp
29 | The yield of the function is the number of the parenthesis if the name is
30 | found, or PCRE_ERROR_NOSUBSTRING otherwise. When duplicate names are allowed
31 | (PCRE_DUPNAMES is set), it is not defined which of the numbers is returned by
32 | \fBpcre[16|32]_get_stringnumber()\fP. You can obtain the complete list by calling
33 | \fBpcre[16|32]_get_stringtable_entries()\fP.
34 | .P
35 | There is a complete description of the PCRE native API in the
36 | .\" HREF
37 | \fBpcreapi\fP
38 | .\"
39 | page and a description of the POSIX API in the
40 | .\" HREF
41 | \fBpcreposix\fP
42 | .\"
43 | page.
44 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_get_stringtable_entries.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_GET_STRINGTABLE_ENTRIES 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
8 | .PP
9 | .nf
10 | .B int pcre_get_stringtable_entries(const pcre *\fIcode\fP,
11 | .B " const char *\fIname\fP, char **\fIfirst\fP, char **\fIlast\fP);"
12 | .sp
13 | .B int pcre16_get_stringtable_entries(const pcre16 *\fIcode\fP,
14 | .B " PCRE_SPTR16 \fIname\fP, PCRE_UCHAR16 **\fIfirst\fP, PCRE_UCHAR16 **\fIlast\fP);"
15 | .sp
16 | .B int pcre32_get_stringtable_entries(const pcre32 *\fIcode\fP,
17 | .B " PCRE_SPTR32 \fIname\fP, PCRE_UCHAR32 **\fIfirst\fP, PCRE_UCHAR32 **\fIlast\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This convenience function finds, for a compiled pattern, the first and last
24 | entries for a given name in the table that translates capturing parenthesis
25 | names into numbers. When names are required to be unique (PCRE_DUPNAMES is
26 | \fInot\fP set), it is usually easier to use \fBpcre[16|32]_get_stringnumber()\fP
27 | instead.
28 | .sp
29 | \fIcode\fP Compiled regular expression
30 | \fIname\fP Name whose entries required
31 | \fIfirst\fP Where to return a pointer to the first entry
32 | \fIlast\fP Where to return a pointer to the last entry
33 | .sp
34 | The yield of the function is the length of each entry, or
35 | PCRE_ERROR_NOSUBSTRING if none are found.
36 | .P
37 | There is a complete description of the PCRE native API, including the format of
38 | the table entries, in the
39 | .\" HREF
40 | \fBpcreapi\fP
41 | .\"
42 | page, and a description of the POSIX API in the
43 | .\" HREF
44 | \fBpcreposix\fP
45 | .\"
46 | page.
47 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_get_substring.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_GET_SUBSTRING 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
8 | .PP
9 | .nf
10 | .B int pcre_get_substring(const char *\fIsubject\fP, int *\fIovector\fP,
11 | .B " int \fIstringcount\fP, int \fIstringnumber\fP,"
12 | .B " const char **\fIstringptr\fP);"
13 | .sp
14 | .B int pcre16_get_substring(PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP,
15 | .B " int \fIstringcount\fP, int \fIstringnumber\fP,"
16 | .B " PCRE_SPTR16 *\fIstringptr\fP);"
17 | .sp
18 | .B int pcre32_get_substring(PCRE_SPTR32 \fIsubject\fP, int *\fIovector\fP,
19 | .B " int \fIstringcount\fP, int \fIstringnumber\fP,"
20 | .B " PCRE_SPTR32 *\fIstringptr\fP);"
21 | .fi
22 | .
23 | .SH DESCRIPTION
24 | .rs
25 | .sp
26 | This is a convenience function for extracting a captured substring. The
27 | arguments are:
28 | .sp
29 | \fIsubject\fP Subject that has been successfully matched
30 | \fIovector\fP Offset vector that \fBpcre[16|32]_exec()\fP used
31 | \fIstringcount\fP Value returned by \fBpcre[16|32]_exec()\fP
32 | \fIstringnumber\fP Number of the required substring
33 | \fIstringptr\fP Where to put the string pointer
34 | .sp
35 | The memory in which the substring is placed is obtained by calling
36 | \fBpcre[16|32]_malloc()\fP. The convenience function
37 | \fBpcre[16|32]_free_substring()\fP can be used to free it when it is no longer
38 | needed. The yield of the function is the length of the substring,
39 | PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
40 | PCRE_ERROR_NOSUBSTRING if the string number is invalid.
41 | .P
42 | There is a complete description of the PCRE native API in the
43 | .\" HREF
44 | \fBpcreapi\fP
45 | .\"
46 | page and a description of the POSIX API in the
47 | .\" HREF
48 | \fBpcreposix\fP
49 | .\"
50 | page.
51 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_get_substring_list.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_GET_SUBSTRING_LIST 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
8 | .PP
9 | .nf
10 | .B int pcre_get_substring_list(const char *\fIsubject\fP,
11 | .B " int *\fIovector\fP, int \fIstringcount\fP, const char ***\fIlistptr\fP);"
12 | .sp
13 | .B int pcre16_get_substring_list(PCRE_SPTR16 \fIsubject\fP,
14 | .B " int *\fIovector\fP, int \fIstringcount\fP, PCRE_SPTR16 **\fIlistptr\fP);"
15 | .sp
16 | .B int pcre32_get_substring_list(PCRE_SPTR32 \fIsubject\fP,
17 | .B " int *\fIovector\fP, int \fIstringcount\fP, PCRE_SPTR32 **\fIlistptr\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This is a convenience function for extracting a list of all the captured
24 | substrings. The arguments are:
25 | .sp
26 | \fIsubject\fP Subject that has been successfully matched
27 | \fIovector\fP Offset vector that \fBpcre[16|32]_exec\fP used
28 | \fIstringcount\fP Value returned by \fBpcre[16|32]_exec\fP
29 | \fIlistptr\fP Where to put a pointer to the list
30 | .sp
31 | The memory in which the substrings and the list are placed is obtained by
32 | calling \fBpcre[16|32]_malloc()\fP. The convenience function
33 | \fBpcre[16|32]_free_substring_list()\fP can be used to free it when it is no
34 | longer needed. A pointer to a list of pointers is put in the variable whose
35 | address is in \fIlistptr\fP. The list is terminated by a NULL pointer. The
36 | yield of the function is zero on success or PCRE_ERROR_NOMEMORY if sufficient
37 | memory could not be obtained.
38 | .P
39 | There is a complete description of the PCRE native API in the
40 | .\" HREF
41 | \fBpcreapi\fP
42 | .\"
43 | page and a description of the POSIX API in the
44 | .\" HREF
45 | \fBpcreposix\fP
46 | .\"
47 | page.
48 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_jit_stack_alloc.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_JIT_STACK_ALLOC 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
8 | .PP
9 | .nf
10 | .B pcre_jit_stack *pcre_jit_stack_alloc(int \fIstartsize\fP,
11 | .B " int \fImaxsize\fP);"
12 | .sp
13 | .B pcre16_jit_stack *pcre16_jit_stack_alloc(int \fIstartsize\fP,
14 | .B " int \fImaxsize\fP);"
15 | .sp
16 | .B pcre32_jit_stack *pcre32_jit_stack_alloc(int \fIstartsize\fP,
17 | .B " int \fImaxsize\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This function is used to create a stack for use by the code compiled by the JIT
24 | optimization of \fBpcre[16|32]_study()\fP. The arguments are a starting size for
25 | the stack, and a maximum size to which it is allowed to grow. The result can be
26 | passed to the JIT run-time code by \fBpcre[16|32]_assign_jit_stack()\fP, or that
27 | function can set up a callback for obtaining a stack. A maximum stack size of
28 | 512K to 1M should be more than enough for any pattern. For more details, see
29 | the
30 | .\" HREF
31 | \fBpcrejit\fP
32 | .\"
33 | page.
34 | .P
35 | There is a complete description of the PCRE native API in the
36 | .\" HREF
37 | \fBpcreapi\fP
38 | .\"
39 | page and a description of the POSIX API in the
40 | .\" HREF
41 | \fBpcreposix\fP
42 | .\"
43 | page.
44 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_jit_stack_free.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_JIT_STACK_FREE 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
8 | .PP
9 | .SM
10 | .B void pcre_jit_stack_free(pcre_jit_stack *\fIstack\fP);
11 | .PP
12 | .B void pcre16_jit_stack_free(pcre16_jit_stack *\fIstack\fP);
13 | .PP
14 | .B void pcre32_jit_stack_free(pcre32_jit_stack *\fIstack\fP);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function is used to free a JIT stack that was created by
20 | \fBpcre[16|32]_jit_stack_alloc()\fP when it is no longer needed. For more details,
21 | see the
22 | .\" HREF
23 | \fBpcrejit\fP
24 | .\"
25 | page.
26 | .P
27 | There is a complete description of the PCRE native API in the
28 | .\" HREF
29 | \fBpcreapi\fP
30 | .\"
31 | page and a description of the POSIX API in the
32 | .\" HREF
33 | \fBpcreposix\fP
34 | .\"
35 | page.
36 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_maketables.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_MAKETABLES 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
8 | .PP
9 | .SM
10 | .B const unsigned char *pcre_maketables(void);
11 | .PP
12 | .B const unsigned char *pcre16_maketables(void);
13 | .PP
14 | .B const unsigned char *pcre32_maketables(void);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function builds a set of character tables for character values less than
20 | 256. These can be passed to \fBpcre[16|32]_compile()\fP to override PCRE's
21 | internal, built-in tables (which were made by \fBpcre[16|32]_maketables()\fP when
22 | PCRE was compiled). You might want to do this if you are using a non-standard
23 | locale. The function yields a pointer to the tables.
24 | .P
25 | There is a complete description of the PCRE native API in the
26 | .\" HREF
27 | \fBpcreapi\fP
28 | .\"
29 | page and a description of the POSIX API in the
30 | .\" HREF
31 | \fBpcreposix\fP
32 | .\"
33 | page.
34 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_pattern_to_host_byte_order.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_PATTERN_TO_HOST_BYTE_ORDER 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
8 | .PP
9 | .nf
10 | .B int pcre_pattern_to_host_byte_order(pcre *\fIcode\fP,
11 | .B " pcre_extra *\fIextra\fP, const unsigned char *\fItables\fP);"
12 | .sp
13 | .B int pcre16_pattern_to_host_byte_order(pcre16 *\fIcode\fP,
14 | .B " pcre16_extra *\fIextra\fP, const unsigned char *\fItables\fP);"
15 | .sp
16 | .B int pcre32_pattern_to_host_byte_order(pcre32 *\fIcode\fP,
17 | .B " pcre32_extra *\fIextra\fP, const unsigned char *\fItables\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This function ensures that the bytes in 2-byte and 4-byte values in a compiled
24 | pattern are in the correct order for the current host. It is useful when a
25 | pattern that has been compiled on one host is transferred to another that might
26 | have different endianness. The arguments are:
27 | .sp
28 | \fIcode\fP A compiled regular expression
29 | \fIextra\fP Points to an associated \fBpcre[16|32]_extra\fP structure,
30 | or is NULL
31 | \fItables\fP Pointer to character tables, or NULL to
32 | set the built-in default
33 | .sp
34 | The result is 0 for success, a negative PCRE_ERROR_xxx value otherwise.
35 | .P
36 | There is a complete description of the PCRE native API in the
37 | .\" HREF
38 | \fBpcreapi\fP
39 | .\"
40 | page and a description of the POSIX API in the
41 | .\" HREF
42 | \fBpcreposix\fP
43 | .\"
44 | page.
45 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_refcount.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_REFCOUNT 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
8 | .PP
9 | .SM
10 | .B int pcre_refcount(pcre *\fIcode\fP, int \fIadjust\fP);
11 | .PP
12 | .B int pcre16_refcount(pcre16 *\fIcode\fP, int \fIadjust\fP);
13 | .PP
14 | .B int pcre32_refcount(pcre32 *\fIcode\fP, int \fIadjust\fP);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function is used to maintain a reference count inside a data block that
20 | contains a compiled pattern. Its arguments are:
21 | .sp
22 | \fIcode\fP Compiled regular expression
23 | \fIadjust\fP Adjustment to reference value
24 | .sp
25 | The yield of the function is the adjusted reference value, which is constrained
26 | to lie between 0 and 65535.
27 | .P
28 | There is a complete description of the PCRE native API in the
29 | .\" HREF
30 | \fBpcreapi\fP
31 | .\"
32 | page and a description of the POSIX API in the
33 | .\" HREF
34 | \fBpcreposix\fP
35 | .\"
36 | page.
37 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_study.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_STUDY 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
8 | .PP
9 | .nf
10 | .B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP,
11 | .B " const char **\fIerrptr\fP);"
12 | .sp
13 | .B pcre16_extra *pcre16_study(const pcre16 *\fIcode\fP, int \fIoptions\fP,
14 | .B " const char **\fIerrptr\fP);"
15 | .sp
16 | .B pcre32_extra *pcre32_study(const pcre32 *\fIcode\fP, int \fIoptions\fP,
17 | .B " const char **\fIerrptr\fP);"
18 | .fi
19 | .
20 | .SH DESCRIPTION
21 | .rs
22 | .sp
23 | This function studies a compiled pattern, to see if additional information can
24 | be extracted that might speed up matching. Its arguments are:
25 | .sp
26 | \fIcode\fP A compiled regular expression
27 | \fIoptions\fP Options for \fBpcre[16|32]_study()\fP
28 | \fIerrptr\fP Where to put an error message
29 | .sp
30 | If the function succeeds, it returns a value that can be passed to
31 | \fBpcre[16|32]_exec()\fP or \fBpcre[16|32]_dfa_exec()\fP via their \fIextra\fP
32 | arguments.
33 | .P
34 | If the function returns NULL, either it could not find any additional
35 | information, or there was an error. You can tell the difference by looking at
36 | the error value. It is NULL in first case.
37 | .P
38 | The only option is PCRE_STUDY_JIT_COMPILE. It requests just-in-time compilation
39 | if possible. If PCRE has been compiled without JIT support, this option is
40 | ignored. See the
41 | .\" HREF
42 | \fBpcrejit\fP
43 | .\"
44 | page for further details.
45 | .P
46 | There is a complete description of the PCRE native API in the
47 | .\" HREF
48 | \fBpcreapi\fP
49 | .\"
50 | page and a description of the POSIX API in the
51 | .\" HREF
52 | \fBpcreposix\fP
53 | .\"
54 | page.
55 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_utf16_to_host_byte_order.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_UTF16_TO_HOST_BYTE_ORDER 3 "21 January 2012" "PCRE 8.30"
2 | .SH NAME
3 | PCRE - Perl-compatible regular expressions
4 | .SH SYNOPSIS
5 | .rs
6 | .sp
7 | .B #include
8 | .PP
9 | .nf
10 | .B int pcre16_utf16_to_host_byte_order(PCRE_UCHAR16 *\fIoutput\fP,
11 | .B " PCRE_SPTR16 \fIinput\fP, int \fIlength\fP, int *\fIhost_byte_order\fP,"
12 | .B " int \fIkeep_boms\fP);"
13 | .fi
14 | .
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function, which exists only in the 16-bit library, converts a UTF-16
20 | string to the correct order for the current host, taking account of any byte
21 | order marks (BOMs) within the string. Its arguments are:
22 | .sp
23 | \fIoutput\fP pointer to output buffer, may be the same as \fIinput\fP
24 | \fIinput\fP pointer to input buffer
25 | \fIlength\fP number of 16-bit units in the input, or negative for
26 | a zero-terminated string
27 | \fIhost_byte_order\fP a NULL value or a non-zero value pointed to means
28 | start in host byte order
29 | \fIkeep_boms\fP if non-zero, BOMs are copied to the output string
30 | .sp
31 | The result of the function is the number of 16-bit units placed into the output
32 | buffer, including the zero terminator if the string was zero-terminated.
33 | .P
34 | If \fIhost_byte_order\fP is not NULL, it is set to indicate the byte order that
35 | is current at the end of the string.
36 | .P
37 | There is a complete description of the PCRE native API in the
38 | .\" HREF
39 | \fBpcreapi\fP
40 | .\"
41 | page and a description of the POSIX API in the
42 | .\" HREF
43 | \fBpcreposix\fP
44 | .\"
45 | page.
46 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_utf32_to_host_byte_order.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_UTF32_TO_HOST_BYTE_ORDER 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
8 | .PP
9 | .nf
10 | .B int pcre32_utf32_to_host_byte_order(PCRE_UCHAR32 *\fIoutput\fP,
11 | .B " PCRE_SPTR32 \fIinput\fP, int \fIlength\fP, int *\fIhost_byte_order\fP,"
12 | .B " int \fIkeep_boms\fP);"
13 | .fi
14 | .
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function, which exists only in the 32-bit library, converts a UTF-32
20 | string to the correct order for the current host, taking account of any byte
21 | order marks (BOMs) within the string. Its arguments are:
22 | .sp
23 | \fIoutput\fP pointer to output buffer, may be the same as \fIinput\fP
24 | \fIinput\fP pointer to input buffer
25 | \fIlength\fP number of 32-bit units in the input, or negative for
26 | a zero-terminated string
27 | \fIhost_byte_order\fP a NULL value or a non-zero value pointed to means
28 | start in host byte order
29 | \fIkeep_boms\fP if non-zero, BOMs are copied to the output string
30 | .sp
31 | The result of the function is the number of 32-bit units placed into the output
32 | buffer, including the zero terminator if the string was zero-terminated.
33 | .P
34 | If \fIhost_byte_order\fP is not NULL, it is set to indicate the byte order that
35 | is current at the end of the string.
36 | .P
37 | There is a complete description of the PCRE native API in the
38 | .\" HREF
39 | \fBpcreapi\fP
40 | .\"
41 | page and a description of the POSIX API in the
42 | .\" HREF
43 | \fBpcreposix\fP
44 | .\"
45 | page.
46 |
--------------------------------------------------------------------------------
/pcre/doc/pcre_version.3:
--------------------------------------------------------------------------------
1 | .TH PCRE_VERSION 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
8 | .PP
9 | .SM
10 | .B const char *pcre_version(void);
11 | .PP
12 | .B const char *pcre16_version(void);
13 | .PP
14 | .B const char *pcre32_version(void);
15 | .
16 | .SH DESCRIPTION
17 | .rs
18 | .sp
19 | This function (even in the 16-bit and 32-bit libraries) returns a
20 | zero-terminated, 8-bit character string that gives the version number of the
21 | PCRE library and the date of its release.
22 | .P
23 | There is a complete description of the PCRE native API in the
24 | .\" HREF
25 | \fBpcreapi\fP
26 | .\"
27 | page and a description of the POSIX API in the
28 | .\" HREF
29 | \fBpcreposix\fP
30 | .\"
31 | page.
32 |
--------------------------------------------------------------------------------
/pcre/doc/perltest.txt:
--------------------------------------------------------------------------------
1 | The perltest program
2 | --------------------
3 |
4 | The perltest.pl script tests Perl's regular expressions; it has the same
5 | specification as pcretest, and so can be given identical input, except that
6 | input patterns can be followed only by Perl's lower case modifiers and certain
7 | other pcretest modifiers that are either handled or ignored:
8 |
9 | /+ recognized and handled by perltest
10 | /++ the second + is ignored
11 | /8 recognized and handled by perltest
12 | /J ignored
13 | /K ignored
14 | /W ignored
15 | /S ignored
16 | /SS ignored
17 | /Y ignored
18 |
19 | The pcretest \Y escape in data lines is removed before matching. The data lines
20 | are processed as Perl double-quoted strings, so if they contain " $ or @
21 | characters, these have to be escaped. For this reason, all such characters in
22 | the Perl-compatible testinput1 file are escaped so that they can be used for
23 | perltest as well as for pcretest. The special upper case pattern modifiers such
24 | as /A that pcretest recognizes, and its special data line escapes, are not used
25 | in the Perl-compatible test file. The output should be identical, apart from
26 | the initial identifying banner.
27 |
28 | The perltest.pl script can also test UTF-8 features. It recognizes the special
29 | modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput4
30 | and testinput6 files can be fed to perltest to run compatible UTF-8 tests.
31 | However, it is necessary to add "use utf8; require Encode" to the script to
32 | make this work correctly. I have not managed to find a way to handle this
33 | automatically.
34 |
35 | The other testinput files are not suitable for feeding to perltest.pl, since
36 | they make use of the special upper case modifiers and escapes that pcretest
37 | uses to test certain features of PCRE. Some of these files also contain
38 | malformed regular expressions, in order to check that PCRE diagnoses them
39 | correctly.
40 |
41 | Philip Hazel
42 | January 2012
43 |
--------------------------------------------------------------------------------
/pcre/libpcre.pc.in:
--------------------------------------------------------------------------------
1 | # Package Information for pkg-config
2 |
3 | prefix=@prefix@
4 | exec_prefix=@exec_prefix@
5 | libdir=@libdir@
6 | includedir=@includedir@
7 |
8 | Name: libpcre
9 | Description: PCRE - Perl compatible regular expressions C library with 8 bit character support
10 | Version: @PACKAGE_VERSION@
11 | Libs: -L${libdir} -lpcre
12 | Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
13 | Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
14 |
--------------------------------------------------------------------------------
/pcre/libpcre16.pc.in:
--------------------------------------------------------------------------------
1 | # Package Information for pkg-config
2 |
3 | prefix=@prefix@
4 | exec_prefix=@exec_prefix@
5 | libdir=@libdir@
6 | includedir=@includedir@
7 |
8 | Name: libpcre16
9 | Description: PCRE - Perl compatible regular expressions C library with 16 bit character support
10 | Version: @PACKAGE_VERSION@
11 | Libs: -L${libdir} -lpcre16
12 | Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
13 | Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
14 |
--------------------------------------------------------------------------------
/pcre/libpcre32.pc.in:
--------------------------------------------------------------------------------
1 | # Package Information for pkg-config
2 |
3 | prefix=@prefix@
4 | exec_prefix=@exec_prefix@
5 | libdir=@libdir@
6 | includedir=@includedir@
7 |
8 | Name: libpcre32
9 | Description: PCRE - Perl compatible regular expressions C library with 32 bit character support
10 | Version: @PACKAGE_VERSION@
11 | Libs: -L${libdir} -lpcre32
12 | Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
13 | Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
14 |
--------------------------------------------------------------------------------
/pcre/libpcrecpp.pc.in:
--------------------------------------------------------------------------------
1 | # Package Information for pkg-config
2 |
3 | prefix=@prefix@
4 | exec_prefix=@exec_prefix@
5 | libdir=@libdir@
6 | includedir=@includedir@
7 |
8 | Name: libpcrecpp
9 | Description: PCRECPP - C++ wrapper for PCRE
10 | Version: @PACKAGE_VERSION@
11 | Libs: -L${libdir} -lpcre -lpcrecpp
12 | Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
13 |
--------------------------------------------------------------------------------
/pcre/libpcreposix.pc.in:
--------------------------------------------------------------------------------
1 | # Package Information for pkg-config
2 |
3 | prefix=@prefix@
4 | exec_prefix=@exec_prefix@
5 | libdir=@libdir@
6 | includedir=@includedir@
7 |
8 | Name: libpcreposix
9 | Description: PCREPosix - Posix compatible interface to libpcre
10 | Version: @PACKAGE_VERSION@
11 | Libs: -L${libdir} -lpcreposix
12 | Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
13 | Requires.private: libpcre
14 |
--------------------------------------------------------------------------------
/pcre/m4/ltversion.m4:
--------------------------------------------------------------------------------
1 | # ltversion.m4 -- version numbers -*- Autoconf -*-
2 | #
3 | # Copyright (C) 2004, 2011-2018 Free Software Foundation, Inc.
4 | # Written by Scott James Remnant, 2004
5 | #
6 | # This file is free software; the Free Software Foundation gives
7 | # unlimited permission to copy and/or distribute it, with or without
8 | # modifications, as long as this notice is preserved.
9 |
10 | # @configure_input@
11 |
12 | # serial 4221 ltversion.m4
13 | # This file is part of GNU Libtool
14 |
15 | m4_define([LT_PACKAGE_VERSION], [2.4.6.42-b88ce])
16 | m4_define([LT_PACKAGE_REVISION], [2.4.6.42])
17 |
18 | AC_DEFUN([LTVERSION_VERSION],
19 | [macro_version='2.4.6.42-b88ce'
20 | macro_revision='2.4.6.42'
21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
22 | _LT_DECL(, macro_revision, 0)
23 | ])
24 |
--------------------------------------------------------------------------------
/pcre/makevp.bat:
--------------------------------------------------------------------------------
1 | :: AH 20-12-06 modified for new PCRE-7.0 and VP/BCC
2 | :: PH 19-03-07 renamed !compile.txt and !linklib.txt as makevp-compile.txt and
3 | :: makevp-linklib.txt
4 | :: PH 26-03-07 re-renamed !compile.txt and !linklib.txt as makevp-c.txt and
5 | :: makevp-l.txt
6 | :: PH 29-03-07 hopefully the final rename to makevp_c and makevp_l
7 | :: AH 27.08.08 updated for new PCRE-7.7
8 | :: required PCRE.H and CONFIG.H will be generated if not existing
9 |
10 | @echo off
11 | echo.
12 | echo Compiling PCRE with BORLAND C++ for VIRTUAL PASCAL
13 | echo.
14 |
15 | REM This file was contributed by Alexander Tokarev for building PCRE for use
16 | REM with Virtual Pascal. It has not been tested with the latest PCRE release.
17 |
18 | REM This file has been modified and extended to compile with newer PCRE releases
19 | REM by Stefan Weber (Angels Holocaust).
20 |
21 | REM CHANGE THIS FOR YOUR BORLAND C++ COMPILER PATH
22 | SET BORLAND=f:\bcc
23 | REM location of the TASM binaries, if compiling with the -B BCC switch
24 | SET TASM=f:\tasm
25 |
26 | SET PATH=%PATH%;%BORLAND%\bin;%TASM%\bin
27 | SET PCRE_VER=77
28 | SET COMPILE_DEFAULTS=-DHAVE_CONFIG_H -DPCRE_STATIC -I%BORLAND%\include
29 |
30 | del pcre%PCRE_VER%.lib >nul 2>nul
31 |
32 | :: sh configure
33 |
34 | :: check for needed header files
35 | if not exist pcre.h copy pcre.h.generic pcre.h
36 | if not exist config.h copy config.h.generic config.h
37 |
38 | bcc32 -DDFTABLES %COMPILE_DEFAULTS% -L%BORLAND%\lib dftables.c
39 | IF ERRORLEVEL 1 GOTO ERROR
40 |
41 | :: dftables > chartables.c
42 | dftables pcre_chartables.c
43 |
44 | REM compile and link the PCRE library into lib: option -B for ASM compile works too
45 | bcc32 -a4 -c -RT- -y- -v- -u- -R- -Q- -X -d -fp -ff -P- -O2 -Oc -Ov -3 -w-8004 -w-8064 -w-8065 -w-8012 -UDFTABLES -DVPCOMPAT %COMPILE_DEFAULTS% @makevp_c.txt
46 | IF ERRORLEVEL 1 GOTO ERROR
47 |
48 | tlib %BORLAND%\lib\cw32.lib *calloc *del *strncmp *memcpy *memmove *memset *memcmp *strlen
49 | IF ERRORLEVEL 1 GOTO ERROR
50 | tlib pcre%PCRE_VER%.lib @makevp_l.txt +calloc.obj +del.obj +strncmp.obj +memcpy.obj +memmove.obj +memset.obj +memcmp.obj +strlen.obj
51 | IF ERRORLEVEL 1 GOTO ERROR
52 |
53 | del *.obj *.tds *.bak >nul 2>nul
54 |
55 | echo ---
56 | echo Now the library should be complete. Please check all messages above.
57 | echo Don't care for warnings, it's OK.
58 | goto END
59 |
60 | :ERROR
61 | echo ---
62 | echo Error while compiling PCRE. Aborting...
63 | pause
64 | goto END
65 |
66 | :END
67 |
--------------------------------------------------------------------------------
/pcre/makevp_c.txt:
--------------------------------------------------------------------------------
1 | pcre_byte_order.c
2 | pcre_chartables.c
3 | pcre_compile.c
4 | pcre_config.c
5 | pcre_dfa_exec.c
6 | pcre_exec.c
7 | pcre_fullinfo.c
8 | pcre_get.c
9 | pcre_globals.c
10 | pcre_jit_compile.c
11 | pcre_maketables.c
12 | pcre_newline.c
13 | pcre_ord2utf8.c
14 | pcre_refcount.c
15 | pcre_string_utils.c
16 | pcre_study.c
17 | pcre_tables.c
18 | pcre_ucd.c
19 | pcre_valid_utf8.c
20 | pcre_version.c
21 | pcre_xclass.c
22 |
--------------------------------------------------------------------------------
/pcre/makevp_l.txt:
--------------------------------------------------------------------------------
1 | +pcre_byte_order.obj &
2 | +pcre_chartables.obj &
3 | +pcre_compile.obj &
4 | +pcre_config.obj &
5 | +pcre_dfa_exec.obj &
6 | +pcre_exec.obj &
7 | +pcre_fullinfo.obj &
8 | +pcre_get.obj &
9 | +pcre_globals.obj &
10 | +pcre_jit_compile.obj &
11 | +pcre_maketables.obj &
12 | +pcre_newline.obj &
13 | +pcre_ord2utf8.obj &
14 | +pcre_refcount.obj &
15 | +pcre_string_utils.obj &
16 | +pcre_study.obj &
17 | +pcre_tables.obj &
18 | +pcre_ucd.obj &
19 | +pcre_valid_utf8.obj &
20 | +pcre_version.obj &
21 | +pcre_xclass.obj
22 |
--------------------------------------------------------------------------------
/pcre/pcre16_byte_order.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_byte_order.c"
44 |
45 | /* End of pcre16_byte_order.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_chartables.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_chartables.c"
44 |
45 | /* End of pcre16_chartables.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_compile.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_compile.c"
44 |
45 | /* End of pcre16_compile.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_config.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_config.c"
44 |
45 | /* End of pcre16_config.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_dfa_exec.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_dfa_exec.c"
44 |
45 | /* End of pcre16_dfa_exec.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_exec.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_exec.c"
44 |
45 | /* End of pcre16_exec.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_fullinfo.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_fullinfo.c"
44 |
45 | /* End of pcre16_fullinfo.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_get.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_get.c"
44 |
45 | /* End of pcre16_get.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_globals.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_globals.c"
44 |
45 | /* End of pcre16_globals.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_jit_compile.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_jit_compile.c"
44 |
45 | /* End of pcre16_jit_compile.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_maketables.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_maketables.c"
44 |
45 | /* End of pcre16_maketables.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_newline.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_newline.c"
44 |
45 | /* End of pcre16_newline.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_printint.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_printint.c"
44 |
45 | /* End of pcre16_printint.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_refcount.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_refcount.c"
44 |
45 | /* End of pcre16_refcount.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_string_utils.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_string_utils.c"
44 |
45 | /* End of pcre16_string_utils.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_study.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_study.c"
44 |
45 | /* End of pcre16_study.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_tables.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_tables.c"
44 |
45 | /* End of pcre16_tables.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_ucd.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_ucd.c"
44 |
45 | /* End of pcre16_ucd.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_version.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_version.c"
44 |
45 | /* End of pcre16_version.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre16_xclass.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 16 bit character support. */
41 | #define COMPILE_PCRE16
42 |
43 | #include "pcre_xclass.c"
44 |
45 | /* End of pcre16_xclass.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_byte_order.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_byte_order.c"
44 |
45 | /* End of pcre32_byte_order.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_chartables.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_chartables.c"
44 |
45 | /* End of pcre32_chartables.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_compile.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_compile.c"
44 |
45 | /* End of pcre32_compile.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_config.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_config.c"
44 |
45 | /* End of pcre32_config.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_dfa_exec.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_dfa_exec.c"
44 |
45 | /* End of pcre32_dfa_exec.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_exec.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_exec.c"
44 |
45 | /* End of pcre32_exec.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_fullinfo.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_fullinfo.c"
44 |
45 | /* End of pcre32_fullinfo.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_get.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_get.c"
44 |
45 | /* End of pcre32_get.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_globals.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_globals.c"
44 |
45 | /* End of pcre32_globals.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_jit_compile.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_jit_compile.c"
44 |
45 | /* End of pcre32_jit_compile.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_maketables.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_maketables.c"
44 |
45 | /* End of pcre32_maketables.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_newline.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_newline.c"
44 |
45 | /* End of pcre32_newline.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_printint.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_printint.c"
44 |
45 | /* End of pcre32_printint.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_refcount.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_refcount.c"
44 |
45 | /* End of pcre32_refcount.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_string_utils.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_string_utils.c"
44 |
45 | /* End of pcre32_string_utils.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_study.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_study.c"
44 |
45 | /* End of pcre32_study.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_tables.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_tables.c"
44 |
45 | /* End of pcre32_tables.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_ucd.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_ucd.c"
44 |
45 | /* End of pcre32_ucd.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_version.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_version.c"
44 |
45 | /* End of pcre32_version.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre32_xclass.c:
--------------------------------------------------------------------------------
1 | /*************************************************
2 | * Perl-Compatible Regular Expressions *
3 | *************************************************/
4 |
5 | /* PCRE is a library of functions to support regular expressions whose syntax
6 | and semantics are as close as possible to those of the Perl 5 language.
7 |
8 | Written by Philip Hazel
9 | Copyright (c) 1997-2012 University of Cambridge
10 |
11 | -----------------------------------------------------------------------------
12 | Redistribution and use in source and binary forms, with or without
13 | modification, are permitted provided that the following conditions are met:
14 |
15 | * Redistributions of source code must retain the above copyright notice,
16 | this list of conditions and the following disclaimer.
17 |
18 | * Redistributions in binary form must reproduce the above copyright
19 | notice, this list of conditions and the following disclaimer in the
20 | documentation and/or other materials provided with the distribution.
21 |
22 | * Neither the name of the University of Cambridge nor the names of its
23 | contributors may be used to endorse or promote products derived from
24 | this software without specific prior written permission.
25 |
26 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 | POSSIBILITY OF SUCH DAMAGE.
37 | -----------------------------------------------------------------------------
38 | */
39 |
40 | /* Generate code with 32 bit character support. */
41 | #define COMPILE_PCRE32
42 |
43 | #include "pcre_xclass.c"
44 |
45 | /* End of pcre32_xclass.c */
46 |
--------------------------------------------------------------------------------
/pcre/pcre_stringpiece.cc:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2005, Google Inc.
2 | // All rights reserved.
3 | //
4 | // Redistribution and use in source and binary forms, with or without
5 | // modification, are permitted provided that the following conditions are
6 | // met:
7 | //
8 | // * Redistributions of source code must retain the above copyright
9 | // notice, this list of conditions and the following disclaimer.
10 | // * Redistributions in binary form must reproduce the above
11 | // copyright notice, this list of conditions and the following disclaimer
12 | // in the documentation and/or other materials provided with the
13 | // distribution.
14 | // * Neither the name of Google Inc. nor the names of its
15 | // contributors may be used to endorse or promote products derived from
16 | // this software without specific prior written permission.
17 | //
18 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 | //
30 | // Author: wilsonh@google.com (Wilson Hsieh)
31 | //
32 |
33 | #ifdef HAVE_CONFIG_H
34 | #include "config.h"
35 | #endif
36 |
37 | #include
38 | #include "pcrecpp_internal.h"
39 | #include "pcre_stringpiece.h"
40 |
41 | std::ostream& operator<<(std::ostream& o, const pcrecpp::StringPiece& piece) {
42 | return (o << piece.as_string());
43 | }
44 |
--------------------------------------------------------------------------------
/pcre/testdata/grepbinary:
--------------------------------------------------------------------------------
1 | The quick brown f x jumps over the lazy dog.
2 |
--------------------------------------------------------------------------------
/pcre/testdata/grepfilelist:
--------------------------------------------------------------------------------
1 | testdata/grepinputv
2 |
3 | testdata/grepinputx
4 |
--------------------------------------------------------------------------------
/pcre/testdata/grepinput3:
--------------------------------------------------------------------------------
1 | triple: t1_txt s1_tag s_txt p_tag p_txt o_tag o_txt
2 |
3 | triple: t2_txt s1_tag s_txt p_tag p_txt o_tag
4 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
5 |
6 | triple: t3_txt s2_tag s_txt p_tag p_txt o_tag o_txt
7 |
8 | triple: t4_txt s1_tag s_txt p_tag p_txt o_tag o_txt
9 |
10 | triple: t5_txt s1_tag s_txt p_tag p_txt o_tag
11 | o_txt
12 |
13 | triple: t6_txt s2_tag s_txt p_tag p_txt o_tag o_txt
14 |
15 | triple: t7_txt s1_tag s_txt p_tag p_txt o_tag o_txt
16 |
--------------------------------------------------------------------------------
/pcre/testdata/grepinput8:
--------------------------------------------------------------------------------
1 | X one
2 | X twoX threeX four
X five
3 | X six
4 | X seven
X eight
X nine
X ten
5 |
6 | Before 111
7 | Before 222
Before 333
Match
8 | After 111
9 | After 222
After 333
10 | And so on and so on
11 | And so on and so on
12 |
--------------------------------------------------------------------------------
/pcre/testdata/grepinputv:
--------------------------------------------------------------------------------
1 | The quick brown
2 | fox jumps
3 | over the lazy dog.
4 | This time it jumps and jumps and jumps.
5 |
--------------------------------------------------------------------------------
/pcre/testdata/grepinputx:
--------------------------------------------------------------------------------
1 | This is a second file of input for the pcregrep tests.
2 |
3 | Here is the pattern again.
4 |
5 | Pattern
6 | That time it was on a line by itself.
7 |
8 | To pat or not to pat, that is the question.
9 |
10 | complete pair
11 | of lines
12 |
13 | That was a complete pair
14 | of lines all by themselves.
15 |
16 | complete pair
17 | of lines
18 |
19 | And there they were again, to check line numbers.
20 |
21 | one
22 | two
23 | three
24 | four
25 | five
26 | six
27 | seven
28 | eight
29 | nine
30 | ten
31 | eleven
32 | twelve
33 | thirteen
34 | fourteen
35 | fifteen
36 | sixteen
37 | seventeen
38 | eighteen
39 | nineteen
40 | twenty
41 |
42 | This line contains pattern not on a line by itself.
43 | This is the last line of this file.
44 |
--------------------------------------------------------------------------------
/pcre/testdata/greplist:
--------------------------------------------------------------------------------
1 | This is a file of patterns for testing the -f option. Don't include any blank
2 | lines because they will match everything! This is no longer true, so have one.
3 |
4 | pattern
5 | line by itself
6 |
7 | End of the list of patterns.
8 |
--------------------------------------------------------------------------------
/pcre/testdata/grepoutput8:
--------------------------------------------------------------------------------
1 | ---------------------------- Test U1 ------------------------------
2 | 1:X one
3 | 2:X two3:X three4:X four
5:X five
4 | 6:X six
5 | 7:X seven
8:X eight
9:X nine
10:X ten
6 | RC=0
7 | ---------------------------- Test U2 ------------------------------
8 | 12-Before 111
9 | 13-Before 222
14-Before 333
15:Match
10 | 16-After 111
11 | 17-After 222
18-After 333
12 | RC=0
13 |
--------------------------------------------------------------------------------
/pcre/testdata/grepoutputN:
--------------------------------------------------------------------------------
1 | ---------------------------- Test N1 ------------------------------
2 | 1:abc
2:def
---------------------------- Test N2 ------------------------------
3 | 1:abc
def
4 | 2:ghi
5 | jkl---------------------------- Test N3 ------------------------------
6 | 2:def
3:
7 | ghi
8 | jkl---------------------------- Test N4 ------------------------------
9 | 2:ghi
10 | jkl---------------------------- Test N5 ------------------------------
11 | 1:abc
2:def
12 | 3:ghi
13 | 4:jkl---------------------------- Test N6 ------------------------------
14 | 1:abc
2:def
15 | 3:ghi
16 | 4:jkl
--------------------------------------------------------------------------------
/pcre/testdata/greppatN4:
--------------------------------------------------------------------------------
1 | xxx
2 | jkl
--------------------------------------------------------------------------------
/pcre/testdata/saved16:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved16
--------------------------------------------------------------------------------
/pcre/testdata/saved16BE-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved16BE-1
--------------------------------------------------------------------------------
/pcre/testdata/saved16BE-2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved16BE-2
--------------------------------------------------------------------------------
/pcre/testdata/saved16LE-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved16LE-1
--------------------------------------------------------------------------------
/pcre/testdata/saved16LE-2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved16LE-2
--------------------------------------------------------------------------------
/pcre/testdata/saved32:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved32
--------------------------------------------------------------------------------
/pcre/testdata/saved32BE-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved32BE-1
--------------------------------------------------------------------------------
/pcre/testdata/saved32BE-2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved32BE-2
--------------------------------------------------------------------------------
/pcre/testdata/saved32LE-1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved32LE-1
--------------------------------------------------------------------------------
/pcre/testdata/saved32LE-2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved32LE-2
--------------------------------------------------------------------------------
/pcre/testdata/saved8:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/saved8
--------------------------------------------------------------------------------
/pcre/testdata/testinput1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/testinput1
--------------------------------------------------------------------------------
/pcre/testdata/testinput13:
--------------------------------------------------------------------------------
1 | /-- This test is run only when JIT support is not available. It checks that an
2 | attempt to use it has the expected behaviour. It also tests things that
3 | are different without JIT. --/
4 |
5 | /abc/S+I
6 |
7 | /a*/SI
8 |
9 | /-- End of testinput13 --/
10 |
--------------------------------------------------------------------------------
/pcre/testdata/testinput15:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/testinput15
--------------------------------------------------------------------------------
/pcre/testdata/testinput16:
--------------------------------------------------------------------------------
1 | /-- This set of tests is run only with the 8-bit library when Unicode property
2 | support is available. It starts with tests of the POSIX interface, because
3 | that is supported only with the 8-bit library. --/
4 |
5 | /\w/P
6 | +++\x{c2}
7 |
8 | /\w/WP
9 | +++\x{c2}
10 |
11 | /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iDZ
12 |
13 | /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8DZ
14 |
15 | /AB\x{1fb0}/8DZ
16 |
17 | /AB\x{1fb0}/8DZi
18 |
19 | /\x{401}\x{420}\x{421}\x{422}\x{423}\x{424}\x{425}\x{426}\x{427}\x{428}\x{429}\x{42a}\x{42b}\x{42c}\x{42d}\x{42e}\x{42f}/8iSI
20 | \x{401}\x{420}\x{421}\x{422}\x{423}\x{424}\x{425}\x{426}\x{427}\x{428}\x{429}\x{42a}\x{42b}\x{42c}\x{42d}\x{42e}\x{42f}
21 | \x{451}\x{440}\x{441}\x{442}\x{443}\x{444}\x{445}\x{446}\x{447}\x{448}\x{449}\x{44a}\x{44b}\x{44c}\x{44d}\x{44e}\x{44f}
22 |
23 | /[ⱥ]/8iBZ
24 |
25 | /[^ⱥ]/8iBZ
26 |
27 | /\h/SI
28 |
29 | /\v/SI
30 |
31 | /\R/SI
32 |
33 | /[[:blank:]]/WBZ
34 |
35 | /\x{212a}+/i8SI
36 | KKkk\x{212a}
37 |
38 | /s+/i8SI
39 | SSss\x{17f}
40 |
41 | /[\W\p{Any}]/BZ
42 | abc
43 | 123
44 |
45 | /[\W\pL]/BZ
46 | abc
47 | ** Failers
48 | 123
49 |
50 | /[\D]/8
51 | \x{1d7cf}
52 |
53 | /[\D\P{Nd}]/8
54 | \x{1d7cf}
55 |
56 | /[^\D]/8
57 | a9b
58 | ** Failers
59 | \x{1d7cf}
60 |
61 | /[^\D\P{Nd}]/8
62 | a9b
63 | \x{1d7cf}
64 | ** Failers
65 | \x{10000}
66 |
67 | /-- End of testinput16 --/
68 |
--------------------------------------------------------------------------------
/pcre/testdata/testinput18:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/iij/mruby-regexp-pcre/71bd16ba59239f04aefb73bb6d46d5b581f27b1b/pcre/testdata/testinput18
--------------------------------------------------------------------------------
/pcre/testdata/testinput19:
--------------------------------------------------------------------------------
1 | /-- This set of tests is for Unicode property support, relevant only to the
2 | 16- and 32-bit library. --/
3 |
4 | /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8iDZ
5 |
6 | /A\x{391}\x{10427}\x{ff3a}\x{1fb0}/8DZ
7 |
8 | /AB\x{1fb0}/8DZ
9 |
10 | /AB\x{1fb0}/8DZi
11 |
12 | /\x{401}\x{420}\x{421}\x{422}\x{423}\x{424}\x{425}\x{426}\x{427}\x{428}\x{429}\x{42a}\x{42b}\x{42c}\x{42d}\x{42e}\x{42f}/8iSI
13 | \x{401}\x{420}\x{421}\x{422}\x{423}\x{424}\x{425}\x{426}\x{427}\x{428}\x{429}\x{42a}\x{42b}\x{42c}\x{42d}\x{42e}\x{42f}
14 | \x{451}\x{440}\x{441}\x{442}\x{443}\x{444}\x{445}\x{446}\x{447}\x{448}\x{449}\x{44a}\x{44b}\x{44c}\x{44d}\x{44e}\x{44f}
15 |
16 | /[ⱥ]/8iBZ
17 |
18 | /[^ⱥ]/8iBZ
19 |
20 | /[[:blank:]]/WBZ
21 |
22 | /\x{212a}+/i8SI
23 | KKkk\x{212a}
24 |
25 | /s+/i8SI
26 | SSss\x{17f}
27 |
28 | /[\D]/8
29 | \x{1d7cf}
30 |
31 | /[\D\P{Nd}]/8
32 | \x{1d7cf}
33 |
34 | /[^\D]/8
35 | a9b
36 | ** Failers
37 | \x{1d7cf}
38 |
39 | /[^\D\P{Nd}]/8
40 | a9b
41 | \x{1d7cf}
42 | ** Failers
43 | \x{10000}
44 |
45 | /-- End of testinput19 --/
46 |
--------------------------------------------------------------------------------
/pcre/testdata/testinput20:
--------------------------------------------------------------------------------
1 | /-- These DFA tests are for the handling of characters greater than 255 in
2 | 16- or 32-bit, non-UTF mode. --/
3 |
4 | /^\x{ffff}+/i
5 | \x{ffff}
6 |
7 | /^\x{ffff}?/i
8 | \x{ffff}
9 |
10 | /^\x{ffff}*/i
11 | \x{ffff}
12 |
13 | /^\x{ffff}{3}/i
14 | \x{ffff}\x{ffff}\x{ffff}
15 |
16 | /^\x{ffff}{0,3}/i
17 | \x{ffff}
18 |
19 | /-- End of testinput20 --/
20 |
--------------------------------------------------------------------------------
/pcre/testdata/testinput21:
--------------------------------------------------------------------------------
1 | /-- Tests for reloading pre-compiled patterns. The first one gives an error
2 | right away, and can be any old pattern compiled in 8-bit mode ("abc" is
3 | typical). The others require the link size to be 2. */x
4 |
5 | (?:[AaLl]+)[^xX-]*?)(?P[\x{150}-\x{250}\x{300}]|
9 | [^\x{800}aAs-uS-U\x{d800}-\x{dfff}])++[^#\b\x{500}\x{1000}]{3,5}$
10 | /x
11 |
12 | In 16-bit mode with options: S>testdata/saved16LE-1
13 | FS>testdata/saved16BE-1
14 | In 32-bit mode with options: S>testdata/saved32LE-1
15 | FS>testdata/saved32BE-1
16 | --%x
17 |
18 | [aZ\x{400}-\x{10ffff}]{4,}
5 | [\x{f123}\x{10039}\x{20000}-\x{21234}]?|
6 | [A-Cx-z\x{100000}-\x{1000a7}\x{101234}])
7 | (?[^az])/x
8 |
9 | In 16-bit mode with options: S8>testdata/saved16LE-2
10 | FS8>testdata/saved16BE-2
11 | In 32-bit mode with options: S8>testdata/saved32LE-2
12 | FS8>testdata/saved32BE-2
13 | --%8x
14 |
15 | [aZ\x{400}-\x{10ffff}]{4,}
5 | [\x{f123}\x{10039}\x{20000}-\x{21234}]?|
6 | [A-Cx-z\x{100000}-\x{1000a7}\x{101234}])
7 | (?[^az])/x
8 |
9 | In 16-bit mode with options: S8>testdata/saved16LE-2
10 | FS8>testdata/saved16BE-2
11 | In 32-bit mode with options: S8>testdata/saved32LE-2
12 | FS8>testdata/saved32BE-2
13 | --%8x
14 |
15 | [aZ\x{400}-\x{10ffff}]{4,}
5 | [\x{f123}\x{10039}\x{20000}-\x{21234}]?|
6 | [A-Cx-z\x{100000}-\x{1000a7}\x{101234}])
7 | (?[^az])/x
8 |
9 | In 16-bit mode with options: S8>testdata/saved16LE-2
10 | FS8>testdata/saved16BE-2
11 | In 32-bit mode with options: S8>testdata/saved32LE-2
12 | FS8>testdata/saved32BE-2
13 | --%8x
14 |
15 |