Commit graph

5384 commits

Author SHA1 Message Date
monarch dodra
f680ea030f MT alignement 2014-01-22 14:55:13 +01:00
Andrei Alexandrescu
8b4e152a09 Merge pull request #1855 from jcd/std-getopt-docclean
Clean up std.getopt docs
2014-01-13 11:33:43 -08:00
Jonas Drewsen
56ded71a60 Clean up std.getopt docs
After browsing the docs using ddox it is obvious that the standard of "one line short summary and the following lines for in depth descriptions" is not followed in phobos. This commit is mostly to see if such a fixes are wanted/accepted at all.
2014-01-13 19:44:11 +01:00
David Nadlinger
4c0c73220d Fix Cycle!(T[N]).opSlice return type qualifier.
This is a fixup for commit 3faffc3c59.
2014-01-13 13:40:40 +01:00
Walter Bright
9cb7cabc59 Merge pull request #1847 from MartinNowak/fix11879
fix Issue 11879 - missing default User-Agent in std.net.curl
2014-01-13 02:28:26 -08:00
David Nadlinger
3faffc3c59 Avoid calling a qualified constructor in Cycle.
This is actually invalid code, as typeof(this) == inout(this),
but Cycle has no inout constructor. This wasn't previously
detected, as the constructor was mistakenly flagged as creating
an unique object where qualifiers can be disregarded. (The
reference parameter is leaked into the Cycle instance, so
this is obviously not the case.)
2014-01-13 03:39:22 +01:00
Martin Nowak
b84b43ff5d fix Issue 11879 - missing default User-Agent in std.net.curl
- use "Phobos-std.net.curl/2.065 (libcurl/7.32.0)" as
  default "User-Agent"

- add method to set a different user agent
2014-01-12 21:31:58 +01:00
Daniel Murphy
19ee4d3851 Merge pull request #1843 from monarchdodra/whiteTrim
Remove trailing white and tabs
2014-01-12 05:14:42 -08:00
monarch dodra
ed3a170071 Merge pull request #1850 from CyberShadow/std-string-chomp
std.string: Fix redundant UTF decoding in chomp
2014-01-11 05:23:01 -08:00
Vladimir Panteleev
bf342f4cfd std.string: Fix redundant UTF decoding in chomp 2014-01-11 12:17:52 +00:00
Brad Anderson
e8f706f1b7 Fix two WEB DDoc macros 2014-01-10 23:27:59 -07:00
Brad Anderson
515de4f2a2 Document that replaceSlice returns a new array 2014-01-10 21:05:12 -07:00
monarchdodra
3409e5b026 Fix issue 11884 - std.container.Array lacks a constructor from an input range 2014-01-08 23:19:04 +01: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
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