Commit graph

254 commits

Author SHA1 Message Date
Dmitry Olshansky
d47c8859bc Fix issue 17075 ctRegex BacktrackingMatcher.prevStack: free(): invalid pointer 2017-03-15 00:04:36 +01:00
Jack Stouffer
86da122a7e Merge pull request #5244 from kinke/stable
Remove orphaned std.regex.internal.shiftor
2017-03-14 11:14:54 -04:00
Dmitry Olshansky
0e76847361 Fix issue 17157 ctRegex.matchAll doesn't set last item in Captures 2017-03-09 22:23:26 +01:00
Martin
40a1615f85 Remove orphaned std.regex.internal.shiftor
Apparently a leftover from dlang/phobos@5a2491a. Not included in the
makefile and not compilable either.
2017-03-06 20:19:31 +01:00
Sebastian Wilzbach
a6cb85b869 Add @safe to std.regex unittest 2017-03-04 22:54:54 +01:00
Martin Nowak
ad70b0826b Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-03-04 18:58:15 +01:00
Jack Stouffer
e554764c01 Merge pull request #5216 from wilzbach/unluckily-phobos
Replace LUCKY links with actual links
2017-03-01 15:17:19 -05:00
Sebastian Wilzbach
1cbccaf0db [BOOKTABLES]: Add BOOKTABLE to std.regex 2017-03-01 08:18:42 +01:00
Sebastian Wilzbach
d548e8830a Replace LUCKY links with actual links 2017-02-28 23:46:54 +01:00
Sebastian Wilzbach
203755d296 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
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
0b33b50812 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
Andrei Alexandrescu
30724e67d9 Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +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
Sebastian Wilzbach
5521541032 Unify assert style to have no spaces between the first brace
Application of:

sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Dmitry Olshansky
62cf615dda Fix issue 17212 std.regex doesn't ignore whitespace after character classes 2017-02-20 23:33:06 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Martin Nowak
48a1792095 add missing imports for "old" std.regex unittests
- old tests after reverting BitNFA didn't have isolated runnable unittests
2017-02-16 17:44:10 +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
Dmitry Olshansky
4d19d0ad3a Fix issue 17066 2017-01-17 23:07:56 +01:00
Martin Nowak
07090ae2fd disable kickstart in ctfe to workaround Issue 16626
- consumes too much memory, introduced by
  e98fa4ad5a (#4286)
2016-12-24 17:03:01 +01:00
sprinkle131313
0857bdfe27 Enables long line style check. 2016-12-20 04:00:36 -05:00
Sebastian Wilzbach
cc7f125ed1 Add missing imports to public unittests 2016-12-15 23:23:35 +01:00
Sebastian Wilzbach
b82ae35fd7 Use void for auto function without return statement 2016-12-08 12:32:14 +01:00
Sebastian Wilzbach
2c8166318b Follow-up style fixes for November 2016-12-08 01:46:47 +01:00
Sebastian Wilzbach
64217c8965 Style fix: specify/remove local imports 2016-12-08 01:46:47 +01:00
Sebastian Wilzbach
6f1690f6b1 Style fix: enforce allman style 2016-12-08 01:46:46 +01:00
Dmitry Olshansky
83dce34742 [std.regex] Disable Bit-NFA in CTFE 2016-10-24 22:19:00 +03:00
Dmitry Olshansky
a2b5649805 [std.regex] More compact ThompsonMatcher struct, some % perf gain 2016-10-16 20:38:06 +03:00
Dmitry Olshansky
d745fb8ae2 [std.regex] Optimize reads from hash table 2016-10-11 17:28:35 +03:00
Dmitry Olshansky
f8b3eea065 [std.regex] Addressing review comments 2016-10-09 15:35:32 +03:00
Dmitry Olshansky
d1d53c556c [std.regex] Fixes for recent compiler version 2016-10-07 02:17:40 +03:00
Dmitry Olshansky
cd2c28f402 [std.regex] Trailing whites 2016-10-07 01:43:05 +03:00
Dmitry Olshansky
87847ed480 [std.regex] More tests for issue 9391 2016-10-07 01:41:09 +03:00
Dmitry Olshansky
e98fa4ad5a [std.regex] Fix issue 9391 - const regex, ctRegex is immutable 2016-10-07 01:40:41 +03:00
Dmitry Olshansky
91f0671bc7 [std.regex] rebase on top of latest master, fix shiftor 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
b94a203b0b [std.regex] Re-style pass 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
ecd33f148c [std.regex] Get Bit-NFA working on the testsuite 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
3544686b74 WIP fixing multi-pattern match 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
20c5e399d3 Try to reduce memory usage in CT-regex tests 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
2011a1a75c Trailing whitespace 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
88ce1a1212 [std.regex] Limit ShiftOr to only apply where it's better then Bit-NFA 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
138a2f3dcb [std.regex] Integrate Bit-NFA into std.regex 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
4610231288 [std.regex] Bit-NFA - fix inversion of the right sub-portion of regex 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
845551b3d6 [std.regex] Bit-NFA fix premature stop on repetitions 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
7d930c1de8 [std.regex] Even faster hash table for Bit-NFA 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
5c21564f6f [std.regex] Improved hash-table for Bit-NFA 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
ed4e07c779 [std.regex] Bit-NFA: implement unicode trie 2016-10-01 20:59:12 +03:00