Vladiwostok
231ae8b68a
Fix D-Scanner linting issues ( #9070 )
...
* Fix UndocumentedDeclarationCheck linting issue
* Fix IfConstraintsIndentCheck linting issue
* Address feedback
* Fix publictests CI
* Fix old (libdparse) D-Scanner linting warn
2024-10-27 01:21:56 -07:00
Dennis Korpel
af132bedb1
std.regex: put disassemble function in debug version
2024-01-10 00:32:27 +01:00
Hiroki Noda
336730e471
std.regex: Refactor kicked ( #8732 )
2023-04-17 12:47:12 +03:00
Luís Ferreira
d97b65a697
regex: partially make regex pure
...
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2020-10-26 18:05:46 +00:00
Luís Ferreira
35e2ac7a60
regex: use pure/enforce version of malloc/free functions
...
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2020-10-26 17:17:39 +00:00
Sebastian Wilzbach
8f86a0d734
Fix if constraints indentation
2018-03-24 13:17:53 +01:00
Dmitry Olshansky
4318073f40
Fix issue 18600 Revamp std.regex caching for matchFirst case
2018-03-21 14:53:34 +03:00
Martin Nowak
59520969ef
fix Issue 18114 - regex performance regression
...
- reduce copying of fat structs
- optimize layouts and opAssign of Captures
2018-02-22 16:59:09 +01:00
Sebastian Wilzbach
252a322315
Remove staticIota: std_regex_internal_backtracking
2018-01-22 17:18:59 +01:00
Dmitry Olshansky
13ea5f9aea
Drop another level of templatizations in backtracking
2017-10-11 18:18:12 +03:00
Dmitry Olshansky
eaa62a83db
Fix latent bug due to emplacing over uninitialized memory
2017-09-28 11:55:43 +03:00
Dmitry Olshansky
8bfa66c50a
Fix CI complaints
2017-09-28 11:55:43 +03:00
Dmitry Olshansky
c7bdfbe51b
std.regex finish the loose ends in the great refactoring
2017-09-28 11:55:43 +03:00
Dmitry Olshansky
639dd3dd6f
The new std.regex design is concluded, going through the unitests
2017-09-28 11:55:43 +03:00
Dmitry Olshansky
33d7ecc84c
Finalized matcher factory abstraction, with compile-time regex support
2017-09-28 11:55:43 +03:00
Dmitry Olshansky
6e684343d7
WIP - refactoring towards sane std.regex code
2017-09-28 11:55:43 +03:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
2070d867dd
Sort multiple packages within one line
2017-06-12 08:18:25 +02:00
Sebastian Wilzbach
998ad51fd7
Sort selective imports
2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d
Sort imports
2017-06-12 07:54:38 +02:00
Martin Nowak
1be69f36df
Merge remote-tracking branch 'upstream/stable' into merge_stable
...
# Conflicts:
# std/regex/internal/backtracking.d
# std/regex/internal/shiftor.d
# std/regex/package.d
2017-03-21 15:29:15 +01:00
The Dlang Bot
091ff0f8bb
Merge pull request #5252 from DmitryOlshansky/issue-17075
...
Fix issue 17075 ctRegex BacktrackingMatcher.prevStack: free(): invali…
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-15 01:33:57 +01:00
Dmitry Olshansky
d47c8859bc
Fix issue 17075 ctRegex BacktrackingMatcher.prevStack: free(): invalid pointer
2017-03-15 00:04:36 +01:00
Dmitry Olshansky
0e76847361
Fix issue 17157 ctRegex.matchAll doesn't set last item in Captures
2017-03-09 22:23:26 +01:00
Sebastian Wilzbach
ef7be4b60d
Automatically add spaces to binary operators (<<)
...
command:
sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
425ab667a3
Automatically set the range style from a..b -> a .. b
...
Commands:
sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Jack Stouffer
5a2491a847
Fix Issue 17161 - Revert all changes to std.regex from 2.072.2 onwards
2017-02-12 12:30:40 -05:00
Sebastian Wilzbach
64217c8965
Style fix: specify/remove local imports
2016-12-08 01:46:47 +01:00
Dmitry Olshansky
e98fa4ad5a
[std.regex] Fix issue 9391 - const regex, ctRegex is immutable
2016-10-07 01:40:41 +03:00
Dmitry Olshansky
ecd33f148c
[std.regex] Get Bit-NFA working on the testsuite
2016-10-01 20:59:12 +03:00
Dmitry Olshansky
66048ae334
[Refactor] Generalize kickstart engines, in preparation for more to come
2016-10-01 20:59:12 +03:00
Jack Stouffer
59706e6cae
Added const and immutable to several variables in std.regex.internal.backtracking
2016-07-26 17:05:15 -04:00
Jack Stouffer
808ea77a99
Fixed package wide std.algorithm imports in std.regex.internal.backtracking
2016-07-05 00:13:24 -04:00
Jack Stouffer
b2fd3141b6
Removed package wide std.range import from std.regex.internal.backtracking
2016-07-04 15:37:30 -04:00
Jack Stouffer
3c9b46df7f
Fixed local imports in std.regex.internal.backtracking
2016-07-01 12:27:32 -04:00
Jack Stouffer
a932457c06
Fixed long lines in std/regex/internal/backtracking.d
2016-05-10 20:51:39 -04:00
Dmitry Olshansky
680f690939
[std.regex] Inline regex flags
2016-04-30 11:39:05 +03:00
Sebastian Wilzbach
5a8988c149
style fix: add space after for operator
2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
Dmitry Olshansky
e6c3320b1f
Fix issue 12227 - Allow matching multiple patterns in one go with std.regex
2016-04-15 16:17:36 +03:00
Dmitry Olshansky
7f8b6158e7
Help DMD's inliner a bit for 2 functions
2016-04-07 15:08:30 +03:00
Dmitry Olshansky
0816375a34
Generating unrolled code for small codepoint sets
...
Need to figure out the case of empty charsets.
2016-04-07 15:08:30 +03:00
Dmitry Olshansky
4b7b8d7f6c
Add rolling trace filter to backtracking engine
...
This cuts down on redundant backtracking on most real-world inputs.
2016-04-02 12:09:20 +03:00
Dmitry Olshansky
df07aa7dea
Special case ASCII to use bit tables insted of 2-level tries
2016-03-27 20:26:49 +03:00
Dmitry Olshansky
56b90e7f5a
Drop "quick" test that never was quick anyway
2016-03-24 18:21:28 +03:00
Dmitry Olshansky
9d445d182d
Introduce filtered loops with bloom filters
...
Make use of bloom filter on dchar to predict if we should take the
out of loop branch.
2016-03-21 22:06:56 +03:00
Robert burner Schadek
81eef5a48b
regex_internal: alias syntax update
2015-05-28 19:02:15 +02:00
Dmitry Olshansky
2b78074fc2
Split up the intertwined mess of std.regex.
...
The docs and API still stay in one file.
With time and refactoring more internals may be
exposed such as parser, each engine explicitly
and the sample generator (generator.d).
Also inclusdes changes prompted by reviews/pulls:
Convert spaces-->tabs in makefiles.
Move things (again) to std/regex/internal.
Use new package(std.regex) feature.
Remove C-style arrays (some other pull against regex.d).
2014-09-13 13:45:46 +04:00