Sebastian Wilzbach
a60fd0c1a5
Splitup regex tests to please auto-tester
2018-01-24 17:59:40 +01:00
Sebastian Wilzbach
3ad744d351
Remove staticIota: std_regex_internal_tests
2018-01-22 17:19:06 +01:00
RazvanN7
281fe177ac
Fix erroneous imports
2018-01-22 16:37:22 +02:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01: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
dc9b60c1f3
Trying to narrow down flakiness of timing
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
639dd3dd6f
The new std.regex design is concluded, going through the unitests
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
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
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
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
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +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
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
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
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
20c5e399d3
Try to reduce memory usage in CT-regex tests
2016-10-01 20:59:12 +03:00
Jack Stouffer
e97579b66a
Fixed package wide std.algorithm imports in std.regex.internal.tests
2016-07-05 00:13:24 -04:00
Sebastian Wilzbach
1d34a121e9
apply all-man braces in Phobos
...
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
Jack Stouffer
0019d42106
Fixed long lines in std/regex/internal/tests.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
Ilya Yaroshenko
cf48dc32e2
Merge pull request #4180 from DmitryOlshansky/fix-issue15864
...
Fix issue 15864 - chmgen triggers exception in std.regex
2016-04-16 06:41:27 +02:00
Ilya Yaroshenko
11ef8c4a11
Merge pull request #4157 from DmitryOlshansky/issue14504
...
Fix issue 14504 Regex Optimizer doesn't merge equivalent threads
2016-04-11 23:06:43 +02:00
Dmitry Olshansky
25d81e662d
Fix issue 15864 - chmgen triggers exception in std.regex
2016-04-11 21:43:19 +03:00
Dmitry Olshansky
12c7d68044
Fix issue 12367 - std.regex: Recognize (?# ... ) comment syntax
2016-04-10 22:47:40 +03:00
Dmitry Olshansky
0e7fc33aba
Fix issue 14504 Regex Optimizer doesn't merge equivalent threads
...
We can be unprecise a bit by using a hash of table to represent a state of
optimizer thread, after all any collision will result in just a shorter prefix search.
2016-04-10 22:43:24 +03:00
Dmitry Olshansky
5e4853f723
Fix issue 15773 - D's treatment of whitespace in character classes in free-form regexes is not the same as Perl's
2016-04-09 11:14:45 +03:00
Dmitry Olshansky
add07e7ea6
Fix issue 14615 - std.regex.replaceFirstInto throws exception when no match is found
2016-04-07 10:49:30 +03:00
Dmitry Olshansky
afd16eac09
Fix issue 7551 - Regex parsing bug for right bracket in character class
2016-04-06 22:52:54 +03:00
Dragos Carp
d698887729
Remove obsolete TypeTuple references
...
Replace following names:
std.typetuple -> std.meta
TypeTuple -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple -> Fields
std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
David Soria Parra
a1de9eea10
std.regex: additional unittests testing ||, --, && and ~~
2015-07-08 14:05:40 +02:00
David Soria Parra
46831a485e
std.regex: correctly add last character of a set to regex (bugzilla 14529)
...
When encounting the end of a character set ']' we have to correctly add the last
encountered valid character to the regex and resepect flags. This bug caused the
last character to not be correctly case folded if case folding was requested.
This fixes https://issues.dlang.org/show_bug.cgi?id=14529 .
2015-07-07 01:32:11 +02:00