Commit graph

211 commits

Author SHA1 Message Date
Per Nordlöw
d701f90275 Issue 3882: Use cast(void) instead of value capture 2014-03-18 23:50:18 +01:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
Dmitry Olshansky
01e0acddd6 fix issue 12076
Lookaround in ctRegex used wrong number of total captures thus missing
both a bit of optimization AND a special case of 0 matches.
The latter is the reason of range violation in issue 12076.
2014-02-24 02:02:06 +04:00
Dmitry Olshansky
873a440fd4 std.regex - fix issue 12105
Handle the case where a lazy quantified loop will have
pessimistic empty "quick test", for example
in front of a lookaround.
2014-02-23 01:24:53 +04:00
Vladimir Panteleev
0cc1d70178 fix Issue 12156 - static import of std.ascii in std.regex causes conflict 2014-02-14 05:39:06 +00:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Walter Bright
908908164c Merge pull request #1906 from blackwhale/issue-12069
Fix issue 12069
2014-02-03 13:49:54 -08:00
Dmitry Olshansky
b64c091916 fix issue 12069
On Win32 allocating large blocks (>512K) is forwarded to
VirtualAlloc/VirtualFree. Doing these calls is expensive especially in a
loop. As a temporary solution a block size of a segmented stack is
decreased to ~1/8 of critical size.

The code needs to be adapted once allocators are in std.
2014-02-03 23:48:34 +04:00
Daniel Murphy
918abc92d2 Fix wrong test 2014-01-20 04:13:31 +11:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
Brad Anderson
5662eb90f6 Update comments to match new std.regex examples
Example was switched to matchAll and 'g' was removed but the comment got left in. Another comment about match wasn't switched to matchAll.
2014-01-16 13:49:43 -07:00
Brad Anderson
3979b483e9 Use documented unittest rather than code dup 2014-01-14 12:40:15 -07:00
Brad Anderson
9dcc377d55 Switch to matchFirst/matchAll for examples 2014-01-14 12:40:02 -07:00
monarchdodra
44fe3d88f7 Remove tabs 2014-01-08 08:37:52 +01:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
monarch dodra
2648a68e9a Merge pull request #1838 from blackwhale/issue-11839
Fix issue 11839
2014-01-07 10:43:35 -08:00
Dmitry Olshansky
8eb57d628b fix issue 8203, similar issue with lookaround
When using a temporary engine as closure its generation counter
should be tracked separately for each lookaround.

For now just use built-in AA, later we could find better places
to store this counter in.
2014-01-07 19:54:49 +04:00
Dmitry Olshansky
d60c60ec44 add _ to allowed characters in regex identifier 2014-01-07 03:29:21 +04:00
Dmitry Olshansky
a673d01ee9 fix issue 11839 2014-01-06 19:50:21 +04:00
Ilya
960c401b6c std.regex: double 'l' in Cyrillic 2014-01-04 23:01:26 +03:00
Dmitry Olshansky
8b3fd1fb5e workaround prime cases of issue 10985 in std.regex 2013-12-25 13:55:51 +04:00
k-hara
23e1f9164b fix property enforcement 2013-12-21 22:11:45 +09:00
Martin Nowak
ff23ea7997 Merge pull request #1791 from blackwhale/range-bug-regex
fix issue 11775 std.regex should check for valid repetition range
2013-12-19 12:24:11 -08:00
Martin Nowak
22b2a267e8 Merge pull request #1789 from blackwhale/opcast-regex
fix issue 11770  std.regex.Captures should be convertible to bool
2013-12-19 11:24:37 -08:00
Dmitry Olshansky
e598f92224 fix issue 11775 std.regex should check for valid repetition range 2013-12-19 22:02:37 +04:00
Dmitry Olshansky
66f2b67e4e fix issue 11770 std.regex.Captures should be convertible to bool 2013-12-19 21:46:29 +04:00
Dmitry Olshansky
3f6e9601d5 Fix issue 11762 - DDoc macro S_LINK 2013-12-19 00:53:43 +04:00
k-hara
29099f9894 fix Issue 11671 - ctRegex broken 2013-12-04 16:35:55 +09:00
Martin Nowak
fbaa4f826b Merge pull request #1734 from blackwhale/no-indirect
Tiny optimization for std.regex
2013-11-30 07:39:40 -08:00
monarch dodra
086d9bd34e Merge pull request #1733 from blackwhale/nice-templ-regex
Use the new template syntax in std.regex
2013-11-28 13:57:03 -08:00
monarch dodra
a419cd25ff Merge pull request #1732 from blackwhale/revert-wa-regex
[TRIVIAL] CTFE bug 9634 was fixed, remove the workaround
2013-11-28 13:56:14 -08:00
Dmitry Olshansky
52c35a6856 avoid calling delegates even in outer cycles, branch early, statically 2013-11-29 00:48:25 +04:00
Dmitry Olshansky
d27811a1d9 ctRegex is no experiment anymore 2013-11-29 00:34:45 +04:00
Dmitry Olshansky
924ddac4e6 Turn the venerable alias A B; to alias B = A; 2013-11-29 00:34:16 +04:00
Dmitry Olshansky
9719cfcc0a Modernize syntax: template(T)+enum --> enum(T) etc. 2013-11-29 00:24:07 +04:00
Dmitry Olshansky
3e22b63a8b CTFE bug 9634 was fixed, remove the workaround 2013-11-29 00:16:21 +04:00
Daniel Murphy
13f343334c Remove cases where an array is used in a boolean context 2013-11-27 18:23:07 +11:00
Dmitry Olshansky
d11d14628a fixup issue 11479 and enum --> auto in examples 2013-11-16 02:42:01 +04:00
Dmitry Olshansky
8f00475ef2 too tight constraint that has no use in private function
Fixes issue 1262
2013-10-15 23:51:32 +04:00
Dmitry Olshansky
4db73ce83a [DDoc] Put a proper description for std.regex.matchAll 2013-09-12 02:33:19 +04:00
monarch dodra
8e6bf693ac Merge pull request #1532 from blackwhale/fix-replace-check
Fix issue 10913 std.regex API regression
2013-09-08 08:39:10 -07:00
monarch dodra
60187c9d83 Merge pull request #1536 from lionello/bug10893
Fix issue 10893: added missing or renamed DDoc parameters
2013-09-08 08:37:19 -07:00
Dmitry Olshansky
99f466fee0 fix issue 10913 @safety of std.regex replace API 2013-09-07 01:48:46 +04:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
k-hara
fbb196c6d9 fix property enforcement 2013-08-29 11:02:52 +09:00
Dmitry Olshansky
c37a5d865a lookbehind for ctRegex 2013-08-26 12:34:24 +04:00
Dmitry Olshansky
33c08b2f0f fix broken indention, detab 2013-08-21 00:28:11 +04:00
Dmitry Olshansky
11827440aa cleanup to keep lookahead/lookbehind more in sync for future
Fix 64 bit issues, remove useless debug hook
2013-08-18 01:38:27 +04:00
Dmitry Olshansky
6e474e039f ditto with Thompson matcher 2013-08-18 01:32:35 +04:00
Dmitry Olshansky
d9eaf226ab backtracking matcher works with reversed bytecode 2013-08-18 01:32:17 +04:00