Commit graph

65 commits

Author SHA1 Message Date
richard (rikki) andrew cattermole
ff86bb0d70 Improve std.regex build times by removing a formattedWrite call 2023-02-25 02:29:32 +13:00
Dennis Korpel
c0cc5e917d Fix switch fallthrough 2022-04-11 11:26:11 +00:00
berni44
6f2a0934a7 Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
Hiroki Noda
03f19cf3d2 regex/internal/parser.d: remove unreachable statement 2019-05-15 10:41:19 +09:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Dmitry Olshansky
4318073f40 Fix issue 18600 Revamp std.regex caching for matchFirst case 2018-03-21 14:53:34 +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
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
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
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
Martin Nowak
ad70b0826b Merge remote-tracking branch 'upstream/stable' into merge_stable 2017-03-04 18:58:15 +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
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
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
Sebastian Wilzbach
2c8166318b Follow-up style fixes for November 2016-12-08 01:46:47 +01:00
Dmitry Olshansky
83dce34742 [std.regex] Disable Bit-NFA in CTFE 2016-10-24 22:19:00 +03:00
Dmitry Olshansky
cd2c28f402 [std.regex] Trailing whites 2016-10-07 01:43:05 +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
138a2f3dcb [std.regex] Integrate Bit-NFA into std.regex 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
99095eebfc ASCII-only version of Bit-NFA 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
e2ce5a9519 Added const and immutable to several variables in std.regex.internal.parser 2016-07-27 11:12:45 -04:00
Jack Stouffer
67b196cafe Fixed package wide std.algorithm imports in std.regex.internal.parser 2016-07-05 00:13:24 -04:00
Jack Stouffer
31e7f4a510 Removed package wide std.range import from std.regex.internal.parser 2016-07-04 15:37:30 -04:00
Jack Stouffer
5351c09f21 Fixed local imports in std.regex.internal.parser 2016-07-01 12:27:33 -04:00
Sebastian Wilzbach
484f7bfbe0 enforce: whitespace after catch 2016-05-14 15:28:43 +03: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
8a487e2145 [std.regex] Split generation and parsing, almost completely.
This should aid readability and reduce the obscurity of the parser.
Also potentially non-generating parser is possible.
2016-04-25 14:12:08 +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
Dmitry Olshansky
e6c3320b1f Fix issue 12227 - Allow matching multiple patterns in one go with std.regex 2016-04-15 16:17:36 +03:00
Ilya Yaroshenko
4e393eb70a Merge pull request #4156 from DmitryOlshansky/issue-2104
Fix issue 2104 - escape function for regular expressions
2016-04-14 17:53:00 +02:00
Dmitry Olshansky
cf6152c13f Fix issue 2104 - escape function for regular expressions 2016-04-14 16:54:36 +03: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
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