Commit graph

5369 commits

Author SHA1 Message Date
Martin Nowak
84dbc9934d Merge pull request #1842 from blackwhale/issue-11350
Fix issue 11350 ibphobos2 regex match segfaults when a rare HTTP header is received
2014-01-07 17:02:14 -08:00
Andrej Mitrovic
1d7912c679 Merge pull request #1142 from MikeWey/Issue8298
Fix Issue #8298, Don't throw exceptions on broken symlinks.
2014-01-07 16:23:42 -08:00
Andrej Mitrovic
b364a2f5f5 Merge pull request #1837 from blackwhale/issue-11808
Fix issue 11808 std.uni.CodepointSet('А', 'Я'+1, 'а', 'я'+1) asserts
2014-01-07 11:43:30 -08:00
monarch dodra
2648a68e9a Merge pull request #1838 from blackwhale/issue-11839
Fix issue 11839
2014-01-07 10:43:35 -08:00
Andrej Mitrovic
39b88e3a62 Merge pull request #1841 from blackwhale/issue-8203
fix issue 8203, similar issue with lookaround
2014-01-07 08:40:12 -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
3b6cc0cb73 fix issue 11350
Do not throw on bad UTF inside of a C callback
2014-01-07 19:23:10 +04:00
Dmitry Olshansky
d60c60ec44 add _ to allowed characters in regex identifier 2014-01-07 03:29:21 +04:00
monarchdodra
1e479c8e5b Fixup commit a8177b8cc3
Per a8177b8cc3 (commitcomment-4991972) :
"nothrow" was superfluous
2014-01-06 19:26:38 +01:00
Andrej Mitrovic
70bea62290 Merge pull request #1819 from monarchdodra/equalEqual
fix Issue 11403 - functions in std.algo can't be used as pred
2014-01-06 08:03:55 -08:00
Dmitry Olshansky
a673d01ee9 fix issue 11839 2014-01-06 19:50:21 +04:00
Andrej Mitrovic
3f2fd10e46 Merge pull request #1713 from monarchdodra/ArrayAssert3
Make std.container.Array assert.
2014-01-06 07:25:30 -08:00
Andrej Mitrovic
eea81d8a86 Merge pull request #1818 from CyberShadow/std-file-mkdirRecurse
std.file: Fix race condition when mkdirRecurse runs concurrently
2014-01-06 06:47:01 -08:00
Andrej Mitrovic
7933ee1e57 Merge pull request #1835 from monarchdodra/cycle2
Bring the noise to Cycle
2014-01-06 05:40:28 -08:00
Vladimir Panteleev
2c981df4d1 std.file: Simplify/optimize mkdirRecurse
The left.length != pathname.length check both takes care of the
Windows-only check, and it avoids a pointless stat on the FS root.
2014-01-06 13:34:59 +00:00
Dmitry Olshansky
ac81385b2b adjust documentation to reflect new capabilities 2014-01-06 15:06:30 +04:00
Dmitry Olshansky
4e5b777432 fix issue 11808 2014-01-06 15:00:03 +04:00
Vladimir Panteleev
d3f9e24f91 std.file: Fix race condition when mkdirRecurse runs concurrently
mkdirRecurse would crash if a directory was created between its
exists() and mkdir() calls. This could occur if mkdirRecurse was called
at the same time from mutiple threads or processes.

