Commit 29ec638
authored
Regular expressions does not crash anymore (cont) (#490)
* enhanced type safety on regexp implementation
* fixed memory leak in b2::regex::compiler::regcomp
* fixed crashing of bad regexps, due to attempt to reference a compiled regexp, which has not been compiled due to some error, by b2::regex::program::result_iterator::advance
* added the b2::regex::frame variable for formatting errors when using regexps (especially compilation) and program termination (optional).
* b2::regex::program::result_iterator::operator[] bug on boundary check fixed
* added b2::regex::program::result_iterator::count method, for better regex usability
* better cleanup on abs_workdir.py test
* alternate includes scheme to aid linking
* partially revert of regex include scheme1 parent d82f426 commit 29ec638
File tree
5 files changed
+140
-64
lines changed- doc/src
- src/engine
- test
5 files changed
+140
-64
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
1021 | | - | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
1022 | 1027 | | |
1023 | 1028 | | |
1024 | 1029 | | |
1025 | 1030 | | |
1026 | 1031 | | |
1027 | 1032 | | |
1028 | 1033 | | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
1035 | 1038 | | |
1036 | 1039 | | |
1037 | 1040 | | |
| |||
0 commit comments