Commit graph

1307 commits

Author SHA1 Message Date
Walter Bright
1b8314c4e0 add source links 2011-02-26 15:32:21 -06:00
Sean Kelly
938728ea26 Issue 4307 - spawn()'ed thread doesn't terminate 2011-02-26 15:32:20 -06:00
Lars T. Kyllingstad
be80d2b665 Issue 4807 - Examples for std.array insert and replace 2011-02-26 15:32:20 -06:00
Lars T. Kyllingstad
9951a8b39f Issue 2874 - phobos docs issues 2011-02-26 15:32:20 -06:00
Lars T. Kyllingstad
0360beb09a Fix special cases of take()
My earlier fix for issue 5052, "take!(Take!R) should return Take!R, not
Take!(Take!R)", broke David's fix for issue 4464, "std.range.take does
not always return Take!R".  This commit should fix both issues.

The special case when typeof(R.opSlice()) !=  R is now also accounted
for.
2011-02-26 15:32:20 -06:00
Sohgo Takeuchi
f63e193de6 defined lstat64 for FreeBSD 2011-02-03 20:45:09 +09:00
David Nadlinger
c056bf2687 Augmented the unittests for Zip.
I assumed that zLongest was orginially intended to test the StoppingPolicy.longest case, even though it previously had requireSameLength.
2011-01-30 23:36:12 +01:00
David Nadlinger
9e26dcfc81 Fixed Zip.empty for StoppingPolicy.longest.
Previously, it would never return true.

Fixes 5506.
2011-01-30 23:34:07 +01:00
David Nadlinger
2866365a32 Cosmetic change to zip unittests.
This only untangles two sections, no functional changes.
2011-01-30 23:16:06 +01:00
Brad Roberts
ee7c5e44a5 fix %.*s usage in std/zip.d 2011-01-30 00:44:24 -08:00
Andrei Alexandrescu
0b31426874 Merge branch 'master' of github.com:D-Programming-Language/phobos 2011-01-27 12:07:56 -06:00
Andrei Alexandrescu
b6aabf2044 Improvements to SortedRange; added several search strategies 2011-01-27 12:06:56 -06:00
dsimcha
6c8bc9908f Flesh out std.container.Array.Range. 2011-01-26 22:02:16 -05:00
Andrei Alexandrescu
55a986208d Merge branch 'master' of github.com:D-Programming-Language/phobos 2011-01-24 22:19:48 -06:00
Andrei Alexandrescu
b91689dcba Short circuit type for takeExactly(takeExactly(r, n)) 2011-01-24 22:16:26 -06:00
Walter Bright
fc1155d823 detab, tolf 2011-01-24 17:50:41 -08:00
Andrei Alexandrescu
6f81c573f8 Fix for issue 5424 2011-01-23 22:26:29 -06:00
Andrei Alexandrescu
81a4a4034a Fix for issue 3272 2011-01-23 21:46:19 -06:00
Andrei Alexandrescu
c84f8a6a56 findSplit, findSplitBefore, findSplitAfter 2011-01-23 15:44:03 +00:00
Brad Roberts
0458ef8528 remove assert that was copied from d1, sizes are different? Definitly needs a cleanup. 2011-01-23 04:40:15 +00:00
Brad Roberts
8aad4d702b Making an already bad situation worse, but it does fix stat related stuff on 64 bit builds. Definitely needs to be moved to a more appropriate place. 2011-01-23 04:15:06 +00:00
Andrei Alexandrescu
9e15909243 Fix for issue 5152 2011-01-22 23:56:12 +00:00
Andrei Alexandrescu
cf8815f542 Fix for issue 4994 2011-01-22 22:20:54 +00:00
Andrei Alexandrescu
1e4610663f Replaced ddoc symbol with the D_Ddoc built-in throughout 2011-01-22 21:36:53 +00:00
Andrei Alexandrescu
f8d1c0e71b Added findParts and takeExactly 2011-01-22 21:26:54 +00:00
Andrei Alexandrescu
2e7fb2eba2 Added replaceFirst 2011-01-22 21:19:26 +00:00
Andrei Alexandrescu
3d865b35b6 Fix for issue 4942 2011-01-22 19:17:40 +00:00
Andrei Alexandrescu
4196a49db4 addendum to changeset 2359 2011-01-22 17:12:13 +00:00
Jonathan M Davis
59eb1b70a5 More documentation fixes. 2011-01-22 15:49:03 +00:00
Jonathan M Davis
11f2899ab5 Various adjustments to the documentation in std.datetime and std.file.
This should fix the current ddoc build errors or Windows.
2011-01-22 09:48:29 +00:00
Andrei Alexandrescu
a474a386d4 Fix for bug 4922 2011-01-22 06:35:11 +00:00
Andrei Alexandrescu
cd06db7fe7 Changed replaceInPlace back to replace as it cannot be confused 2011-01-22 03:54:45 +00:00
Andrei Alexandrescu
a1f9e63730 Fixed documentation build 2011-01-22 03:49:13 +00:00
Andrei Alexandrescu
8989f76dce quick fixes for many osx unittest failures 2011-01-21 09:00:32 +00:00
Andrei Alexandrescu
272ceaa9a6 Improvements to replicate(); documented splitter() for strings; renamed replace() in place to replaceInPlace(); removed replace() that takes void* in the last position; moved replace() from string to array and generalized it; attached constraint to functional.not; more cleanup of std.string; improved std.algorithm.util and count to accept ranges; improved constraint in std.algorithm.remove 2011-01-21 08:39:39 +00:00
Jonathan M Davis
6c89581e2f Some tweaks to some of the std.datetime unit tests.
Also, the Windows-specific unit tests have now been enabled. So, while
unfortunately, we can't currently have them all enabled on Windows,
since it causes dmd to run out of memory, we can at least get the
Windows-specific stuff tested. Hopefully, the fact that the rest are
running on Linux will be enough for now as far as the other tests go.
2011-01-20 10:20:05 +00:00
Jonathan M Davis
020f6cf394 Fixed some issues with time zone names which worked on wine but not an Windows due to some differences between the two. 2011-01-20 05:06:08 +00:00
Jonathan M Davis
d8488a9865 Phobos has now been changed to use std.datetime. Also, bug# 3848 has been fixed.
std.gregorian, std.date, and std.dateparse have all been marked as
scheduled for deprecation. Everywhere (except for std.file) which was
using std.date is now using std.datetime. std.file is now using
std.datetime but has a number of functions still using d_time but which
are marked as scheduled for deprecation. I tried to give as many as I
could pragmas indicating that they were scheduled for deprecation, but
at the moment, that requires that a function be a templated function, and
I couldn't templatize all of them. So, some functions in std.file are
only marked as scheduled for deprecation in their documentation and will
not give any warning on compilation.