Instead of relying on the exists() check to indicate whether the next
mkdir() should succeed, we explicitly ignore "already exists" errors
from the OS. Note that this changes the behavior of mkdirRecurse when
the leaf directory already existed: previously it would throw, whereas
now it will silently succeed. The new behavior is conformant with some
other implementations of "recursive mkdir": the -p flag of the GNU
tool, Ruby's mkpath, Java's mkdirs, and Perl's make_path. (On the
other hand, the old behavior was equivalent to the behavior of
Python's makedirs).
2014-01-06 08:36:05 +00:00
Dmitry Olshansky
35f4e3e08f [trivial] remvoe trailing whitespace 2014-01-06 02:21:22 +04:00
Andrej Mitrovic
98f4eec28a Merge pull request #1792 from monarchdodra/11780
Fix Issue 11780 - RangeError in format for incomplete format specifier
2014-01-05 10:17:53 -08:00
Andrej Mitrovic
a0e06cbf0f Merge pull request #1836 from monarchdodra/repeatConst
Tweaks in repeat
2014-01-05 09:43:04 -08:00
Andrej Mitrovic
351903bab9 Merge pull request #1832 from monarchdodra/takeBack
Fix Take's "back"
2014-01-05 09:14:02 -08:00
monarchdodra
5b331e0266 Add some inout to Repeat 2014-01-05 17:35:48 +01:00
monarchdodra
1c5dc0684c Use "in" preconditions over asserts 2014-01-05 17:34:23 +01:00
monarchdodra
03c769cc89 Place "Front" before "Back" 2014-01-05 17:32:52 +01:00
monarchdodra
9e52fa95e0 Redocument Repeat
Because once you've said what it adheres to, there's nothing else to document
2014-01-05 17:21:36 +01:00
monarchdodra
5694fdfea3 More documented unittest 2014-01-05 17:21:36 +01:00
monarchdodra
8317c38d9b Remove superfluous parens 2014-01-05 17:21:36 +01:00
monarchdodra
2684dcbe60 Use documented unittest in Repeat 2014-01-05 17:21:34 +01:00
monarchdodra
a8177b8cc3 Rework qualifiers in Cycle!Array 2014-01-05 11:44:19 +01:00
monarchdodra
cab8c652f0 rework slicing 2014-01-05 11:44:19 +01:00
monarchdodra
02309987e1 Use preconditions over asserts 2014-01-05 11:44:19 +01:00
monarchdodra
da2fef1f4a new-style aliases 2014-01-05 11:44:19 +01:00
monarchdodra
bd90787cf8 tweak opDollar's DollarToken 2014-01-05 11:44:19 +01:00
monarchdodra
03e2829025 Tweak save implementation 2014-01-05 11:44:19 +01:00
monarchdodra
9df6b50ba0 Make internal attributes private 2014-01-05 11:44:19 +01:00
monarchdodra
933fc4c370 Tweak blocks for consistency 2014-01-05 11:44:18 +01:00
monarchdodra
a2fdb226c7 Remove dubious support for Unqual!R 2014-01-05 11:44:18 +01:00
monarch dodra
09ae8fffbc Merge pull request #1631 from RommelVR/repeatbi
Adds Bidirectionality to Repeat
2014-01-05 02:41:02 -08:00
Ilya
960c401b6c std.regex: double 'l' in Cyrillic 2014-01-04 23:01:26 +03:00
monarchdodra
e151ccfcd4 Take bidirectional unittest 2014-01-04 18:15:17 +01:00
monarchdodra
6bf9133808 Fix Take.back property 2014-01-04 18:13:03 +01:00
Rainer Schuetze
60cf6a5577 moved import std.utf : canSearchInCodeUnits; in std.algorithm.find 2014-01-03 22:10:25 +01:00
Brad Anderson
4b226d9649 Typo "Protcools" 2014-01-02 21:50:44 -07:00
Brad Anderson
8f6394e2b6 Typo "enconding" 2014-01-02 20:41:05 -07:00
monarchdodra
27cc5e858f Make std.container.Array assert. 2014-01-02 19:13:09 +01:00
monarchdodra
190b8190d4 fix Issue 11403 - functions in std.algo can't be used as pred 2014-01-02 09:18:46 +01:00
Brad Anderson
53c226c569 () should be used instead of {} for ddoc macro 2014-01-01 23:03:10 -07:00
monarchdodra
202f22350f fix Issue 11780 - RangeError in format for incomplete format specifier 2014-01-01 17:26:08 +01:00
Andrei Alexandrescu
dab1796ad6 Merge pull request #1827 from WalterBright/add-opCmp
fix unittest associative array opCmp
2014-01-01 00:00:44 -08:00