Commit graph

152 commits

Author SHA1 Message Date
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Dmitry Olshansky
881658eabc Faster to import std.regex, by lazy eval of wordMatcher 2017-12-18 17:50:53 +03:00
Dmitry Olshansky
13ea5f9aea Drop another level of templatizations in backtracking 2017-10-11 18:18:12 +03:00
Dmitry Olshansky
41c229647d Need to propagate subCounters
Disable "benchmark" in unittest, it's too volatile
with different compiler flags
Also use GC.addRange/GC.removeRange
2017-10-06 11:20:55 +03:00
Dmitry Olshansky
c49ea4f8c7 Another attempt to even the odds of enum/static speed 2017-09-28 11:55:43 +03:00
Dmitry Olshansky
09491f96e6 Another try to fix ratio of static/enum 2017-09-28 11:55:43 +03:00
Dmitry Olshansky
ee1f69a570 Initialize subCounters 2017-09-28 11:55:43 +03:00
Dmitry Olshansky
dc9b60c1f3 Trying to narrow down flakiness of timing 2017-09-28 11:55:43 +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
a877469f07 Fix issue 13532 - std.regex performance (enums; regex vs ctRegex) 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
Martin Nowak
8667632115 Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-08-25 17:30:26 +02:00
Dmitry Olshansky
5fbab17c47 Fix issue 17673 - wrong whichPattern in multi-regex with alteration 2017-08-24 14:22:53 +03:00
Dmitry Olshansky
bc14c02e45 Rangify std.regex codepoint set parser 2017-08-24 11:22:51 +03:00
Dmitry Olshansky
905788a65a Move unicode set parser out of std.regex
This only does the move without adapting
the interface to the commonly accepted ranges.
2017-08-23 19:17:55 +03:00
Dmitry Olshansky
ba15802664 Fix issue 17668 - assert failure regex(q"<[^]>") 2017-08-07 13:34:05 +03:00
Dmitry Olshansky
42c0d79e5a Fix issue 17667 - regex([r".", r"[\(\{[\]\}\)]"]); 2017-07-26 14:35:32 +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
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
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
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
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