0.2.0-dev Download ZIP
104 lines ·3.9 KB Raw
| 1 | PCRE2 Licence |
| 2 | ============= |
| 3 | |
| 4 | | SPDX-License-Identifier: | BSD-3-Clause WITH PCRE2-exception | |
| 5 | |---------|-------| |
| 6 | |
| 7 | PCRE2 is a library of functions to support regular expressions whose syntax |
| 8 | and semantics are as close as possible to those of the Perl 5 language. |
| 9 | |
| 10 | Releases 10.00 and above of PCRE2 are distributed under the terms of the "BSD" |
| 11 | licence, as specified below, with one exemption for certain binary |
| 12 | redistributions. The documentation for PCRE2, supplied in the "doc" directory, |
| 13 | is distributed under the same terms as the software itself. The data in the |
| 14 | testdata directory is not copyrighted and is in the public domain. |
| 15 | |
| 16 | The basic library functions are written in C and are freestanding. Also |
| 17 | included in the distribution is a just-in-time compiler that can be used to |
| 18 | optimize pattern matching. This is an optional feature that can be omitted when |
| 19 | the library is built. The just-in-time compiler is separately licensed under the |
| 20 | "2-clause BSD" licence. |
| 21 | |
| 22 | |
| 23 | COPYRIGHT |
| 24 | --------- |
| 25 | |
| 26 | ### The basic library functions |
| 27 | |
| 28 | Written by: Philip Hazel |
| 29 | Email local part: Philip.Hazel |
| 30 | Email domain: gmail.com |
| 31 | |
| 32 | Retired from University of Cambridge Computing Service, |
| 33 | Cambridge, England. |
| 34 | |
| 35 | Copyright (c) 1997-2007 University of Cambridge |
| 36 | Copyright (c) 2007-2024 Philip Hazel |
| 37 | All rights reserved. |
| 38 | |
| 39 | ### PCRE2 Just-In-Time compilation support |
| 40 | |
| 41 | Written by: Zoltan Herczeg |
| 42 | Email local part: hzmester |
| 43 | Email domain: freemail.hu |
| 44 | |
| 45 | Copyright (c) 2010-2024 Zoltan Herczeg |
| 46 | All rights reserved. |
| 47 | |
| 48 | ### Stack-less Just-In-Time compiler |
| 49 | |
| 50 | Written by: Zoltan Herczeg |
| 51 | Email local part: hzmester |
| 52 | Email domain: freemail.hu |
| 53 | |
| 54 | Copyright (c) 2009-2024 Zoltan Herczeg |
| 55 | All rights reserved. |
| 56 | |
| 57 | The code in the `deps/sljit` directory has its own LICENSE file. |
| 58 | |
| 59 | ### All other contributions |
| 60 | |
| 61 | Many other contributors have participated in the authorship of PCRE2. As PCRE2 |
| 62 | has never required a Contributor Licensing Agreement, or other copyright |
| 63 | assignment agreement, all contributions have copyright retained by each |
| 64 | original contributor or their employer. |
| 65 | |
| 66 | |
| 67 | THE "BSD" LICENCE |
| 68 | ----------------- |
| 69 | |
| 70 | Redistribution and use in source and binary forms, with or without |
| 71 | modification, are permitted provided that the following conditions are met: |
| 72 | |
| 73 | * Redistributions of source code must retain the above copyright notices, |
| 74 | this list of conditions and the following disclaimer. |
| 75 | |
| 76 | * Redistributions in binary form must reproduce the above copyright |
| 77 | notices, this list of conditions and the following disclaimer in the |
| 78 | documentation and/or other materials provided with the distribution. |
| 79 | |
| 80 | * Neither the name of the University of Cambridge nor the names of any |
| 81 | contributors may be used to endorse or promote products derived from this |
| 82 | software without specific prior written permission. |
| 83 | |
| 84 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 85 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 86 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 87 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE |
| 88 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 89 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 90 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 91 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 92 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 93 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 94 | POSSIBILITY OF SUCH DAMAGE. |
| 95 | |
| 96 | |
| 97 | EXEMPTION FOR BINARY LIBRARY-LIKE PACKAGES |
| 98 | ------------------------------------------ |
| 99 | |
| 100 | The second condition in the BSD licence (covering binary redistributions) does |
| 101 | not apply all the way down a chain of software. If binary package A includes |
| 102 | PCRE2, it must respect the condition, but if package B is software that |
| 103 | includes package A, the condition is not imposed on package B unless it uses |
| 104 | PCRE2 independently. |