Commit graph

254 commits

Author SHA1 Message Date
Dmitry Olshansky
99095eebfc ASCII-only version of Bit-NFA 2016-10-01 20:59:12 +03:00
Dmitry Olshansky
1416ddb018 A start on 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
59706e6cae Added const and immutable to several variables in std.regex.internal.backtracking 2016-07-26 17:05:15 -04:00
Jack Stouffer
81e97a0fe0 Added const and inout to methods in std.regex/package 2016-07-20 13:54:32 -04:00
Jack Stouffer
0bdd144e01 Fixed package wide std.range import in std.regex.internal.kickstart 2016-07-05 00:13:24 -04:00
Jack Stouffer
e97579b66a Fixed package wide std.algorithm imports in std.regex.internal.tests 2016-07-05 00:13:24 -04:00
Jack Stouffer
6420451c1b Fixed package wide std.algorithm imports in std.regex.internal.kickstart 2016-07-05 00:13:24 -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
67b196cafe Fixed package wide std.algorithm imports in std.regex.internal.parser 2016-07-05 00:13:24 -04:00
Jack Stouffer
399b4fa842 Fixed package wide std.algorithm imports in std.regex.internal.ir 2016-07-05 00:13:24 -04:00
Jack Stouffer
89fadf3edc Fixed package wide std.algorithm imports in std.regex.package 2016-07-05 00:13:22 -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
b2fd3141b6 Removed package wide std.range import from std.regex.internal.backtracking 2016-07-04 15:37:30 -04:00
Jack Stouffer
f9001ae545 Removed package wide std.range import from std.regex.internal.ir 2016-07-04 15:37:30 -04:00
Jack Stouffer
03060622d8 Removed package wide std.range import from std.regex.internal.thompson 2016-07-04 15:37:30 -04:00
Jack Stouffer
3d580b8bf1 Removed global std.exception import from std.regex.package 2016-07-04 15:37:29 -04:00
Jack Stouffer
996aeb4505 Removed package wide std.range import from std.regex.package 2016-07-04 15:37:27 -04:00
Jack Stouffer
f8d5741633 Fixed local imports in std.regex 2016-07-01 12:27:33 -04:00
Jack Stouffer
5351c09f21 Fixed local imports in std.regex.internal.parser 2016-07-01 12:27:33 -04:00
Jack Stouffer
04cc565d67 Fixed local imports in std.regex.internal.kickstart 2016-07-01 12:27:33 -04:00
Jack Stouffer
5698ca33cf Fixed local imports in std.regex.internal.ir 2016-07-01 12:27:33 -04:00
Jack Stouffer
8ddccb2ef0 Fixed local imports in std.regex.internal.generator 2016-07-01 12:27:32 -04:00
Jack Stouffer
3c9b46df7f Fixed local imports in std.regex.internal.backtracking 2016-07-01 12:27:32 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02: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
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Mathias Lang
7f53fdfec0 Do not rely on the result of a comma expression
Also add `pragma(inline, true)` to ensure this function stays inlined.
2016-05-27 15:54:26 +02:00
Sebastian Wilzbach
484f7bfbe0 enforce: whitespace after catch 2016-05-14 15:28:43 +03:00
Jack Stouffer
3b24d6436d Fixed long lines in std/regex/package.d 2016-05-10 20:51:39 -04:00
Jack Stouffer
c1600e7cf8 Fixed long lines in std/regex/internal/thompson.d 2016-05-10 20:51:39 -04:00
Jack Stouffer
0019d42106 Fixed long lines in std/regex/internal/tests.d 2016-05-10 20:51:39 -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
David Nadlinger
fda8267b2c Merge pull request #4250 from wilzbach/remove_at_property
trivial: remove @property from enums
2016-04-27 21:14:23 +01:00
Dmitry Olshansky
c1027f1970 Merge pull request #4246 from wilzbach/sed_spaces_part_2
style fix: add space after 'for' operator
2016-04-27 16:17:18 +04:00
Sebastian Wilzbach
d9de53677e trivial: remove @property from enums 2016-04-27 12:44:57 +03:00
Sebastian Wilzbach
d1714c9afb minor style fixes 2016-04-27 04:18:22 +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
46ca5dad0d Merge pull request #4142 from DmitryOlshansky/regex-ref-counting
[std.regex] Use ref-counting for Captures struct
2016-04-26 14:31:35 +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
Dmitry Olshansky
872673d557 Use ref-counting for Captures struct 2016-04-16 11:26:31 +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
Yazan Dabain
9887af3fe6 Fix some imports 2016-04-12 22:15:09 +03:00
Dmitry Olshansky
6c0dbab725 Merge pull request #4174 from JackStouffer/issue15797
[Issue 15797] Add std.regex.splitterWithMatches
2016-04-12 12:17:32 +04:00