I had to rename several functions in std.file in order to avoid making
any breaking changes. And since I was already having to mess with
function names, it seemed like a good time to change the names of a
number of the functions in std.file to use proper capitalization
(such as changing isdir to isDir) as has been discussed and overwhelmingly
supported in the newsgroup with regards to std.string. And since I was
making those changes, it seemed like a good time to fix bug# 3848
(functions in std.file don't take symbolic links into account) as well.
So, std.file should now deal with symlinks properly.

The issue which Andrei brought up with +VERSION causing the std.datetime
unit tests to fail on OSX has been fixed as well.
2011-01-19 11:10:18 +00:00
Andrei Alexandrescu
8b361fb217 Moved replace from string to array 2011-01-19 09:04:29 +00:00
Andrei Alexandrescu
331dd3a489 Moved split from string to array, made one more pass through array 2011-01-19 06:44:46 +00:00
Brad Roberts
2c2fc98182 Fix 64 bit issues throughout regex and regexp and enable those tests 2011-01-18 08:41:35 +00:00
Andrei Alexandrescu
cf33c1999a Moved join from std.string to std.array, plus a few cosmetic changes 2011-01-17 20:43:54 +00:00
Andrei Alexandrescu
a0ecf2a10e Moved cmp to std.algorithm 2011-01-17 16:46:35 +00:00
Andrei Alexandrescu
3cdb8dabe0 Removed last occurrences of std.algorithm.indexOf 2011-01-17 08:40:01 +00:00
Andrei Alexandrescu
c2f018066a Changed signature of findSkip, scheduled indexOf for deprecation, removed obsolete unittests 2011-01-17 08:36:59 +00:00
Andrei Alexandrescu
b2bf0bc48c Moved count from std.string to std.algorithm, which works toward fixing 4883 2011-01-17 03:31:12 +00:00
Jonathan M Davis
9d30071ea7 Some updates to std.datetime.
Among other things, fixes unit test failure on Mac OS X when it fails to
find /usr/share/zoneinfo/right/America/Los_Angeles.
2011-01-16 12:38:36 +00:00
Jonathan M Davis
c5f205a137 Re-enabled std.datetime for Windows but disabled its unit tests for Windows.
For some reason, the std.datetime unit tests compile and pass without
problems on Linux and in Wine on Linux, but on real Windows, the
compiler runs out of memory when compiling them. So, for now, all of the
std.datetime unit tests are versioned with testStdDateTime. On Posix,
version=testdStdDateTime is used in std.datetime, so the tests will run,
but that version is not set on Windows, so the unit tests don't run on
Windows. So, if you want to run the std.datetime unit tests on Windows or
under Wine or Linux, then compile with -version=testStdDateTime.

At the moment, all of the tests pass on both Linux and under Wine, and
the normal code does compile on proper, so I'm fairly certain that it's fine
for use on Windows, but for now, I can't enable the tests on Windows. My
best guess is that it's some sort of weird compiler bug involving system
calls that leak memory on Windows-proper but not in Wine, but I really
don't know.
2011-01-14 11:36:15 +00:00
Don Clugston
ed5e3167f0 Don't throw non-Throwables 2011-01-14 08:01:49 +00:00
Jonathan M Davis
038924e4f9 Made a unit test more lenient, so it won't result in semi-random failures. 2011-01-13 11:55:14 +00:00