You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This file is part of the pcre2cpp project, which is licensed under the BSD 3-Clause License with Attribution Requirement.
5
-
*
5
+
*
6
6
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7
7
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
8
8
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
@@ -18,15 +18,15 @@
18
18
* 8. Exception for large projects: If this code is used as part of a larger project (e.g., an application, framework, or other libraries), permission is not required for the sale of the unmodified version, as long as:
19
19
* - The project is more than just a wrapper for the original code.
20
20
* - The code is an integral part of the larger project, and the project does not merely involve selling the original code.
21
-
*
21
+
*
22
22
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
-
*
23
+
*
24
24
* ---
25
25
* PCRE2 Exception:
26
26
* Notwithstanding the above, you are permitted to link or otherwise combine this software with the PCRE2 library (or a modified version of that library), and distribute the resulting binaries without restriction, provided that you do not modify the PCRE2 library itself.
27
27
* Furthermore, the second condition in the BSD license (covering binary redistributions) does not apply to software that includes this wrapper as part of a larger binary package, unless the package itself uses PCRE2 independently.
28
28
*/
29
-
29
+
30
30
/*
31
31
* This file is part of the pcre2cpp project, which includes code from the PCRE2 library.
32
32
* Copyright (c) 2025, Patryk Antosik (MAIPA01)
@@ -44,24 +44,42 @@
44
44
* Exemption for binary redistributions applies as per PCRE2's BSD license terms.
45
45
*/
46
46
47
-
#include"pch.hpp"
48
-
#include<regex.hpp>
49
-
#pragma comment(lib, "pcre2-8-static.lib")
50
-
#pragma comment(lib, "pcre2-posix-static.lib")
47
+
#pragma once
48
+
#include"pcre2cpp_types.hpp"
49
+
#include"pcre2_data.hpp"
50
+
51
+
namespacepcre2cpp {
52
+
template<size_t utf>
53
+
classbasic_match_result {
54
+
private:
55
+
using _string_type = _pcre2_data<utf>::string_type;
* This file is part of the pcre2cpp project, which is licensed under the BSD 3-Clause License with Attribution Requirement.
5
+
*
6
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7
+
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions, and the following disclaimer.
8
+
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
9
+
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgment:
10
+
* "This product includes software developed by Patryk Antosik (MAIPA01) as part of the pcre2cpp project."
11
+
* 4. If you modify this software and distribute it, you must include a notice stating that the original work was created by Patryk Antosik (MAIPA01) as part of the pcre2cpp project.
12
+
* 5. Neither the name of the author nor the name "pcre2cpp" may be used to endorse or promote products derived from this software without specific prior written permission.
13
+
* 6. Sale of unmodified code: The unmodified version of this software may not be sold without the explicit permission of the author.
14
+
* 7. Sale of modified code: Modified versions of the code may be sold, provided that:
15
+
* - Proper attribution to Patryk Antosik (MAIPA01) as the original author is maintained.
16
+
* - The modified code is clearly marked as a modified version.
17
+
* - The modified code must be accompanied by documentation that includes references to the original version and its author.
18
+
* 8. Exception for large projects: If this code is used as part of a larger project (e.g., an application, framework, or other libraries), permission is not required for the sale of the unmodified version, as long as:
19
+
* - The project is more than just a wrapper for the original code.
20
+
* - The code is an integral part of the larger project, and the project does not merely involve selling the original code.
21
+
*
22
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
+
*
24
+
* ---
25
+
* PCRE2 Exception:
26
+
* Notwithstanding the above, you are permitted to link or otherwise combine this software with the PCRE2 library (or a modified version of that library), and distribute the resulting binaries without restriction, provided that you do not modify the PCRE2 library itself.
27
+
* Furthermore, the second condition in the BSD license (covering binary redistributions) does not apply to software that includes this wrapper as part of a larger binary package, unless the package itself uses PCRE2 independently.
28
+
*/
29
+
30
+
/*
31
+
* This file is part of the pcre2cpp project, which includes code from the PCRE2 library.
32
+
* Copyright (c) 2025, Patryk Antosik (MAIPA01)
33
+
* This project is licensed under the BSD 3-Clause License with Attribution Requirement.
34
+
*
35
+
* PCRE2 library included in this project:
36
+
* Copyright (c) 2016-2024, University of Cambridge.
37
+
* All rights reserved.
38
+
*
39
+
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
40
+
* 1. Redistributions of source code must retain the above copyright notices, this list of conditions, and the following disclaimer.
41
+
* 2. Redistributions in binary form must reproduce the above copyright notices, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution.
42
+
* 3. Neither the name of the University of Cambridge nor the names of any contributors may be used to endorse or promote products derived from this software without specific prior written permission.
43
+
*
44
+
* Exemption for binary redistributions applies as per PCRE2's BSD license terms.
0 commit comments